Comment 2 for bug 1534140

Revision history for this message
Dave Chen (wei-d-chen) wrote : Re: keystone-manage bootstrap should not create user/project if it fails

@stevemar, the bug is still valid, but the exception message is changed.

How to reproduce -

1.
$ keystone-manage bootstrap --bootstrap-username bootstrap_user --bootstrap-project-name bootstrap_project --bootstrap-role-name admin --bootstrap-password abc123

Throw the following message.

TRACE keystone raise exception.RoleNotFound(role_id=role_id)
12056 TRACE keystone RoleNotFound: Could not find role: a06c765572d84bfba4acb252ba02ccdd
12056 TRACE keystone

change the role to new `bootstrap_role`, hit the following exception.
2.
$ keystone-manage bootstrap --bootstrap-username bootstrap_user --bootstrap-project-name bootstrap_project --bootstrap-role-name bootstrap_role --bootstrap-password abc123

12128 TRACE keystone File "/opt/stack/keystone/keystone/resource/backends/sql.py", line 36, in _get_project
12128 TRACE keystone raise exception.ProjectNotFound(project_id=project_id)
12128 TRACE keystone ProjectNotFound: Could not find project: f5fac91d78a94864b6b32db83c89d309
12128 TRACE keystone

I think there is two issues here.
1. user and project is created even the bootstrap failed in the first step.
2. the error message is not accurate, or maybe it should be more helpful to identify the root cause.