Split backend crashes with AttributeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Invalid
|
High
|
Henry Nash |
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/
result = method(context, **params)
File "/usr/lib/
context, auth)
File "/usr/lib/
user_id, tenant_id)
File "/usr/lib/
user_id, tenant_id)
File "/usr/lib/
user_id, tenant_id)
File "/usr/lib/
user_role_list = _get_user_
File "/usr/lib/
metadata_
File "/usr/lib/
return f(*args, **kw)
File "/usr/lib/
if ((not d.get('
AttributeError: 'unicode' object has no attribute 'get'
Changed in keystone: | |
milestone: | none → havana-3 |
I could bypass this problem with this code at keystone/ assignment/ core.py:
def _roles_ from_role_ dicts(self, dict_list, inherited): inherited_ to') and not inherited) or
(d.get( 'inherited_ to') == 'projects' and inherited)):
role_ list.append( d['id'] )
role_list = []
for d in dict_list:
# To bypass the problem
if isinstance(d, unicode):
d = {'id':d}
#
if ((not d.get('
return role_list