summaryrefslogtreecommitdiff
path: root/tempest_lib/exceptions.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-04-20 22:37:47 +0000
committerGerrit Code Review <review@openstack.org>2015-04-20 22:37:47 +0000
commit0b50366e654ca1fec76b6cf4e20f21db63695c80 (patch)
treeddb39ba74a1f2253f62b0a803b1a683890d30171 /tempest_lib/exceptions.py
parent5b7a6f5a9c4692933c82d0454c26bf9b018f1fcd (diff)
parent9f5ff0847af168721b18f3b1050b8f673e4c40d9 (diff)
downloadtempest-lib-0b50366e654ca1fec76b6cf4e20f21db63695c80.tar.gz
Merge "Migrate ssh.py from tempest"
Diffstat (limited to 'tempest_lib/exceptions.py')
-rw-r--r--tempest_lib/exceptions.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tempest_lib/exceptions.py b/tempest_lib/exceptions.py
index 07952b6..90b0aca 100644
--- a/tempest_lib/exceptions.py
+++ b/tempest_lib/exceptions.py
@@ -155,3 +155,14 @@ class EndpointNotFound(TempestException):
class InvalidCredentials(TempestException):
message = "Invalid Credentials"
+
+
+class SSHTimeout(TempestException):
+ message = ("Connection to the %(host)s via SSH timed out.\n"
+ "User: %(user)s, Password: %(password)s")
+
+
+class SSHExecCommandFailed(TempestException):
+ """Raised when remotely executed command returns nonzero status."""
+ message = ("Command '%(command)s', exit status: %(exit_status)d, "
+ "Error:\n%(strerror)s")