Removed unused exceptions

There's a bunch of exceptions that were copied over from nova-baremetal
into ironic that are currently unused and don't have any immediate
applicability.

Change-Id: Ia5a3c25ca809edcfeaefd423609b43f2658f1870
Closes-Bug: 1271283
This commit is contained in:
Michael Davies 2014-01-23 21:42:03 -08:00 committed by Devananda van der Veen
parent 4a3dd7da25
commit 77ea8ae5a9

View File

@ -101,14 +101,6 @@ class NotAuthorized(IronicException):
code = 403 code = 403
class AdminRequired(NotAuthorized):
message = _("User does not have admin privileges")
class PolicyNotAuthorized(NotAuthorized):
message = _("Policy doesn't allow %(action)s to be performed.")
class OperationNotPermitted(NotAuthorized): class OperationNotPermitted(NotAuthorized):
message = _("Operation not permitted.") message = _("Operation not permitted.")
@ -131,18 +123,6 @@ class MACAlreadyExists(Conflict):
message = _("A Port with MAC address %(mac)s already exists.") message = _("A Port with MAC address %(mac)s already exists.")
class InvalidCPUInfo(Invalid):
message = _("Unacceptable CPU info: %(reason)s")
class InvalidIpAddressError(Invalid):
message = _("%(address)s is not a valid IP v4/6 address.")
class InvalidDiskFormat(Invalid):
message = _("Disk format %(disk_format)s is not acceptable")
class InvalidUUID(Invalid): class InvalidUUID(Invalid):
message = _("Expected a uuid but received %(uuid)s.") message = _("Expected a uuid but received %(uuid)s.")
@ -182,10 +162,6 @@ class NotFound(IronicException):
code = 404 code = 404
class DiskNotFound(NotFound):
message = _("No disk at %(location)s")
class DriverNotFound(NotFound): class DriverNotFound(NotFound):
message = _("Failed to load driver %(driver_name)s.") message = _("Failed to load driver %(driver_name)s.")
@ -194,22 +170,6 @@ class ImageNotFound(NotFound):
message = _("Image %(image_id)s could not be found.") message = _("Image %(image_id)s could not be found.")
class HostNotFound(NotFound):
message = _("Host %(host)s could not be found.")
class ConsoleNotFound(NotFound):
message = _("Console %(console_id)s could not be found.")
class FileNotFound(NotFound):
message = _("File %(file_path)s could not be found.")
class NoValidHost(NotFound):
message = _("No valid host was found. %(reason)s")
class InstanceNotFound(NotFound): class InstanceNotFound(NotFound):
message = _("Instance %(instance)s could not be found.") message = _("Instance %(instance)s could not be found.")
@ -256,21 +216,11 @@ class NodeMaintenanceFailure(Invalid):
"for node %(node)s: %(reason)s") "for node %(node)s: %(reason)s")
class NodeInUse(InvalidState):
message = _("Unable to complete the requested action because node "
"%(node)s is currently in use by another process.")
class NodeInWrongPowerState(InvalidState): class NodeInWrongPowerState(InvalidState):
message = _("Can not change instance association while node " message = _("Can not change instance association while node "
"%(node)s is in power state %(pstate)s.") "%(node)s is in power state %(pstate)s.")
class NodeNotConfigured(InvalidState):
message = _("Can not change power state because node %(node)s "
"is not fully configured.")
class ChassisNotEmpty(Invalid): class ChassisNotEmpty(Invalid):
message = _("Cannot complete the requested action because chassis " message = _("Cannot complete the requested action because chassis "
"%(chassis)s contains nodes.") "%(chassis)s contains nodes.")
@ -338,10 +288,6 @@ class BadRequest(IronicException):
pass pass
class HTTPException(IronicException):
message = _("Requested version of OpenStack Images API is not available.")
class InvalidEndpoint(IronicException): class InvalidEndpoint(IronicException):
message = _("The provided endpoint is invalid") message = _("The provided endpoint is invalid")