]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
provision/fog.py: log exceptions while looping for ssh 1795/head
authorDan Mick <dmick@redhat.com>
Mon, 14 Nov 2022 20:17:21 +0000 (12:17 -0800)
committerDan Mick <dmick@redhat.com>
Thu, 8 Dec 2022 21:25:44 +0000 (13:25 -0800)
Make sure the user knows of potential configuration problems, etc.

Fixes: https://tracker.ceph.com/issues/58015
Signed-off-by: Dan Mick <dmick@redhat.com>
teuthology/provision/fog.py

index 7427de4208d18e8e57b04f2d1ec4931a27102ae5..440ca2c2755436a9656aacf969e2f790b0ed2dcc 100644 (file)
@@ -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: