summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-01-12 11:23:41 +0000
committerGerrit Code Review <review@openstack.org>2016-01-12 11:23:41 +0000
commitf4b5b12aaf284cc4c384db91afcbaadf16c6b573 (patch)
tree237c62509aa964fc93235c7c0307f26c6c35a89e
parent297eb7c53ae0640bef30fd900286e63bd48b05ac (diff)
parent7a3e77f98bd1b1d8f42239011c6219bf9b46c5ea (diff)
downloadtempest-lib-f4b5b12aaf284cc4c384db91afcbaadf16c6b573.tar.gz
Merge "Retry ssh connect when EOFError received"
-rw-r--r--tempest_lib/common/ssh.py3
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"