Ask Your Question
0

Kilo, Keystone and problem with v3 API.

asked 2015-09-01 09:30:52 -0600

rozie gravatar image

updated 2015-09-01 10:31:21 -0600

OpenStack was set up following official docs for Kilo ( http://docs.openstack.org/kilo/instal... ) Looks like API v3 isn't working for keystone. And it works for any other service just fine. So I cannot use keystone tenant-list, it gives:

Authorization Failed: The resource could not be found. (HTTP 404) (Request-ID: req-18954e43-67aa-4983-9b8e-867dd51ca40d)
but *nova image-list* works. I use:
export OS_PROJECT_DOMAIN_ID=default
export OS_USER_DOMAIN_ID=default
export OS_PROJECT_NAME=admin
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=JUST-A-PASS
export OS_AUTH_URL=http://controller.hostname:35357/v3
export OS_IMAGE_API_VERSION=2

I found workaround to use another file with credentials sourced only when I want to use keystone, but it isn't nice solution:

export OS_PROJECT_DOMAIN_ID=default
export OS_USER_DOMAIN_ID=default
export OS_PROJECT_NAME=admin
export OS_TENANT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=JUST-A-PASS
export OS_AUTH_URL=http://controller.hostname:35357/v2.0
export OS_IMAGE_API_VERSION=2

After using this, keystone works fine. Is it possible to use v3 for keystone service (well, for all services)? If so, any advice where should I look for a problem?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-09-01 10:19:04 -0600

yankcrime gravatar image

You'll need to install and use the openstackCLI tool in order to have support for the V3 API. The deprecation is mentioned in the documentation for the clients here: http://docs.openstack.org/cli-reference/content/install_clients.html (http://docs.openstack.org/cli-referen...)

Once you've installed python-openstackclient, you'll be able to to openstack project list against your Keystone V3 API endpoint, which is analogous to keystone tenant-list.

edit flag offensive delete link more

Comments

Thanks, using openstack command instead of keystone solved this issue.

rozie gravatar imagerozie ( 2015-09-03 06:51:59 -0600 )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-09-01 09:30:52 -0600

Seen: 1,007 times

Last updated: Sep 01 '15