summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2015-11-04 01:51:15 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-11-04 01:51:16 +0000
commitce4cf93c1f0e3ee58cb8a99000c28b64521d4de0 (patch)
tree4ff3f572c5993e3b7f7953aa3f1a37fd558ea46e
parentffb507c689826bb57647004f24ba8f8b8b21b758 (diff)
parent742431051063cc5e83d84e9918cd1a0a1dbcdec3 (diff)
Merge "immediately return false when virsh start compass failed"
-rw-r--r--deploy/compass_vm.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/deploy/compass_vm.sh b/deploy/compass_vm.sh
index 79eb1ecf..3ba20266 100644
--- a/deploy/compass_vm.sh
+++ b/deploy/compass_vm.sh
@@ -109,7 +109,13 @@ function launch_compass() {
sudo virsh define $compass_vm_dir/libvirt.xml
sudo virsh start compass
- if ! wait_ok 360;then
+ exit_status=$?
+ if [ $exit_status != 0 ];then
+ log_error "virsh start compass failed"
+ exit 1
+ fi
+
+ if ! wait_ok 500;then
log_error "install os timeout"
exit 1
fi