From 420fbebbec6185e662818711bee7b23aec458100 Mon Sep 17 00:00:00 2001 From: Harry Huang Date: Thu, 16 Feb 2017 12:20:15 +0800 Subject: Add Open-O docker tag fix 1. add docker tag in docker run scropt 2. add vm boot check in juju/juju_launch.sh Change-Id: Ifc749c129357828ff8a9c30b7d4a5843d1d7adc9 Signed-off-by: Harry Huang --- juju/juju_launch.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'juju') diff --git a/juju/juju_launch.sh b/juju/juju_launch.sh index a4cf604..b87c360 100755 --- a/juju/juju_launch.sh +++ b/juju/juju_launch.sh @@ -17,11 +17,19 @@ function launch_juju_vm() if [[ ! $(nova list | grep juju-client-vm) ]]; then nova boot --flavor m1.small --image Xenial_x86_64 --nic net-id=$NET_ID \ --key-name jump-key --security-group juju-default juju-client-vm + if [ $? -ne 0 ]; then + log_error "boot juju-client-vm fail" + exit 1 + fi fi if [[ ! $(nova list | grep juju-metadata-vm) ]]; then nova boot --flavor m1.small --image Xenial_x86_64 --nic net-id=$NET_ID \ --key-name jump-key --security-group juju-default juju-metadata-vm + if [ $? -ne 0 ]; then + log_error "boot juju-metadata-vm fail" + exit 1 + fi fi count=300 -- cgit 1.2.3-korg