From 742431051063cc5e83d84e9918cd1a0a1dbcdec3 Mon Sep 17 00:00:00 2001 From: m00133142 Date: Fri, 30 Oct 2015 12:53:04 -0700 Subject: immediately return false when virsh start compass failed JIRA: COMPASS-129 Change-Id: Ie7c91314d1fa6b3845255534960849d5d314777b Signed-off-by: m00133142 --- deploy/compass_vm.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'deploy/compass_vm.sh') 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 -- cgit 1.2.3-korg