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