Adding currently unhandled NoValidConnectionsError exception
Signed-off-by: Georgios Kyratsas <gkyratsas@suse.com>
ConfigError,
ConnectionLostError,
)
-
+from paramiko.ssh_exception import NoValidConnectionsError
def enumerate_osds(remote, logger):
"""
"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