# Revision history [back]

Looks like you didn't set the credentials correctly, you need to provide the OS_SERVICE_TOKEN environment variable. And if you start a new shell you have to set it again...

Search in the "DEFAULT" section, for the "admin_token" variable in the file : /etc/keystone/keystone.conf

grep admin_token /etc/keystone/keystone.conf
export OS_SERVICE_TOKEN=XXXXXXXXX


Replacing the "XXXXXXXXX" with the value returned from the grep command...

Then retry the endpoint-create...

BTW it looks like the juno docs have a problem explaining that, look at the same section from icehouse's : http://docs.openstack.org/icehouse/install-guide/install/yum/content/keystone-install.html

it's much more clear...

Looks like you didn't set the credentials correctly, you need to provide the OS_SERVICE_TOKEN environment variable. And if you start a new shell you have to set it again...

Search in the "DEFAULT" section, for the "admin_token" variable in the file : /etc/keystone/keystone.conf

grep admin_token /etc/keystone/keystone.conf
export OS_SERVICE_TOKEN=XXXXXXXXX


Replacing the "XXXXXXXXX" with the value returned from the grep command...

Then retry the endpoint-create...

BTW it looks like the juno docs have a problem explaining that, look at the same section from icehouse's : http://docs.openstack.org/icehouse/install-guide/install/yum/content/keystone-install.html

it's much more clear...

Edit: Sorry I didn't see the real error message.

It looks like the $(keystone service-list | awk '/ volumev2 / {print$2}') is not working for you. Try to run that by itself (i.e. in a shell, without the surrounding \$() and maybe without the | awk [...]) and try to understand what is wrong with it.