Merge "CI: do 12 attempts to connect to test instance"

This commit is contained in:
Zuul 2020-04-10 20:17:06 +00:00 committed by Gerrit Code Review
commit 573390303c

View File

@ -76,7 +76,7 @@ function test_instance_boot {
echo "SUCCESS: Floating ip allocation" echo "SUCCESS: Floating ip allocation"
echo "TESTING: PING&SSH to floating ip" echo "TESTING: PING&SSH to floating ip"
attempts=6 attempts=12
for i in $(seq 1 ${attempts}); do for i in $(seq 1 ${attempts}); do
if ping -c1 -W1 ${fip_addr} && ssh -v -o BatchMode=yes -o StrictHostKeyChecking=no cirros@${fip_addr} hostname; then if ping -c1 -W1 ${fip_addr} && ssh -v -o BatchMode=yes -o StrictHostKeyChecking=no cirros@${fip_addr} hostname; then
break break