]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/util: add exception on remote_exec
authorGeorgios Kyratsas <gkyratsas@suse.com>
Mon, 27 Apr 2020 11:58:54 +0000 (13:58 +0200)
committerStefen Allen <sallen@suse.com>
Thu, 9 Dec 2021 19:29:45 +0000 (12:29 -0700)
Adding currently unhandled NoValidConnectionsError exception

Signed-off-by: Georgios Kyratsas <gkyratsas@suse.com>
qa/tasks/util/__init__.py

index 5815553989174b6597bcc086298d28cd7dbc8caa..7038f17d50bdda93735ae838f8b9aeb16d75a43c 100644 (file)
@@ -7,7 +7,7 @@ from teuthology.exceptions import (
     ConfigError,
     ConnectionLostError,
     )
-
+from paramiko.ssh_exception import NoValidConnectionsError
 
 def enumerate_osds(remote, logger):
     """
@@ -236,7 +236,7 @@ def remote_exec(remote, cmd_str, logger, log_spec, quiet=True, rerun=False, trie
                               "output of \"journalctl --all\"!").format(log_spec))
                 remote.sh("sudo su -c 'journalctl --all > /var/log/journalctl.log'")
                 raise
-            except ConnectionLostError:
+            except (ConnectionLostError, NoValidConnectionsError):
                 already_rebooted_at_least_once = True
                 if tries < 1:
                     raise