From 8fe900d7bb8357642f61ff32eb164ce381b2d9b0 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Mon, 14 Nov 2022 12:17:21 -0800 Subject: [PATCH] provision/fog.py: log exceptions while looping for ssh Make sure the user knows of potential configuration problems, etc. Fixes: https://tracker.ceph.com/issues/58015 Signed-off-by: Dan Mick --- teuthology/provision/fog.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/teuthology/provision/fog.py b/teuthology/provision/fog.py index 7427de420..440ca2c27 100644 --- a/teuthology/provision/fog.py +++ b/teuthology/provision/fog.py @@ -278,7 +278,12 @@ class FOG(object): NoValidConnectionsError, MaxWhileTries, EOFError, - ): + ) as e: + # log this, because otherwise lots of failures just + # keep retrying without any notification (like, say, + # a mismatched host key in ~/.ssh/known_hosts, or + # something) + log.warning(e) pass sentinel_file = config.fog.get('sentinel_file', None) if sentinel_file: -- 2.47.3