1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-24 23:03:08 +00:00

Tweak _iot_zezere_remote to keep retrying ssh for up to 10 mins

The time before the ssh key provision request goes through turns
out to be kinda unpredictable, so instead of just a hardcoded
wait then assuming it should succeed, let's do a loop-y retry
thing instead.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2020-08-21 15:02:01 -07:00
parent d35d57a8e8
commit 30ab26fbe6

View File

@ -42,10 +42,10 @@ sub run {
assert_and_click "zezere_provision_schedule"; assert_and_click "zezere_provision_schedule";
# exit # exit
quit_firefox; quit_firefox;
# wait for the provision request to go through # time before the provision request goes through is kinda hard to
sleep 60; # predict, so we'll just try over and over for up to 10 minutes
# ssh into iot host and create key file # and bail as soon as it works
assert_script_run 'ssh -o StrictHostKeyChecking=no root@172.16.2.119 touch /tmp/zezerekeyfile'; assert_script_run "until ssh -o StrictHostKeyChecking=no -o PasswordAuthentication=no root@172.16.2.119 touch /tmp/zezerekeyfile; do sleep 10; done", 600;
} }