summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>2015-01-19 01:49:00 +0000
committerKen'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>2015-01-20 05:09:09 +0000
commit26828ccc9e371200c44df88c36a4cfc641384de8 (patch)
tree165f8bcf740b1d6b9a60d945dd285d8e4d2b95d9
parent9018af62c46e1cecb955ebe29960c98c548b63f8 (diff)
downloadtempest-lib-26828ccc9e371200c44df88c36a4cfc641384de8.tar.gz
Remove unused exceptions
Before this patch, exceptions.py is synced with Tempest's exceptions.py. However, it is difficult to do it now because rest_client raises its own exceptions on tempest-lib and Tempest should handle them without Tempest's exceptions. This patch removes unused exceptions in tempest-lib for knowing tempest-lib own exceptions easily. Change-Id: I435f0752685f54e6b86d1f243a5236d79c9e250c
-rw-r--r--tempest_lib/exceptions.py88
1 files changed, 0 insertions, 88 deletions
diff --git a/tempest_lib/exceptions.py b/tempest_lib/exceptions.py
index 69aaf2a..8907cd1 100644
--- a/tempest_lib/exceptions.py
+++ b/tempest_lib/exceptions.py
@@ -54,14 +54,6 @@ class RFCViolation(RestClientException):
message = "RFC Violation"
-class InvalidConfiguration(TempestException):
- message = "Invalid Configuration"
-
-
-class InvalidCredentials(TempestException):
- message = "Invalid Credentials"
-
-
class InvalidHttpSuccessCode(RestClientException):
message = "The success code is different than the expected one"
@@ -74,54 +66,10 @@ class Unauthorized(RestClientException):
message = 'Unauthorized'
-class InvalidServiceTag(TempestException):
- message = "Invalid service tag"
-
-
class TimeoutException(TempestException):
message = "Request timed out"
-class BuildErrorException(TempestException):
- message = "Server %(server_id)s failed to build and is in ERROR status"
-
-
-class ImageKilledException(TempestException):
- message = "Image %(image_id)s 'killed' while waiting for '%(status)s'"
-
-
-class AddImageException(TempestException):
- message = "Image %(image_id)s failed to become ACTIVE in the allotted time"
-
-
-class EC2RegisterImageException(TempestException):
- message = ("Image %(image_id)s failed to become 'available' "
- "in the allotted time")
-
-
-class VolumeBuildErrorException(TempestException):
- message = "Volume %(volume_id)s failed to build and is in ERROR status"
-
-
-class SnapshotBuildErrorException(TempestException):
- message = "Snapshot %(snapshot_id)s failed to build and is in ERROR status"
-
-
-class VolumeBackupException(TempestException):
- message = "Volume backup %(backup_id)s failed and is in ERROR status"
-
-
-class StackBuildErrorException(TempestException):
- message = ("Stack %(stack_identifier)s is in %(stack_status)s status "
- "due to '%(stack_status_reason)s'")
-
-
-class StackResourceBuildErrorException(TempestException):
- message = ("Resource %(resource_name)s in stack %(stack_identifier)s is "
- "in %(resource_status)s status due to "
- "'%(resource_status_reason)s'")
-
-
class BadRequest(RestClientException):
message = "Bad request"
@@ -130,15 +78,6 @@ class UnprocessableEntity(RestClientException):
message = "Unprocessable entity"
-class AuthenticationFailure(RestClientException):
- message = ("Authentication with user %(user)s and password "
- "%(password)s failed auth using tenant %(tenant)s.")
-
-
-class EndpointNotFound(TempestException):
- message = "Endpoint not found"
-
-
class RateLimitExceeded(RestClientException):
message = "Rate limit exceeded"
@@ -155,37 +94,10 @@ class NotImplemented(RestClientException):
message = "Got NotImplemented error"
-class ImageFault(TempestException):
- message = "Got image fault"
-
-
-class IdentityError(TempestException):
- message = "Got identity error"
-
-
class Conflict(RestClientException):
message = "An object with that identifier already exists"
-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")
-
-
-class ServerUnreachable(TempestException):
- message = "The server is not reachable via the configured network"
-
-
-class TearDownException(TempestException):
- message = "%(num)d cleanUp operation failed"
-
-
class ResponseWithNonEmptyBody(RFCViolation):
message = ("RFC Violation! Response with %(status)d HTTP Status Code "
"MUST NOT have a body")