I run on
You should be root when running the playbook (see step 1 of the README in elijah-openstack). The last step of the keystone role is to copy the admin-openrc.sh file to root's home directory (/root). If you weren't root when you launched the playbook, then it likely got put into your user's home directory but is owned by root which would prohibit you from sourcing it.
thank you for you reply very much.but i still stay in the problem about "openstack No tenant with a name of ID of 'service' exists".I tried it in root,too.It seems to be because of the problem of keystone‘s configuration?
You may need to rerun the tasks in the keystone portion of the playbook. You should be able to reexecute these by passing --tags keystone when launching the playbook. One of the tasks in there is to create the service project.
You could also try to manually execute that step in a terminal to see if there is some other output given. Just make sure you source admin-openrc.sh first.