KeyError in GroupNotFound error path

Bug #1359376 reported by Matthew Edmonds
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
Matthew Edmonds

Bug Description

Hit the following exception:

2014-07-23 04:31:08.206 4449 ERROR keystone.common.wsgi [-] 'group_id'
2014-07-23 04:31:08.206 4449 TRACE keystone.common.wsgi Traceback (most recent call last):
2014-07-23 04:31:08.206 4449 TRACE keystone.common.wsgi File "/usr/lib/python2.6/site-packages/keystone/common/wsgi.py", line 207, in __call__
2014-07-23 04:31:08.206 4449 TRACE keystone.common.wsgi result = method(context, **params)
2014-07-23 04:31:08.206 4449 TRACE keystone.common.wsgi File "/usr/lib/python2.6/site-packages/keystone/common/controller.py", line 196, in wrapper
2014-07-23 04:31:08.206 4449 TRACE keystone.common.wsgi return f(self, context, filters, **kwargs)
2014-07-23 04:31:08.206 4449 TRACE keystone.common.wsgi File "/usr/lib/python2.6/site-packages/keystone/assignment/controllers.py", line 876, in list_role_assignments
2014-07-23 04:31:08.206 4449 TRACE keystone.common.wsgi formatted_refs)
2014-07-23 04:31:08.206 4449 TRACE keystone.common.wsgi File "/usr/lib/python2.6/site-packages/keystone/assignment/controllers.py", line 811, in _
expand_indirect_assignments
2014-07-23 04:31:08.206 4449 TRACE keystone.common.wsgi members = _get_group_members(r)
2014-07-23 04:31:08.206 4449 TRACE keystone.common.wsgi File "/usr/lib/python2.6/site-packages/keystone/assignment/controllers.py", line 696, in _get_group_members
2014-07-23 04:31:08.206 4449 TRACE keystone.common.wsgi 'group': ref['group_id'], 'target': target,
2014-07-23 04:31:08.206 4449 TRACE keystone.common.wsgi KeyError: 'group_id'

It appears that the dictionary format was changed and the error path code was not updated to expect the new format.

Changed in keystone:
assignee: nobody → Matthew Edmonds (edmondsw)
status: New → In Progress
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/116647

Dolph Mathews (dolph)
Changed in keystone:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/116647
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=e15b105ed7d04e0cf7fe2720c2ed6634f0e29730
Submitter: Jenkins
Branch: master

commit e15b105ed7d04e0cf7fe2720c2ed6634f0e29730
Author: Matthew Edmonds <email address hidden>
Date: Thu Aug 21 07:37:06 2014 -0400

    assignment controller error path fix

    Assignment controller error path code updated to reflect a change in the
    dictionary format.

    Closes-Bug: #1359376

    Change-Id: I5358f8d61b60ea853fb4e2af0b05031a25c4ae6d

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
milestone: none → juno-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: juno-3 → 2014.2
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.