add_user_to_project fails if default role_id hasn't been previously created
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
High
|
Adam Young |
Bug Description
The function add_user_to_project (self, tenant_id, user_id) uses the default role_id (config.
If the default role_id hasn't been created, this function throws an error:
File "/home/
config.
File "/home/
self.
File "/home/
raise exception.
RoleNotFound: Could not find role: 9fe2ff9ee4384b1
Changed in keystone: | |
milestone: | none → havana-3 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | havana-3 → 2013.2 |
tags: | removed: grizzly-backport-potential |
Default Role gets created in the SQL migration. KVS either needs an equivalent, or we need to generate the role on demand.