Not able to reproduce.
** Changed in: keystone
Status: Confirmed => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1211445
Title:
deleting an unassigned role causes 500
Status in OpenStack Identity (Keystone):
Invalid
Bug description:
I would assume that this is directly related to bug 1210590, but I'm
filing separately just in case.
request:
DELETE
http://localhost:35357/v3/roles/9cf9fc40486947539a10400e638b9e65
response:
{
"error": {
"message": "An unexpected error prevented the server from fulfilling your
request. 'unicode' object has no attribute 'items'",
"code": 500,
"title": "Internal Server Error"
}
}
backtrace:
ERROR [keystone.common.wsgi] 'unicode' object has no attribute 'items'
Traceback (most recent call last):
File "/Users/dolph/Projects/keystone/keystone/common/wsgi.py", line 240, in
__call__
result = method(context, **params)
File "/Users/dolph/Projects/keystone/keystone/common/controller.py", line
106, in wrapper
return f(self, context, *args, **kwargs)
File "/Users/dolph/Projects/keystone/keystone/identity/controllers.py",
line 749, in delete_role
return self.identity_api.delete_role(role_id)
File "/Users/dolph/Projects/keystone/keystone/identity/core.py", line 141,
in delete_role
return self.assignment_api.delete_role(role_id)
File "/Users/dolph/Projects/keystone/keystone/common/manager.py", line 44,
in _wrapper
return f(*args, **kw)
File "/Users/dolph/Projects/keystone/keystone/assignment/backends/sql.py",
line 600, in delete_role
project_id=metadata_ref.project_id)
File "/Users/dolph/Projects/keystone/keystone/assignment/backends/sql.py",
line 211, in delete_grant
role_id, inherited_to_projects, metadata_ref.get('roles', []))
File "/Users/dolph/Projects/keystone/keystone/assignment/core.py", line
244, in _remove_role_from_role_dicts
role_set = set([frozenset(r.items()) for r in dict_list])
AttributeError: 'unicode' object has no attribute 'items'
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1211445/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp