diff options
author | 2017-09-05 17:07:32 -0500 | |
---|---|---|
committer | 2017-09-05 17:07:32 -0500 | |
commit | 61607ce57ddb99245d8e6485022cd9cf5ac5cbde (patch) | |
tree | 7158e88d3a80af7021b0fd134b6bc41edad6817d | |
parent | 3240e47c77172eef852a187ce3900112f89e1785 (diff) |
Add the user role into project with admin_domain.
Change-Id: Id560cffcd1e18a4691808f7447d306e490085006
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
-rwxr-xr-x | ci/openstack.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ci/openstack.sh b/ci/openstack.sh index 55f8186f..d449fb1b 100755 --- a/ci/openstack.sh +++ b/ci/openstack.sh @@ -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 |