Activity log for bug #1534140

Date Who What changed Old value New value Message
2016-01-14 12:46:06 Dave Chen bug added bug
2016-01-14 12:46:12 Dave Chen keystone: assignee Dave Chen (wei-d-chen)
2016-01-17 03:01:31 Dave Chen summary keystone-manage bootstrap should not create user/project if it fails keystone-manage bootstrap failed to create assignment if user/project/role exists
2016-01-17 07:59:00 OpenStack Infra keystone: status New In Progress
2016-01-17 08:44:12 Steve Martinelli keystone: milestone mitaka-2
2016-01-17 08:44:14 Steve Martinelli keystone: importance Undecided Medium
2016-01-18 06:01:51 OpenStack Infra keystone: assignee Dave Chen (wei-d-chen) Steve Martinelli (stevemar)
2016-01-18 06:32:29 Steve Martinelli keystone: assignee Steve Martinelli (stevemar) Dave Chen (wei-d-chen)
2016-01-18 18:32:13 OpenStack Infra keystone: assignee Dave Chen (wei-d-chen) Steve Martinelli (stevemar)
2016-01-19 01:21:30 Dave Chen keystone: assignee Steve Martinelli (stevemar) Dave Chen (wei-d-chen)
2016-01-19 01:21:32 Dave Chen description If `keystone-manage bootstrap` fails with the role already exists (this may happen if someone use OSC CLI created a role but someone else want to boostrap a set of `user`, `project` or `role` without aware of the role has already created.), the project or user can still be created successfully. And then if redefine the role, `keystone-manage bootstrap` will still fail since `user`, `project` have been created, but `keystone-manage bootstrap` cannot handle with this. See the example: dave@shldeOTCopen005:~$ keystone-manage bootstrap --bootstrap-username bootstrap_user --bootstrap-project-name bootstrap_project --bootstrap-role-name admin --bootstrap-password abc123 25784 TRACE keystone details=_('Duplicate Entry')) 25784 TRACE keystone Conflict: Conflict occurred attempting to store role - Duplicate Entry 25784 TRACE keystone change the role to `bootstrap_role` ... dave@shldeOTCopen005:~$ keystone-manage bootstrap --bootstrap-username bootstrap_user --bootstrap-project-name bootstrap_project --bootstrap-role-name bootstrap_role --bootstrap-password abc123 25813 TRACE keystone details=_('Duplicate Entry')) 25813 TRACE keystone Conflict: Conflict occurred attempting to store project - Duplicate Entry 25813 TRACE keystone So, if we want to boostrap again, we need delete project, user manually, this is not friendly to end user. `keystone-manage bootstrap` should not create any `user`, `project` if the command is not executed successfully. If `keystone-manage bootstrap` fails with the role already exists (this may happen if someone use OSC CLI created a role but someone else want to boostrap a set of `user`, `project` or `role` without aware of the role has already created.), the project or user can still be created successfully. And then if redefine the role, `keystone-manage bootstrap` will still fail since `user`, `project` have been created, but `keystone-manage bootstrap` cannot handle with this. See the example: dave@shldeOTCopen005:~$ keystone-manage bootstrap --bootstrap-username bootstrap_user --bootstrap-project-name bootstrap_project --bootstrap-role-name admin --bootstrap-password abc123 25784 TRACE keystone details=_('Duplicate Entry')) 25784 TRACE keystone Conflict: Conflict occurred attempting to store role - Duplicate Entry 25784 TRACE keystone change the role to `bootstrap_role` ... dave@shldeOTCopen005:~$ keystone-manage bootstrap --bootstrap-username bootstrap_user --bootstrap-project-name bootstrap_project --bootstrap-role-name bootstrap_role --bootstrap-password abc123 25813 TRACE keystone details=_('Duplicate Entry')) 25813 TRACE keystone Conflict: Conflict occurred attempting to store project - Duplicate Entry 25813 TRACE keystone So, if we want to boostrap again, we need delete project, user manually, this is not friendly to end user. `keystone-manage bootstrap` should not create any `user`, `project` if the command is not executed successfully. According to the comments from Morgan, the `user`, `project` or `role` should be created but the real issue is that assignment cannot be created if either of them exists, see the comments #2 for the updated.
2016-01-19 12:09:11 OpenStack Infra keystone: status In Progress Fix Released