diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-07-13 04:12:40 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-07-13 04:12:40 +0000 |
commit | fff554e776d420be56c48c4605f2152e5df7f735 (patch) | |
tree | 29f9cb6bec88bcaeff788478712fa460667c3816 /validation-scripts | |
parent | fe3bf6271a46a2bfe7bb902e5e14aa8e257f9e31 (diff) | |
parent | 6a64a4a9d20a7a43eee6181c7bab738329844eba (diff) |
Merge "Tolerate network errors in pingtest retry logic"
Diffstat (limited to 'validation-scripts')
-rw-r--r-- | validation-scripts/all-nodes.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/validation-scripts/all-nodes.sh b/validation-scripts/all-nodes.sh index ed7fefb7..296dcd36 100644 --- a/validation-scripts/all-nodes.sh +++ b/validation-scripts/all-nodes.sh @@ -10,12 +10,13 @@ function ping_retry() { PING_CMD=ping6 fi until [ $COUNT -ge $TIMES ]; do - if $PING_CMD -w 300 -c 1 $IP_ADDR &> /dev/null; then + if $PING_CMD -w 10 -c 1 $IP_ADDR &> /dev/null; then echo "Ping to $IP_ADDR succeeded." return 0 fi echo "Ping to $IP_ADDR failed. Retrying..." COUNT=$(($COUNT + 1)) + sleep 60 done return 1 } |