From 03e13c3cd72073053efe32955a66a06bc119b31c Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Fri, 14 Jul 2023 14:27:32 -0600 Subject: [PATCH] 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 --- teuthology/misc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.47.3