Error: Unauthorized: Unable to retrieve

Asked by Oliver Mueller

Hi,

i become in the Dashboard in the error Error: Unauthorized: Unable to retrieve instances list, or quotas etc.

Project, users, network, router worked fine.
In the Apache2 error.log comes the followed error

[Mon Apr 08 13:45:22 2013] [error] \x1b[31;1mUnauthorized: Unauthorized (HTTP 401)\x1b[0m
[Mon Apr 08 13:45:22 2013] [error] Traceback (most recent call last):
[Mon Apr 08 13:45:22 2013] [error] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/admin/instances/views.py", line 52, in get_data
[Mon Apr 08 13:45:22 2013] [error] instances = api.nova.server_list(self.request, all_tenants=True)
[Mon Apr 08 13:45:22 2013] [error] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py", line 372, in server_list
[Mon Apr 08 13:45:22 2013] [error] for s in novaclient(request).servers.list(True, search_opts)]
[Mon Apr 08 13:45:22 2013] [error] File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 355, in list
[Mon Apr 08 13:45:22 2013] [error] return self._list("/servers%s%s" % (detail, query_string), "servers")
[Mon Apr 08 13:45:22 2013] [error] File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 62, in _list
[Mon Apr 08 13:45:22 2013] [error] _resp, body = self.api.client.get(url)
[Mon Apr 08 13:45:22 2013] [error] File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 227, in get
[Mon Apr 08 13:45:22 2013] [error] return self._cs_request(url, 'GET', **kwargs)
[Mon Apr 08 13:45:22 2013] [error] File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 224, in _cs_request
[Mon Apr 08 13:45:22 2013] [error] raise ex
[Mon Apr 08 13:45:22 2013] [error] Unauthorized: Unauthorized (HTTP 401)
[Mon Apr 08 13:45:30 2013] [error] \x1b[31;1mUnauthorized: Unauthorized (HTTP 401)\x1b[0m
[Mon Apr 08 13:45:30 2013] [error] Traceback (most recent call last):
[Mon Apr 08 13:45:30 2013] [error] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/volumes/views.py", line 46, in _get_volumes
[Mon Apr 08 13:45:30 2013] [error] return cinder.volume_list(self.request, search_opts=search_opts)
[Mon Apr 08 13:45:30 2013] [error] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/cinder.py", line 73, in volume_list
[Mon Apr 08 13:45:30 2013] [error] return c_client.volumes.list(search_opts=search_opts)
[Mon Apr 08 13:45:30 2013] [error] File "/usr/lib/python2.7/dist-packages/cinderclient/v1/volumes.py", line 204, in list
[Mon Apr 08 13:45:30 2013] [error] "volumes")
[Mon Apr 08 13:45:30 2013] [error] File "/usr/lib/python2.7/dist-packages/cinderclient/base.py", line 63, in _list
[Mon Apr 08 13:45:30 2013] [error] resp, body = self.api.client.get(url)
[Mon Apr 08 13:45:30 2013] [error] File "/usr/lib/python2.7/dist-packages/cinderclient/client.py", line 185, in get
[Mon Apr 08 13:45:30 2013] [error] return self._cs_request(url, 'GET', **kwargs)
[Mon Apr 08 13:45:30 2013] [error] File "/usr/lib/python2.7/dist-packages/cinderclient/client.py", line 147, in _cs_request
[Mon Apr 08 13:45:30 2013] [error] self.authenticate()
[Mon Apr 08 13:45:30 2013] [error] File "/usr/lib/python2.7/dist-packages/cinderclient/client.py", line 293, in authenticate
[Mon Apr 08 13:45:30 2013] [error] auth_url = self._v1_auth(auth_url)
[Mon Apr 08 13:45:30 2013] [error] File "/usr/lib/python2.7/dist-packages/cinderclient/client.py", line 311, in _v1_auth
[Mon Apr 08 13:45:30 2013] [error] resp, body = self.request(url, 'GET', headers=headers)
[Mon Apr 08 13:45:30 2013] [error] File "/usr/lib/python2.7/dist-packages/cinderclient/client.py", line 136, in request
[Mon Apr 08 13:45:30 2013] [error] raise exceptions.from_response(resp, body)
[Mon Apr 08 13:45:30 2013] [error] Unauthorized: Unauthorized (HTTP 401)
[Mon Apr 08 13:45:30 2013] [error] \x1b[31;1mUnauthorized: Unauthorized (HTTP 401)\x1b[0m
[Mon Apr 08 13:45:30 2013] [error] Traceback (most recent call last):
[Mon Apr 08 13:45:30 2013] [error] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/volumes/views.py", line 53, in _get_instances
[Mon Apr 08 13:45:30 2013] [error] return api.nova.server_list(self.request)
[Mon Apr 08 13:45:30 2013] [error] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py", line 372, in server_list
[Mon Apr 08 13:45:30 2013] [error] for s in novaclient(request).servers.list(True, search_opts)]
[Mon Apr 08 13:45:30 2013] [error] File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/servers.py", line 355, in list
[Mon Apr 08 13:45:30 2013] [error] return self._list("/servers%s%s" % (detail, query_string), "servers")
[Mon Apr 08 13:45:30 2013] [error] File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 62, in _list
[Mon Apr 08 13:45:30 2013] [error] _resp, body = self.api.client.get(url)
[Mon Apr 08 13:45:30 2013] [error] File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 227, in get
[Mon Apr 08 13:45:30 2013] [error] return self._cs_request(url, 'GET', **kwargs)
[Mon Apr 08 13:45:30 2013] [error] File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 224, in _cs_request
[Mon Apr 08 13:45:30 2013] [error] raise ex
[Mon Apr 08 13:45:30 2013] [error] Unauthorized: Unauthorized (HTTP 401)

i think it is a problem between nova and keystone, but i don't find the error in my configs.
I hope everybody can help me. if you need my config files or some other logfiles?
regards
oliver

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Oliver Mueller
Solved:
Last query:
Last reply:
Revision history for this message
Oliver Mueller (ollimaller) said :
#1

i load a snapshot of a Folsom install

Revision history for this message
Alex Vitola (vitola) said :
#2

==> /var/log/apache2/error.log <==
[Mon Apr 29 15:28:13 2013] [error] File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line 404, in _cs_request
[Mon Apr 29 15:28:13 2013] [error] **kwargs)
[Mon Apr 29 15:28:13 2013] [error] File "/usr/lib/python2.7/dist-packages/keystoneclient/client.py", line 366, in request
[Mon Apr 29 15:28:13 2013] [error] raise exceptions.from_response(resp, resp.text)
[Mon Apr 29 15:28:13 2013] [error] Unauthorized: Unable to communicate with identity service: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Not Authorized"}}. (HTTP 401)

The same message

ii openstack-dashboard 1:2013.1-0ubuntu2~cloud0 django web interface to Openstack
ii openstack-dashboard-ubuntu-theme 1:2013.1-0ubuntu2~cloud0 Ubuntu theme for the Openstack dashboard

Revision history for this message
defermat (defermat) said :
#3

Running into this same issue on Grizzly - this question is marked as solved, what was the solution?

Revision history for this message
defermat (defermat) said :
#4

Scratch that, realized I needed to update my /etc/nova/api-paste.ini with the proper credentials, then everything worked fine.

Revision history for this message
Manikantan Chandrasekharan (shiva-hari-om) said :
#5

Hello defermat,
can you please mention which credentials you mentioned in /etc/nova/api-paste.ini - how was those credentials created?
Thanks,

Revision history for this message
shedoh (shedoh) said :
#6

I run into the same problem too. Any update on the solution?