diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2017-02-16 12:20:15 +0800 |
---|---|---|
committer | Harry Huang <huangxiangyu5@huawei.com> | 2017-02-16 12:20:15 +0800 |
commit | 420fbebbec6185e662818711bee7b23aec458100 (patch) | |
tree | 81e6d25004564cda247beb04872d88ae5daec208 /juju | |
parent | 31abe8bc59d5ce2eed2269f12703ce575d2560db (diff) |
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 <huangxiangyu5@huawei.com>
Diffstat (limited to 'juju')
-rwxr-xr-x | juju/juju_launch.sh | 8 |
1 files changed, 8 insertions, 0 deletions
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 |