summaryrefslogtreecommitdiffstats
path: root/juju/configure-juju-on-openstack
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-07-27 23:57:05 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-07-28 01:36:56 -0500
commit6bc61ee14197bfb8faaf149c84b457485b5b8c11 (patch)
treeb29067b8601bd72de3e2b0a674c0b094502617b9 /juju/configure-juju-on-openstack
parentadb9288685ac205decce04a1d8eba4c9989bcc48 (diff)
patch not to remove swift API.
Change-Id: I32e552b7e42393fc4699010dab19f8547fa6352f Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'juju/configure-juju-on-openstack')
-rwxr-xr-xjuju/configure-juju-on-openstack14
1 files changed, 7 insertions, 7 deletions
diff --git a/juju/configure-juju-on-openstack b/juju/configure-juju-on-openstack
index f320146e..62ce885e 100755
--- a/juju/configure-juju-on-openstack
+++ b/juju/configure-juju-on-openstack
@@ -35,24 +35,24 @@ then
else
FLOAT_IP="$(openstack ip floating create ext-net -c ip -f value)"
fi
-
+
#Launch an instance
NET_UUID="$(nova net-list | grep private | awk '{ print $2 }')"
IMAGE_UUID="$(nova image-list | grep Xenial | awk '{ print $2 }')"
nova list | grep jumpserver2 ||nova boot --flavor m1.small --key-name default --image $IMAGE_UUID --nic net-id=$NET_UUID --security-group default jumpserver2
# checking jumpserver2 state until active ..
INST_STATE=` nova show jumpserver2 | grep status | awk '{print $4}'`
-while [ $INST_STATE != "ACTIVE" ];
-do
+while [ $INST_STATE != "ACTIVE" ];
+do
INST_STATE=` nova show jumpserver2 | grep status | awk '{print $4}'`
echo "Jumpserver2 instance state is: "$INST_STATE" waiting to be active"
sleep 1
done
sleep 6
#Associate the floating IP with the new instance
-nova floating-ip-associate jumpserver2 $FLOAT_IP || true
+nova floating-ip-associate jumpserver2 $FLOAT_IP || true
-sleep 30
+sleep 90
### make it more Readable
export SSH="ssh -o StrictHostKeyChecking=no ubuntu@$FLOAT_IP"
@@ -119,7 +119,7 @@ upload juju-meta tools"
$SSH swift --os-auth-url $OS_AUTH_URL --os-username $OS_USERNAME --os-password $OS_PASSWORD \
--os-tenant-name $OS_TENANT_NAME post -r '.r:*' juju-meta
-## collect the URL for getting the images
+## collect the URL for getting the images
$($SSH swift --os-auth-url $OS_AUTH_URL --os-username $OS_USERNAME --os-password $OS_PASSWORD \
--os-tenant-name $OS_TENANT_NAME auth)
@@ -139,7 +139,7 @@ $SSH "juju bootstrap openstack openstack --config image-metadata-url=$OS_STORAGE
#Create a new floating IP and associate with juju bootstrap instance
#INSTANCE_ID="$(nova list | grep juju-openstack-machine-0 | awk '{ print $2}')"
#FLOAT_IP2="$(nova floating-ip-create | grep ext_net | awk '{ print $2}')"
-#nova floating-ip-associate $INSTANCE_ID $FLOAT_IP2
+#nova floating-ip-associate $INSTANCE_ID $FLOAT_IP2
#Print the address of Juju-gui for deployments on Openstack
echo "Now connect to the Juju-GUI at: http://$FLOAT_IP2/ to continue deployments on Openstack."