[Identity] Create user error in identity cookbook
Bug #1457533 reported by
Jun Hong Li
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack + Chef |
Fix Released
|
Medium
|
Xiaopei Liu |
Bug Description
Currently when creating a user in identity cookbook, it query the user with tenant in :create_user action, using:
output = identity_
The above code query the users with tenant, then to see whether the given user is in the given tenant. So in some very special cases, the user has already existed, but it's not in the given tenant, which will leads to create error later in :create_user action.
We'd better check whether the user has already existed before create it, if it does already exist, then we should call "keystone user-role-add" instead of "keystone user-create".
summary: |
- Create user error in identity cookbook + [Identity] Create user error in identity cookbook |
To post a comment you must log in.
Good catch here. Is there also a case for where we might want to user-role-delete?