]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
misc.ssh_keyscan: Always retry, and retry more 1867/head
authorZack Cerza <zack@redhat.com>
Fri, 14 Jul 2023 20:27:32 +0000 (14:27 -0600)
committerZack Cerza <zack@redhat.com>
Fri, 14 Jul 2023 20:31:47 +0000 (14:31 -0600)
We started seeing reimage failures with errors like:
"teuthology.exceptions.MaxWhileTries: 'ssh_keyscan $host' reached
maximum tries (6) after waiting for 5 seconds"

Let's be quite a bit more generous.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/misc.py

index 267630edda45fd07a3a121cf02143b48f6727982..76a21815d04a61f708365993df62e725ab04dcc4 100644 (file)
@@ -1099,7 +1099,8 @@ def ssh_keyscan(hostnames, _raise=True):
     for hostname in hostnames:
         with safe_while(
             sleep=1,
-            tries=5 if _raise else 1,
+            tries=15 if _raise else 1,
+            increment=1,
             _raise=_raise,
             action="ssh_keyscan " + hostname,
         ) as proceed: