Unable to authenticate user without metadata

Bug #951093 reported by Brian Lamar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
High
Brian Lamar

Bug Description

I'm not sure how others are having this work, but with the following information, I'm getting this traceback: http://paste.openstack.org/show/7892/

...when authenticating.

root@auth:~# keystone service-list
+----------------------------------+---------+---------+-------------+
| id | name | type | description |
+----------------------------------+---------+---------+-------------+
| 11effbca50f048f4bfb4f551daaea61a | compute | compute | None |
| e778c89aa29b405ca8d09a3263f70e2d | image | image | None |
+----------------------------------+---------+---------+-------------+

root@auth:~# keystone endpoint-list
+----------------------------------+-----------+--------------------------------+--------------------------------+--------------------------------+
| id | region | publicurl | internalurl | publicurl |
+----------------------------------+-----------+--------------------------------+--------------------------------+--------------------------------+
| b672526d813d4954b4d79c9a02b2e010 | RegionOne | http://api1:8774/v2.0/ | http://api1:8774/v2.0/ | http://api1:8774/v2.0/ |
| e766756c860a412d9060b8406f466ba9 | RegionOne | http://glance-api1:9292/v1/ | http://glance-api1:9292/v1/ | http://glance-api1:9292/v1/ |
+----------------------------------+-----------+--------------------------------+--------------------------------+--------------------------------+

root@auth:~# keystone user-list
+----------------------------------+---------+-------+-------+
| id | enabled | email | name |
+----------------------------------+---------+-------+-------+
| b8b494c26cee48619592e998533dda1a | True | None | admin |
+----------------------------------+---------+-------+-------+

root@auth:~# keystone tenant-list
+----------------------------------+-------+---------+
| id | name | enabled |
+----------------------------------+-------+---------+
| 788ca2f80f4b4fa7acb9de943196f366 | admin | True |
+----------------------------------+-------+---------+

The fix seems to be a very simple one-liner which updates a "get_metadata" call to return an empty dictionary instead of None.

Brian Lamar (blamar)
Changed in keystone:
assignee: nobody → Brian Lamar (blamar)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/5162

Changed in keystone:
status: New → In Progress
Brian Waldon (bcwaldon)
Changed in keystone:
milestone: none → essex-rc1
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/5162
Committed: http://github.com/openstack/keystone/commit/6f2c858f4382395bd4b4232e7ba3dd509327e4c6
Submitter: Jenkins
Branch: master

commit 6f2c858f4382395bd4b4232e7ba3dd509327e4c6
Author: Brian Lamar <email address hidden>
Date: Fri Mar 9 15:24:25 2012 -0500

    Update get_metadata to return {}

    Fixes bug 951093

    While the actual issue was encountered in keystone/service.py,
    the underlying issue is that all identity backends seems to be
    returning None when no metadata is found for a user. I would argue
    that returning {} makes it easier on clients.

    Change-Id: I06faf755cc0dbe45b5d0a0f86c6235b27c856047

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: essex-rc1 → 2012.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.