diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2017-07-14 12:53:26 -0500 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2017-07-14 13:13:51 -0500 |
commit | 5cad009f23edb842327ed1a33034b72b22da3114 (patch) | |
tree | 1a8bbab245015dcb0486b9b070311c187ebb14a6 | |
parent | 67b1806b48566fb7ae2a897c3c3a43cc26a71c89 (diff) |
modfied to use public IP for keystone.
Change-Id: Id0bcd86ee00b81de4e15722038e0e5e985772971
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
-rwxr-xr-x | ci/openstack.sh | 4 | ||||
-rwxr-xr-x | juju/configure-juju-on-openstack | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/ci/openstack.sh b/ci/openstack.sh index 118be997..0a90b425 100755 --- a/ci/openstack.sh +++ b/ci/openstack.sh @@ -99,7 +99,9 @@ create_openrc() { chmod 0600 ~/joid_config/admin-openrc source ~/joid_config/admin-openrc projectid=`openstack project show admin -c id -f value` - configOpenrc admin $adminPasswd admin http://$keystoneIp:5000/v3 RegionOne publicURL $projectid > ~/joid_config/admin-openrcpublic + configOpenrc admin $adminPasswd admin http://$keystoneIp:5000/v3 RegionOne publicURL $projectid > ~/joid_config/admin-openrcinternal + 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 RegionOne publicURL $projectid > ~/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 diff --git a/juju/configure-juju-on-openstack b/juju/configure-juju-on-openstack index ce6b4025..1d98fd08 100755 --- a/juju/configure-juju-on-openstack +++ b/juju/configure-juju-on-openstack @@ -52,7 +52,7 @@ mkdir -p ~/simplestreams/images #Now, if necessary, source the nova.rc file for your cloud: -. ~/joid_config/admin-openrcpublic +. ~/joid_config/admin-openrc #We can now determine the region name for the cloud by running: @@ -91,9 +91,9 @@ cd - swift stat simplestreams swift post simplestreams --read-acl .r:* -openstack service list product-streams > /dev/null 2>&1 || openstack service create --name product-stream --description "Product Simple Stream" product-streams -SWIFT_URL=`openstack endpoint list --service swift --interface internal -c URL -f value` +openstack service show product-streams > /dev/null 2>&1 || openstack service create --name product-streams --description "Product Simple Stream" product-streams +SWIFT_URL=`openstack endpoint list --service swift --interface internal -c URL -f value` openstack endpoint create --region $OS_REGION_NAME product-streams public $SWIFT_URL/simplestreams/images openstack endpoint create --region $OS_REGION_NAME product-streams internal $SWIFT_URL/simplestreams/images @@ -124,7 +124,7 @@ juju add-credential openstack -f os-creds.yaml --replace #Bootstrap with Juju -juju bootstrap openstack --config image-metadata-url=$SWIFT_URL/simplestreams/images --config use-floating-ip=true --config network=private +juju bootstrap openstack --debug --config image-metadata-url=$SWIFT_URL/simplestreams/images --config use-floating-ip=true --config network=private juju gui --show-credentials --no-browser #Print the address of Juju-gui for deployments on Openstack |