The apmec.common.exceptions Module

The apmec.common.exceptions Module

Apmec base exception handling.

exception apmec.common.exceptions.AdminRequired(**kwargs)

Bases: apmec.common.exceptions.NotAuthorized

message = u'User does not have admin privileges: %(reason)s'
exception apmec.common.exceptions.AlarmUrlInvalid(**kwargs)

Bases: apmec.common.exceptions.BadRequest

message = u'Invalid alarm url for MEA %(mea_id)s'
exception 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.
exception apmec.common.exceptions.BadRequest(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'Bad %(resource)s request: %(msg)s'
exception apmec.common.exceptions.BridgeDoesNotExist(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'Bridge %(bridge)s does not exist.'
exception apmec.common.exceptions.Conflict(**kwargs)

Bases: apmec.common.exceptions.ApmecException

exception 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.'
exception apmec.common.exceptions.DuplicateEntity(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'%(_type)s already exist with given %(entry)s'
exception apmec.common.exceptions.DuplicateResourceName(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'%(resource)s with name %(name)s already exists'
exception apmec.common.exceptions.DuplicatedExtension(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'Found duplicate extension: %(alias)s'
exception apmec.common.exceptions.ExtensionsNotFound(**kwargs)

Bases: apmec.common.exceptions.NotFound

message = u'Extensions not found: %(extensions)s'
exception apmec.common.exceptions.ExternalIpAddressExhausted(**kwargs)

Bases: apmec.common.exceptions.BadRequest

message = u'Unable to find any IP address on external network %(net_id)s.'
exception apmec.common.exceptions.GatewayConflictWithAllocationPools(**kwargs)

Bases: apmec.common.exceptions.InUse

message = u'Gateway ip %(ip_address)s conflicts with allocation pool %(pool)s'
exception 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.'
exception apmec.common.exceptions.InUse(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'The resource is inuse'
exception apmec.common.exceptions.Invalid(message=None)

Bases: apmec.common.exceptions.ApmecException

exception apmec.common.exceptions.InvalidAllocationPool(**kwargs)

Bases: apmec.common.exceptions.BadRequest

message = u'The allocation pool %(pool)s is not valid.'
exception apmec.common.exceptions.InvalidCIDR(**kwargs)

Bases: apmec.common.exceptions.BadRequest

message = u'Invalid CIDR %(input)s given as IP prefix'
exception apmec.common.exceptions.InvalidConfigurationOption(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'An invalid value was provided for %(opt_name)s: %(opt_value)s'
exception apmec.common.exceptions.InvalidContentType(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'Invalid content type %(content_type)s'
exception apmec.common.exceptions.InvalidExtensionEnv(**kwargs)

Bases: apmec.common.exceptions.BadRequest

message = u'Invalid extension environment: %(reason)s'
exception apmec.common.exceptions.InvalidInput(**kwargs)

Bases: apmec.common.exceptions.BadRequest

message = u'Invalid input for operation: %(error_message)s.'
exception 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'
exception apmec.common.exceptions.InvalidSharedSetting(**kwargs)

Bases: apmec.common.exceptions.Conflict

message = u'Unable to reconfigure sharing settings for network %(network)s. Multiple tenants are using it'
exception apmec.common.exceptions.IpAddressGenerationFailure(**kwargs)

Bases: apmec.common.exceptions.Conflict

message = u'No more IP addresses available on network %(net_id)s.'
exception apmec.common.exceptions.MacAddressGenerationFailure(**kwargs)

Bases: apmec.common.exceptions.ServiceUnavailable

message = u'Unable to generate unique mac on network %(net_id)s.'
exception apmec.common.exceptions.MalformedRequestBody(**kwargs)

Bases: apmec.common.exceptions.BadRequest

message = u'Malformed request body: %(reason)s'
exception 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'
exception apmec.common.exceptions.MeaPolicyNotFound(**kwargs)

Bases: apmec.common.exceptions.NotFound

message = u'Policy %(policy)s does not exist for MEA %(mea_id)s'
exception 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'
exception apmec.common.exceptions.MgmtDriverException(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'MEA configuration failed'
exception apmec.common.exceptions.NetworkNotFound(**kwargs)

Bases: apmec.common.exceptions.NotFound

message = u'Network %(net_id)s could not be found'
exception apmec.common.exceptions.NetworkVlanRangeError(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u"Invalid network VLAN range: '%(vlan_range)s' - '%(error)s'"
exception apmec.common.exceptions.NetworkVxlanPortRangeError(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u"Invalid network VXLAN port range: '%(vxlan_range)s'"
exception apmec.common.exceptions.NotAuthorized(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'Not authorized.'
exception apmec.common.exceptions.NotFound(**kwargs)

Bases: apmec.common.exceptions.ApmecException

exception 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.'
exception apmec.common.exceptions.OverQuota(**kwargs)

Bases: apmec.common.exceptions.Conflict

message = u'Quota exceeded for resources: %(overs)s'
exception 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.'
exception apmec.common.exceptions.PolicyCheckError(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'Failed to check policy %(policy)s because %(reason)s'
exception apmec.common.exceptions.PolicyFileNotFound(**kwargs)

Bases: apmec.common.exceptions.NotFound

message = u'Policy configuration policy.json could not be found'
exception apmec.common.exceptions.PolicyInitError(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'Failed to init policy %(policy)s because %(reason)s'
exception apmec.common.exceptions.PolicyNotAuthorized(**kwargs)

Bases: apmec.common.exceptions.NotAuthorized

message = u"Policy doesn't allow %(action)s to be performed."
exception apmec.common.exceptions.PreexistingDeviceFailure(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'Creation failed. %(dev_name)s already exists.'
exception apmec.common.exceptions.QuotaMissingTenant(**kwargs)

Bases: apmec.common.exceptions.BadRequest

message = u'Tenant-id was missing from Quota request'
exception apmec.common.exceptions.QuotaResourceUnknown(**kwargs)

Bases: apmec.common.exceptions.NotFound

message = u'Unknown quota resources %(unknown)s.'
exception apmec.common.exceptions.ResourceExhausted(**kwargs)

Bases: apmec.common.exceptions.ServiceUnavailable

exception apmec.common.exceptions.ServiceUnavailable(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'The service is unavailable'
exception apmec.common.exceptions.StateInvalid(**kwargs)

Bases: apmec.common.exceptions.BadRequest

message = u'Unsupported port state: %(port_state)s'
exception apmec.common.exceptions.SudoRequired(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'Sudo privilege is required to run this command.'
exception apmec.common.exceptions.TooManyExternalNetworks(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'More than one external network exists'
exception apmec.common.exceptions.TriggerNotFound(**kwargs)

Bases: apmec.common.exceptions.NotFound

message = u'Trigger %(trigger_name)s does not exist for MEA %(mea_id)s'
exception apmec.common.exceptions.VxlanNetworkUnsupported(**kwargs)

Bases: apmec.common.exceptions.ApmecException

message = u'VXLAN Network unsupported.'
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.