Merge "Retry ssh connect when EOFError received"

This commit is contained in:
Jenkins 2016-01-12 11:23:41 +00:00 committed by Gerrit Code Review
commit f4b5b12aaf
1 changed files with 2 additions and 1 deletions

View File

@ -76,7 +76,8 @@ class Client(object):
LOG.info("ssh connection to %s@%s successfuly created",
self.username, self.host)
return ssh
except (socket.error,
except (EOFError,
socket.error,
paramiko.SSHException) as e:
if self._is_timed_out(_start_time):
LOG.exception("Failed to establish authenticated ssh"