apmec.common.exceptions
Module¶Apmec base exception handling.
apmec.common.exceptions.
AdminRequired
(**kwargs)¶Bases: apmec.common.exceptions.NotAuthorized
message
= u'User does not have admin privileges: %(reason)s'¶apmec.common.exceptions.
AlarmUrlInvalid
(**kwargs)¶Bases: apmec.common.exceptions.BadRequest
message
= u'Invalid alarm url for MEA %(mea_id)s'¶apmec.common.exceptions.
ApmecException
(**kwargs)¶Bases: exceptions.Exception
Base Apmec Exception.
To correctly use this class, inherit from it and define a ‘message’ property. That message will get printf’d with the keyword arguments provided to the constructor.
message
= u'An unknown exception occurred.'¶use_fatal_exceptions
()¶Is the instance using fatal exceptions.
Returns: | Always returns False. |
---|
apmec.common.exceptions.
BadRequest
(**kwargs)¶Bases: apmec.common.exceptions.ApmecException
message
= u'Bad %(resource)s request: %(msg)s'¶apmec.common.exceptions.
BridgeDoesNotExist
(**kwargs)¶Bases: apmec.common.exceptions.ApmecException
message
= u'Bridge %(bridge)s does not exist.'¶apmec.common.exceptions.
Conflict
(**kwargs)¶apmec.common.exceptions.
DeviceIDNotOwnedByTenant
(**kwargs)¶Bases: apmec.common.exceptions.Conflict
message
= u'The following device_id %(device_id)s is not owned by your tenant or matches another tenants router.'¶apmec.common.exceptions.
DuplicateEntity
(**kwargs)¶Bases: apmec.common.exceptions.ApmecException
message
= u'%(_type)s already exist with given %(entry)s'¶apmec.common.exceptions.
DuplicateResourceName
(**kwargs)¶Bases: apmec.common.exceptions.ApmecException
message
= u'%(resource)s with name %(name)s already exists'¶apmec.common.exceptions.
DuplicatedExtension
(**kwargs)¶Bases: apmec.common.exceptions.ApmecException
message
= u'Found duplicate extension: %(alias)s'¶apmec.common.exceptions.
ExtensionsNotFound
(**kwargs)¶Bases: apmec.common.exceptions.NotFound
message
= u'Extensions not found: %(extensions)s'¶apmec.common.exceptions.
ExternalIpAddressExhausted
(**kwargs)¶Bases: apmec.common.exceptions.BadRequest
message
= u'Unable to find any IP address on external network %(net_id)s.'¶apmec.common.exceptions.
GatewayConflictWithAllocationPools
(**kwargs)¶Bases: apmec.common.exceptions.InUse
message
= u'Gateway ip %(ip_address)s conflicts with allocation pool %(pool)s'¶apmec.common.exceptions.
GatewayIpInUse
(**kwargs)¶Bases: apmec.common.exceptions.InUse
message
= u'Current gateway ip %(ip_address)s already in use by port %(port_id)s. Unable to update.'¶apmec.common.exceptions.
InUse
(**kwargs)¶Bases: apmec.common.exceptions.ApmecException
message
= u'The resource is inuse'¶apmec.common.exceptions.
Invalid
(message=None)¶apmec.common.exceptions.
InvalidAllocationPool
(**kwargs)¶Bases: apmec.common.exceptions.BadRequest
message
= u'The allocation pool %(pool)s is not valid.'¶apmec.common.exceptions.
InvalidCIDR
(**kwargs)¶Bases: apmec.common.exceptions.BadRequest
message
= u'Invalid CIDR %(input)s given as IP prefix'¶apmec.common.exceptions.
InvalidConfigurationOption
(**kwargs)¶Bases: apmec.common.exceptions.ApmecException
message
= u'An invalid value was provided for %(opt_name)s: %(opt_value)s'¶apmec.common.exceptions.
InvalidContentType
(**kwargs)¶Bases: apmec.common.exceptions.ApmecException
message
= u'Invalid content type %(content_type)s'¶apmec.common.exceptions.
InvalidExtensionEnv
(**kwargs)¶Bases: apmec.common.exceptions.BadRequest
message
= u'Invalid extension environment: %(reason)s'¶apmec.common.exceptions.
InvalidInput
(**kwargs)¶Bases: apmec.common.exceptions.BadRequest
message
= u'Invalid input for operation: %(error_message)s.'¶apmec.common.exceptions.
InvalidQuotaValue
(**kwargs)¶Bases: apmec.common.exceptions.Conflict
message
= u'Change would make usage less than 0 for the following resources: %(unders)s'¶apmec.common.exceptions.
IpAddressGenerationFailure
(**kwargs)¶Bases: apmec.common.exceptions.Conflict
message
= u'No more IP addresses available on network %(net_id)s.'¶apmec.common.exceptions.
MacAddressGenerationFailure
(**kwargs)¶Bases: apmec.common.exceptions.ServiceUnavailable
message
= u'Unable to generate unique mac on network %(net_id)s.'¶apmec.common.exceptions.
MalformedRequestBody
(**kwargs)¶Bases: apmec.common.exceptions.BadRequest
message
= u'Malformed request body: %(reason)s'¶apmec.common.exceptions.
MeaPolicyActionInvalid
(**kwargs)¶Bases: apmec.common.exceptions.BadRequest
message
= u'Invalid action %(action)s for policy %(policy)s, should be one of %(valid_actions)s'¶apmec.common.exceptions.
MeaPolicyNotFound
(**kwargs)¶Bases: apmec.common.exceptions.NotFound
message
= u'Policy %(policy)s does not exist for MEA %(mea_id)s'¶apmec.common.exceptions.
MeaPolicyTypeInvalid
(**kwargs)¶Bases: apmec.common.exceptions.BadRequest
message
= u'Invalid type %(type)s for policy %(policy)s, should be one of %(valid_types)s'¶apmec.common.exceptions.
MgmtDriverException
(**kwargs)¶Bases: apmec.common.exceptions.ApmecException
message
= u'MEA configuration failed'¶apmec.common.exceptions.
NetworkNotFound
(**kwargs)¶Bases: apmec.common.exceptions.NotFound
message
= u'Network %(net_id)s could not be found'¶apmec.common.exceptions.
NetworkVlanRangeError
(**kwargs)¶Bases: apmec.common.exceptions.ApmecException
message
= u"Invalid network VLAN range: '%(vlan_range)s' - '%(error)s'"¶apmec.common.exceptions.
NetworkVxlanPortRangeError
(**kwargs)¶Bases: apmec.common.exceptions.ApmecException
message
= u"Invalid network VXLAN port range: '%(vxlan_range)s'"¶apmec.common.exceptions.
NotAuthorized
(**kwargs)¶Bases: apmec.common.exceptions.ApmecException
message
= u'Not authorized.'¶apmec.common.exceptions.
NotFound
(**kwargs)¶apmec.common.exceptions.
OutOfBoundsAllocationPool
(**kwargs)¶Bases: apmec.common.exceptions.BadRequest
message
= u'The allocation pool %(pool)s spans beyond the subnet cidr %(subnet_cidr)s.'¶apmec.common.exceptions.
OverQuota
(**kwargs)¶Bases: apmec.common.exceptions.Conflict
message
= u'Quota exceeded for resources: %(overs)s'¶apmec.common.exceptions.
OverlappingAllocationPools
(**kwargs)¶Bases: apmec.common.exceptions.Conflict
message
= u'Found overlapping allocation pools:%(pool_1)s %(pool_2)s for subnet %(subnet_cidr)s.'¶apmec.common.exceptions.
PolicyCheckError
(**kwargs)¶Bases: apmec.common.exceptions.ApmecException
message
= u'Failed to check policy %(policy)s because %(reason)s'¶apmec.common.exceptions.
PolicyFileNotFound
(**kwargs)¶Bases: apmec.common.exceptions.NotFound
message
= u'Policy configuration policy.json could not be found'¶apmec.common.exceptions.
PolicyInitError
(**kwargs)¶Bases: apmec.common.exceptions.ApmecException
message
= u'Failed to init policy %(policy)s because %(reason)s'¶apmec.common.exceptions.
PolicyNotAuthorized
(**kwargs)¶Bases: apmec.common.exceptions.NotAuthorized
message
= u"Policy doesn't allow %(action)s to be performed."¶apmec.common.exceptions.
PreexistingDeviceFailure
(**kwargs)¶Bases: apmec.common.exceptions.ApmecException
message
= u'Creation failed. %(dev_name)s already exists.'¶apmec.common.exceptions.
QuotaMissingTenant
(**kwargs)¶Bases: apmec.common.exceptions.BadRequest
message
= u'Tenant-id was missing from Quota request'¶apmec.common.exceptions.
QuotaResourceUnknown
(**kwargs)¶Bases: apmec.common.exceptions.NotFound
message
= u'Unknown quota resources %(unknown)s.'¶apmec.common.exceptions.
ResourceExhausted
(**kwargs)¶apmec.common.exceptions.
StateInvalid
(**kwargs)¶Bases: apmec.common.exceptions.BadRequest
message
= u'Unsupported port state: %(port_state)s'¶apmec.common.exceptions.
SudoRequired
(**kwargs)¶Bases: apmec.common.exceptions.ApmecException
message
= u'Sudo privilege is required to run this command.'¶apmec.common.exceptions.
TooManyExternalNetworks
(**kwargs)¶Bases: apmec.common.exceptions.ApmecException
message
= u'More than one external network exists'¶apmec.common.exceptions.
TriggerNotFound
(**kwargs)¶Bases: apmec.common.exceptions.NotFound
message
= u'Trigger %(trigger_name)s does not exist for MEA %(mea_id)s'¶apmec.common.exceptions.
VxlanNetworkUnsupported
(**kwargs)¶Bases: apmec.common.exceptions.ApmecException
message
= u'VXLAN Network unsupported.'¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.