summaryrefslogtreecommitdiffstats
path: root/deploy/compass_vm.sh
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2016-11-28 02:04:02 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-11-28 02:04:02 +0000
commit1908bad07fdc419fb7f26769781d1d16307c2e26 (patch)
tree6949a86cba91323954814cf80d47774e12e00b04 /deploy/compass_vm.sh
parented88ee208590a243d82e2c654dbe30b7bac72455 (diff)
parent513fcd64b3c8a69d95fef292015178b93f671205 (diff)
Merge "Workaround for random wait compass boot timeout" into stable/colorado
Diffstat (limited to 'deploy/compass_vm.sh')
-rwxr-xr-xdeploy/compass_vm.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/deploy/compass_vm.sh b/deploy/compass_vm.sh
index dc391acc..0c213e31 100755
--- a/deploy/compass_vm.sh
+++ b/deploy/compass_vm.sh
@@ -59,7 +59,16 @@ function wait_ok() {
sleep 1
let retry+=1
if [[ $retry -ge $1 ]];then
- timeout 1s ssh $ssh_args root@$MGMT_IP "exit"
+ # first try
+ ssh $ssh_args root@$MGMT_IP "exit"
+ # second try
+ ssh $ssh_args root@$MGMT_IP "exit"
+ exit_status=$?
+ if [[ $exit_status == 0 ]]; then
+ log_warn "final ssh login compass success !!!"
+ break
+ fi
+ log_error "final ssh retry failed with status: " $exit_status
log_error "os install time out"
exit 1
fi