Add the user role into project with admin_domain. 11/41111/1
authornarindergupta <narinder.gupta@canonical.com>
Tue, 5 Sep 2017 22:07:32 +0000 (17:07 -0500)
committernarindergupta <narinder.gupta@canonical.com>
Tue, 5 Sep 2017 22:07:32 +0000 (17:07 -0500)
Change-Id: Id560cffcd1e18a4691808f7447d306e490085006
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/openstack.sh

index 55f8186..d449fb1 100755 (executable)
@@ -180,6 +180,11 @@ neutron subnet-show ext-subnet > /dev/null 2>&1 || neutron subnet-create ext-net
    --name ext-subnet --allocation-pool start=$EXTNET_FIP,end=$EXTNET_LIP \
    --disable-dhcp --gateway $EXTNET_GW $EXTNET_NET
 
+domain_id=$(openstack domain show admin_domain -f value -c id)
+project_id=$(openstack project show admin --domain $domain_id -f value -c id)
+
+openstack role add --project $project_id --user admin admin || true
+
 #congress team is not updating and supporting charm anymore so defer it.
 
 # Create Congress datasources