Make sure ssh retries on paramiko.SSHException
We are occasionally seeing paramiko raise a SSHException which is
causing tempest to fail out, but on a constrained devstack environment
its possible that there are network or other performance issues, so we
want to keep retrying on an SSHException just like we retry on a
paramiko.AuthenticationException.
Attempt at Closes-Bug: #1253896
Change-Id: I4293f9a47a6d524ced0d09eb67a52c5ed1ad361e
diff --git a/tempest/common/ssh.py b/tempest/common/ssh.py
index 3eaa203..742a354 100644
--- a/tempest/common/ssh.py
+++ b/tempest/common/ssh.py
@@ -66,7 +66,8 @@
_timeout = False
break
except (socket.error,
- paramiko.AuthenticationException):
+ paramiko.AuthenticationException,
+ paramiko.SSHException):
time.sleep(bsleep)
bsleep *= backoff
continue