← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1210590] Re: Split backend crashes with AttributeError

 

Closing, as I haven't been able to reproduce this at all recently. If it
is still reproducible on master, please comment here! Thanks.

** Changed in: keystone
       Status: Confirmed => Invalid

** Changed in: keystone
    Milestone: havana-3 => None

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1210590

Title:
  Split backend crashes with AttributeError

Status in OpenStack Identity (Keystone):
  Invalid

Bug description:
  Using the Keystone split backend code (H2) with both identity and
  assignment using SQL drivers, during the process of authentication
  thru Horizon, I’m getting the following error in the log:

  Traceback (most recent call last):
    File "/usr/lib/python2.6/site-packages/keystone/common/wsgi.py", line 240, in __call__
      result = method(context, **params)
    File "/usr/lib/python2.6/site-packages/keystone/token/controllers.py", line 80, in authenticate
      context, auth)
    File "/usr/lib/python2.6/site-packages/keystone/token/controllers.py", line 257, in _authenticate_local
      user_id, tenant_id)
    File "/usr/lib/python2.6/site-packages/keystone/token/controllers.py", line 371, in _get_project_roles_and_ref
      user_id, tenant_id)
    File "/usr/lib/python2.6/site-packages/keystone/identity/core.py", line 123, in get_roles_for_user_and_project
      user_id, tenant_id)
    File "/usr/lib/python2.6/site-packages/keystone/assignment/core.py", line 125, in get_roles_for_user_and_project
      user_role_list = _get_user_project_roles(user_id, project_ref)
    File "/usr/lib/python2.6/site-packages/keystone/assignment/core.py", line 107, in _get_user_project_roles
      metadata_ref.get('roles', {}), False)
    File "/usr/lib/python2.6/site-packages/keystone/common/manager.py", line 44, in _wrapper
      return f(*args, **kw)
    File "/usr/lib/python2.6/site-packages/keystone/assignment/core.py", line 216, in _roles_from_role_dicts
      if ((not d.get('inherited_to') and not inherited) or
  AttributeError: 'unicode' object has no attribute 'get'

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1210590/+subscriptions