diff options
author | Justin chi <chigang@huawei.com> | 2016-10-28 17:24:32 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-10-28 17:24:32 +0000 |
commit | 08c02618161561ecfc48442f886fcf3aa4df8fed (patch) | |
tree | ed91f169539a792abe602b551ffd5ecea1a11cec /deploy | |
parent | 77c231067d6aef2d1819a2721dd7969d52b17d17 (diff) | |
parent | 12880abb62fdb46afdcfa929e3fdb251b1e73814 (diff) |
Merge "Workaround for random wait compass boot timeout"
Diffstat (limited to 'deploy')
-rwxr-xr-x | deploy/compass_vm.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/deploy/compass_vm.sh b/deploy/compass_vm.sh index 94b103f0..f1c92892 100755 --- a/deploy/compass_vm.sh +++ b/deploy/compass_vm.sh @@ -85,7 +85,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 |