Tolerate network errors in pingtest retry logic
authorOliver Walsh <owalsh@redhat.com>
Fri, 30 Jun 2017 10:51:06 +0000 (11:51 +0100)
committerOliver Walsh <owalsh@redhat.com>
Fri, 30 Jun 2017 10:56:55 +0000 (11:56 +0100)
commit6a64a4a9d20a7a43eee6181c7bab738329844eba
tree67b2fef844670eeeb10cc4052f85999b31421d6d
parent876bafb8e91582a4fed83514d9db0cfc3bc756d1
Tolerate network errors in pingtest retry logic

We use ping -w <deadline> -c <count>. This will ping every second until
<count> replies are received, or <deadline> is reached, or a network error occurs.

With the current retry logic a network error will result in a short tight loop
instead of waiting for the network to come up.

This change reduces the deadline to 10s, but sleeps 60s between retries.

Change-Id: Ib00cff6f843c04a00737b40e3ef3d1560d6e6d2d
Related-bug: #1680167
validation-scripts/all-nodes.sh