Ask Your Question
1

[Block storage] keystone endpoint-create API issue

asked 2015-08-11 15:58:40 -0500

Anario gravatar image

updated 2015-08-11 15:59:23 -0500

Hi, could you please explain me why i couldn't add api v2 ... but i also add api v1 without any problem.

when i try

keystone endpoint-create \
  --service-id $(keystone service-list | awk '/ volumev2 / {print $2}') \
  --publicurl http://controller:8776/v2/%\(tenant_id\)s \
  --internalurl http://controller:8776/v2/%\(tenant_id\)s \
  --adminurl http://controller:8776/v2/%\(tenant_id\)s \
  --region regionOne
+-------------+-----------------------------------------+
|   Property  |                  Value                  |
+-------------+-----------------------------------------+
|   adminurl  | http://controller:8776/v2/%(tenant_id)s |
|      id     |    097b4a6fc8ba44b4b10d4822d2d9e076     |
| internalurl | http://controller:8776/v2/%(tenant_id)s |
|  publicurl  | http://controller:8776/v2/%(tenant_id)s |
|    region   |                regionOne                |
|  service_id |    16e038e449c94b40868277f1d801edb5     |
+-------------+-----------------------------------------+

i get this image description

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-08-12 02:23:42 -0500

updated 2015-08-13 02:27:06 -0500

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/in...

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.

edit flag offensive delete link more

Comments

did it,but still the same output.

Anario gravatar imageAnario ( 2015-08-12 10:35:55 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-08-11 15:58:40 -0500

Seen: 96 times

Last updated: Aug 13 '15