From: Zack Cerza Date: Fri, 14 Jul 2023 20:27:32 +0000 (-0600) Subject: misc.ssh_keyscan: Always retry, and retry more X-Git-Tag: 1.2.0~91^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1867%2Fhead;p=teuthology.git misc.ssh_keyscan: Always retry, and retry more 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 --- diff --git a/teuthology/misc.py b/teuthology/misc.py index 267630edd..76a21815d 100644 --- a/teuthology/misc.py +++ b/teuthology/misc.py @@ -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: