Merge "Retry ssh connect when EOFError received"
This commit is contained in:
@@ -76,7 +76,8 @@ class Client(object):
|
|||||||
LOG.info("ssh connection to %s@%s successfuly created",
|
LOG.info("ssh connection to %s@%s successfuly created",
|
||||||
self.username, self.host)
|
self.username, self.host)
|
||||||
return ssh
|
return ssh
|
||||||
except (socket.error,
|
except (EOFError,
|
||||||
|
socket.error,
|
||||||
paramiko.SSHException) as e:
|
paramiko.SSHException) as e:
|
||||||
if self._is_timed_out(_start_time):
|
if self._is_timed_out(_start_time):
|
||||||
LOG.exception("Failed to establish authenticated ssh"
|
LOG.exception("Failed to establish authenticated ssh"
|
||||||
|
Reference in New Issue
Block a user