Remove Exceptions for Container/Pod/Service

k8s APIs pod, rcs, svc and container API have been
removed. With this patch Exceptions specific to
these API's are removed.

Change-Id: I935672a9fe871c99a18e1f618151f01613c5ce04
Implements: blueprint delete-container-endpoint
Partial-Bug: #1627663
This commit is contained in:
yatin 2016-09-26 15:26:16 +05:30
parent 22e17cb5ed
commit 4cc5a628d9

View File

@ -254,51 +254,6 @@ class ClusterAlreadyExists(Conflict):
message = _("A cluster with UUID %(uuid)s already exists.")
class ContainerNotFound(ResourceNotFound):
message = _("Container %(container)s could not be found.")
class ContainerAlreadyExists(Conflict):
message = _("A container with UUID %(uuid)s already exists.")
class PodNotFound(ResourceNotFound):
message = _("Pod %(pod)s could not be found.")
class PodAlreadyExists(Conflict):
message = _("A pod with UUID %(uuid)s already exists.")
class PodListNotFound(ResourceNotFound):
message = _("Pod list could not be found for Cluster %(cluster_uuid)s.")
class PodCreationFailed(Invalid):
message = _("Pod creation failed in Cluster %(cluster_uuid)s.")
class ServiceNotFound(ResourceNotFound):
message = _("Service %(service)s could not be found.")
class ServiceAlreadyExists(Conflict):
message = _("A service with UUID %(uuid)s already exists.")
class ServiceListNotFound(ResourceNotFound):
message = _("Service list could not be found for Cluster "
"%(cluster_uuid)s.")
class ServiceCreationFailed(Invalid):
message = _("Service creation failed for Cluster %(cluster_uuid)s.")
class ContainerException(Exception):
pass
class NotSupported(MagnumException):
message = _("%(operation)s is not supported.")
code = 400