Esempio n. 1
0
class MasterNGResizeNotSupported(NotSupported):
    message = _("Resizing a master nodegroup is not supported.")
Esempio n. 2
0
class NotAuthorized(MagnumException):
    message = _("Not authorized.")
    code = 403
Esempio n. 3
0
class InvalidMAC(Invalid):
    message = _("Expected a MAC address but received %(mac)s.")
Esempio n. 4
0
class Conflict(MagnumException):
    message = _('Conflict.')
    code = 409
Esempio n. 5
0
class InvalidParameterValue(Invalid):
    message = _("%(err)s")
Esempio n. 6
0
class GetClusterSizeFailed(MagnumException):
    message = _("Failed to get the size of cluster from '%(discovery_url)s'.")
Esempio n. 7
0
class InvalidCsr(Invalid):
    message = _("Received invalid csr %(csr)s.")
Esempio n. 8
0
class ObjectNotFound(MagnumException):
    message = _("The %(name)s %(id)s could not be found.")
    code = 404
Esempio n. 9
0
class ProjectNotFound(ObjectNotFound):
    message = _("The %(name)s %(id)s could not be found.")
Esempio n. 10
0
class CreateMasterNodeGroup(NotSupported):
    message = _("Creating master nodegroups is currently not supported.")
Esempio n. 11
0
class NgOperationInProgress(Invalid):
    message = _("Nodegroup %(nodegroup)s already has an operation in "
                "progress.")
Esempio n. 12
0
class NodeGroupInvalidInput(Conflict):
    message = _("%(attr)s for %(nodegroup)s is invalid (%(expl)s).")
Esempio n. 13
0
class DeletingDefaultNGNotSupported(NotSupported):
    message = _("Deleting a default nodegroup is not supported.")
Esempio n. 14
0
class NGResizeOutBounds(Invalid):
    message = _("Resizing %(nodegroup)s outside the allowed range: "
                "min_node_count = %(min_nc)s, "
                "max_node_count = %(max_nc)s")
Esempio n. 15
0
class InvalidClusterDiscoveryURL(Invalid):
    message = _("Invalid discovery URL '%(discovery_url)s'.")
Esempio n. 16
0
class ResourceNotFound(ObjectNotFound):
    message = _("The %(name)s resource %(id)s could not be found.")
Esempio n. 17
0
class InvalidClusterSize(Invalid):
    message = _("Expected cluster size %(expect_size)d but get cluster "
                "size %(size)d from '%(discovery_url)s'.")
Esempio n. 18
0
class AuthorizationFailure(MagnumException):
    message = _("%(client)s connection failed. %(message)s")
    code = 403
Esempio n. 19
0
class InvalidIdentity(Invalid):
    message = _("Expected an uuid or int but received %(identity)s.")
Esempio n. 20
0
class Invalid(MagnumException):
    message = _("Unacceptable parameters.")
    code = 400
Esempio n. 21
0
class InvalidSubnet(Invalid):
    message = _("Received invalid subnet %(subnet)s.")
Esempio n. 22
0
class InvalidUUID(Invalid):
    message = _("Expected a uuid but received %(uuid)s.")
Esempio n. 23
0
class ApiVersionsIntersect(Invalid):
    message = _("Version of %(name)s %(min_ver)s %(max_ver)s intersects "
                "with another versions.")
Esempio n. 24
0
class InvalidName(Invalid):
    message = _("Expected a name but received %(name)s.")
Esempio n. 25
0
class PatchError(Invalid):
    message = _("Couldn't apply patch '%(patch)s'. Reason: %(reason)s")
Esempio n. 26
0
class InvalidDiscoveryURL(Invalid):
    message = _("Received invalid discovery URL '%(discovery_url)s' for "
                "discovery endpoint '%(discovery_endpoint)s'.")
Esempio n. 27
0
class PolicyNotAuthorized(NotAuthorized):
    message = _("Policy doesn't allow %(action)s to be performed.")
Esempio n. 28
0
class GetDiscoveryUrlFailed(MagnumException):
    message = _("Failed to get discovery url from '%(discovery_endpoint)s'.")
Esempio n. 29
0
class ConfigInvalid(Invalid):
    message = _("Invalid configuration file. %(error_msg)s")
Esempio n. 30
0
class NodeGroupNotFound(ResourceNotFound):
    message = _("Nodegroup %(nodegroup)s could not be found.")