diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-01-12 11:23:41 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-01-12 11:23:41 +0000 |
commit | f4b5b12aaf284cc4c384db91afcbaadf16c6b573 (patch) | |
tree | 237c62509aa964fc93235c7c0307f26c6c35a89e | |
parent | 297eb7c53ae0640bef30fd900286e63bd48b05ac (diff) | |
parent | 7a3e77f98bd1b1d8f42239011c6219bf9b46c5ea (diff) | |
download | tempest-lib-f4b5b12aaf284cc4c384db91afcbaadf16c6b573.tar.gz |
Merge "Retry ssh connect when EOFError received"
-rw-r--r-- | tempest_lib/common/ssh.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tempest_lib/common/ssh.py b/tempest_lib/common/ssh.py index 7d0a344..687c054 100644 --- a/tempest_lib/common/ssh.py +++ b/tempest_lib/common/ssh.py @@ -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" |