OpenStack Dashboard (Horizon)

tenant chooser doesn't work: request requires authentication

Reported by Cole Robinson on 2012-04-15
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
High
Gabriel Hurley

Bug Description

Use essex GA everything, keystone sample data, logged into the dashboard as admin:admin. Under the 'project' dashboard, clicking on the tenant choose shows an empty list and drops this error in the logs.

[Sun Apr 15 16:54:30 2012] [error] Traceback (most recent call last):
[Sun Apr 15 16:54:30 2012] [error] File "/usr/lib/python2.7/site-packages/keystoneclient/client.py", line 150, in _cs_request
[Sun Apr 15 16:54:30 2012] [error] **kwargs)
[Sun Apr 15 16:54:30 2012] [error] File "/usr/lib/python2.7/site-packages/keystoneclient/client.py", line 130, in request
[Sun Apr 15 16:54:30 2012] [error] raise exceptions.from_response(resp, body)
[Sun Apr 15 16:54:30 2012] [error] Unauthorized: The request you have made requires authentication. (HTTP 401)
[Sun Apr 15 16:54:30 2012] [error] Could not retrieve tenant list.
[Sun Apr 15 16:54:30 2012] [error] Traceback (most recent call last):
[Sun Apr 15 16:54:30 2012] [error] File "/usr/lib/python2.7/site-packages/horizon/users.py", line 156, in authorized_tenants
[Sun Apr 15 16:54:30 2012] [error] authd = api.tenant_list_for_token(self._request, token)
[Sun Apr 15 16:54:30 2012] [error] File "/usr/lib/python2.7/site-packages/horizon/api/keystone.py", line 172, in tenant_list_for_token
[Sun Apr 15 16:54:30 2012] [error] return c.tenants.list()
[Sun Apr 15 16:54:30 2012] [error] File "/usr/lib/python2.7/site-packages/keystoneclient/v2_0/tenants.py", line 90, in list
[Sun Apr 15 16:54:30 2012] [error] return self._list("/tenants%s" % query, "tenants")
[Sun Apr 15 16:54:30 2012] [error] File "/usr/lib/python2.7/site-packages/keystoneclient/base.py", line 65, in _list
[Sun Apr 15 16:54:30 2012] [error] resp, body = self.api.get(url)
[Sun Apr 15 16:54:30 2012] [error] File "/usr/lib/python2.7/site-packages/keystoneclient/client.py", line 182, in get
[Sun Apr 15 16:54:30 2012] [error] return self._cs_request(url, 'GET', **kwargs)
[Sun Apr 15 16:54:30 2012] [error] File "/usr/lib/python2.7/site-packages/keystoneclient/client.py", line 158, in _cs_request
[Sun Apr 15 16:54:30 2012] [error] method, **kwargs)
[Sun Apr 15 16:54:30 2012] [error] File "/usr/lib/python2.7/site-packages/keystoneclient/client.py", line 130, in request
[Sun Apr 15 16:54:30 2012] [error] raise exceptions.from_response(resp, body)
[Sun Apr 15 16:54:30 2012] [error] Unauthorized: The request you have made requires authentication. (HTTP 401)

Endre Karlson (endre-karlson) wrote :

+ 1 for this - I can verify!

Cole Robinson (crobinso) wrote :

Hmm, gerrit linkage didn't pop up. I submitted a patch for this:

https://review.openstack.org/#/c/6579/

Mike Perez (thingee) on 2012-04-20
Changed in horizon:
status: New → In Progress
Devin Carlen (devcamcar) on 2012-04-23
Changed in horizon:
milestone: none → folsom-1
importance: Undecided → High
assignee: nobody → Cole Robinson (crobinso)
tags: added: essex-backport-potential

Cole, FYI, in the future you can do: "Fixes Bug #982595" to get Gerrit to link it, adding the actual link itself won't make it link.

Gabriel Hurley (gabriel-hurley) wrote :

Which endpoint type is used is already configurable in your local_settings.py, and should not be hard-coded into Horizon's codebase as proposed in the patch.

Changed in horizon:
assignee: Cole Robinson (crobinso) → Gabriel Hurley (gabriel-hurley)
milestone: folsom-1 → none
status: In Progress → Won't Fix
no longer affects: horizon/essex
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers