Ask Your Question
0

keystone user-list error Authorization Failed: The resource could not be found. (HTTP 404)

asked 2016-04-30 21:26:12 -0500

wangk66 gravatar image
hello, my environment is  cenos7+ liberty openstack,

 Following by the authority documents (http://docs.openstack.org/liberty/install-guide-rdo/environment-packages.html). When complete the install and configuration of Keystone,  I notice the error when perform keystone user -list or keystone role-list  or similar command, the error as following ,

keystone user-list /usr/lib/python2.7/site-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient. 'python-keystoneclient.', DeprecationWarning) WARNING: unsupported identity-api-version 2, falling back to 2.0 /usr/lib/python2.7/site-packages/keystoneclient/v2_0/client.py:145: DeprecationWarning: Constructing an instance of the keystoneclient.v2_0.client.Client class without a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release. 'the 2.0.0 release.', DeprecationWarning) /usr/lib/python2.7/site-packages/keystoneclient/v2_0/client.py:147: DeprecationWarning: Using the 'tenant_name' argument is deprecated in version '1.7.0' and will be removed in version '2.0.0', please use the 'project_name' argument instead super(Client, self).__init__(*kwargs) /usr/lib/python2.7/site-packages/debtcollector/renames.py:43: DeprecationWarning: Using the 'tenant_id' argument is deprecated in version '1.7.0' and will be removed in version '2.0.0', please use the 'project_id' argument instead return f(args, **kwargs) /usr/lib/python2.7/site-packages/keystoneclient/httpclient.py:376: DeprecationWarning: Constructing an HTTPClient instance without using a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release. 'the 2.0.0 release.', DeprecationWarning) Authorization Failed: The resource could not be found. (HTTP 404) (Request-ID: req-ff2e363d-293c-4198-8bca-d2f4919cde6f).

But , I can get the result of those commands by " openstack user list" or " openstack role list" or other similar

openstack user list +----------------------------------+-------+ | ID | Name | +----------------------------------+-------+ | 2f692a70c5a94bfc99a668f671d456dc | admin | | 0f87d364aba64b6b9f13db2e29e18721 | demo | +----------------------------------+-------+

According to the explaining , I change the environment variable export OS_IDENTITY_API_VERSION=32 in environment file , but no effective.

I don't know where is wrong in the install process . please help me to fix it .

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-05-03 03:53:19 -0500

zsolt-krenak gravatar image

If you followed the guide, than you configured Keystone to use V3 API. Keystone client doesn't support V3 API, only V2, so I think that will be the problem.

edit flag offensive delete link more

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

2 followers

Stats

Asked: 2016-04-30 21:26:12 -0500

Seen: 1,417 times

Last updated: May 03 '16