summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2017-08-25 22:34:58 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2017-08-25 22:34:58 -0500
commitfd8bd0c1beb084655a06a2cc5409fde190951e8a (patch)
treed412244f4acaa25206b0effb3553df120e3443b5 /ci
parent9dad7dbcc921d36f2209f01a38f5bfc1ec85f12f (diff)
added OS_REGION_NAME
Change-Id: Ic1de594408773430d7d4656465575f79dc0cb781 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/openstack.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/openstack.sh b/ci/openstack.sh
index 6b819cd5..088a5092 100755
--- a/ci/openstack.sh
+++ b/ci/openstack.sh
@@ -106,8 +106,7 @@ create_openrc() {
projectdomainid=`openstack domain show admin_domain -c id -f value`
userdomainid=`openstack user show admin -c domain_id -f value`
urlapi=`openstack catalog show keystone --format yaml | python -c "import yaml; import sys; print yaml.load(sys.stdin)['endpoints']" | grep public | cut -d " " -f 4`
- configOpenrc admin $adminPasswd admin $urlapi > ~/joid_config/admin-openrcinternal
- configOpenrc admin $adminPasswd admin $urlapi > ~/joid_config/admin-openrc
+ configOpenrc admin $adminPasswd admin $urlapi RegionOne > ~/joid_config/admin-openrc
else
configOpenrc2 admin $adminPasswd admin http://$keystoneIp:5000/v2.0 RegionOne > ~/joid_config/admin-openrc
chmod 0600 ~/joid_config/admin-openrc
@@ -140,6 +139,7 @@ export OS_PASSWORD=$2
export OS_VOLUME_API_VERSION=2
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2
+export OS_REGION_NAME=$5
EOF
}