yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #04356
[Bug 1176270] Re: add_user_to_project fails if default role_id hasn't been previously created
** Changed in: keystone
Status: Fix Committed => Fix Released
** Changed in: keystone
Milestone: None => havana-3
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1176270
Title:
add_user_to_project fails if default role_id hasn't been previously
created
Status in OpenStack Identity (Keystone):
Fix Released
Bug description:
The function add_user_to_project (self, tenant_id, user_id) uses the
default role_id (config.CONF.role_id) without ensuring it has been
created beforehand.
If the default role_id hasn't been created, this function throws an
error:
File "/home/edu/OpenStack/keystone/keystone/identity/core.py", line 125, in add_user_to_project
config.CONF.member_role_id)
File "/home/edu/OpenStack/keystone/keystone/identity/backends/kvs.py", line 153, in add_role_to_user_and_project
self.get_role(role_id)
File "/home/edu/OpenStack/keystone/keystone/identity/backends/kvs.py", line 127, in get_role
raise exception.RoleNotFound(role_id=role_id)
RoleNotFound: Could not find role: 9fe2ff9ee4384b1894a90878d3e92bab
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1176270/+subscriptions