Fix broken grenade gate
in keystone v3, the openstack cli works completely differently when creating a user. The explictly adds the designate user to the designate project with the "Member" role. This was previously found in the main grenade project. Change-Id: I3addc95dce8f4f86c108ab18ace2b80003d22519 Related-Bug: #1662911
This commit is contained in:
parent
99a76263c4
commit
8eef7e103b
@ -34,10 +34,11 @@ function create {
|
||||
die $LINENO "Didn't create $DESIGNATE_PROJECT project"
|
||||
fi
|
||||
resource_save designate project_id $id
|
||||
local project_id=$id
|
||||
|
||||
# create the user, and set $id locally
|
||||
eval $(openstack user create $DESIGNATE_USER \
|
||||
--project $id \
|
||||
--project $project_id \
|
||||
--password $DESIGNATE_PASS \
|
||||
-f shell -c id)
|
||||
if [[ -z "$id" ]]; then
|
||||
@ -45,6 +46,11 @@ function create {
|
||||
fi
|
||||
resource_save designate user_id $id
|
||||
|
||||
# BUG(sdague): this really shouldn't be required, in Keystone v2 a
|
||||
# user created in a project was assigned to that project, in v3 it
|
||||
# is not - https://bugs.launchpad.net/keystone/+bug/1662911
|
||||
openstack role add Member --user $id --project $project_id
|
||||
|
||||
_set_designate_user
|
||||
|
||||
# Create a zone, and save the id
|
||||
|
Loading…
x
Reference in New Issue
Block a user