This Page

The quantum.common.exceptions Module

Quantum base exception handling.

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

Bases: quantum.common.exceptions.NotAuthorized

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

Bases: quantum.common.exceptions.Conflict

message = u'Unable to plug the attachment %(att_id)s into port %(port_id)s for network %(net_id)s. The attachment is already plugged into port %(att_port_id)s'
exception quantum.common.exceptions.BadRequest(**kwargs)

Bases: quantum.common.exceptions.QuantumException

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

Bases: quantum.common.exceptions.QuantumException

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

Bases: quantum.common.exceptions.NotFound

message = u'Class %(class_name)s could not be found'
exception quantum.common.exceptions.Conflict(**kwargs)

Bases: quantum.common.exceptions.QuantumException

exception quantum.common.exceptions.DNSNameServersExhausted(**kwargs)

Bases: quantum.common.exceptions.BadRequest

message = u'Unable to complete operation for %(subnet_id)s. The number of DNS nameservers exceeds the limit %(quota)s.'
exception quantum.common.exceptions.FlatNetworkInUse(**kwargs)

Bases: quantum.common.exceptions.InUse

message = u'Unable to create the flat network. Physical network %(physical_network)s is in use.'
exception quantum.common.exceptions.GatewayConflictWithAllocationPools(**kwargs)

Bases: quantum.common.exceptions.InUse

message = u'Gateway ip %(ip_address)s conflicts with allocation pool %(pool)s'
exception quantum.common.exceptions.HostRoutesExhausted(**kwargs)

Bases: quantum.common.exceptions.BadRequest

message = u'Unable to complete operation for %(subnet_id)s. The number of host routes exceeds the limit %(quota)s.'
exception quantum.common.exceptions.InUse(**kwargs)

Bases: quantum.common.exceptions.QuantumException

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

Bases: quantum.openstack.common.exception.Error

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

Bases: quantum.common.exceptions.BadRequest

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

Bases: quantum.common.exceptions.QuantumException

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

Bases: quantum.common.exceptions.BadRequest

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

Bases: quantum.common.exceptions.BadRequest

message = u'Invalid input for operation: %(error_message)s.'
exception quantum.common.exceptions.InvalidQuotaValue(**kwargs)

Bases: quantum.common.exceptions.Conflict

message = u'Change would make usage less than 0 for the following resources: %(unders)s'
exception quantum.common.exceptions.InvalidSharedSetting(**kwargs)

Bases: quantum.common.exceptions.Conflict

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

Bases: quantum.common.exceptions.Conflict

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

Bases: quantum.common.exceptions.InUse

message = u'Unable to complete operation for network %(net_id)s. The IP address %(ip_address)s is in use.'
exception quantum.common.exceptions.MacAddressGenerationFailure(**kwargs)

Bases: quantum.common.exceptions.ServiceUnavailable

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

Bases: quantum.common.exceptions.InUse

message = u'Unable to complete operation for network %(net_id)s. The mac address %(mac)s is in use.'
exception quantum.common.exceptions.MalformedRequestBody(**kwargs)

Bases: quantum.common.exceptions.BadRequest

message = u'Malformed request body: %(reason)s'
exception quantum.common.exceptions.NetworkInUse(**kwargs)

Bases: quantum.common.exceptions.InUse

message = u'Unable to complete operation on network %(net_id)s. There are one or more ports still in use on the network.'
exception quantum.common.exceptions.NetworkNotFound(**kwargs)

Bases: quantum.common.exceptions.NotFound

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

Bases: quantum.common.exceptions.ResourceExhausted

message = u'Unable to create the network. No tenant network is available for allocation.'
exception quantum.common.exceptions.NotAuthorized(**kwargs)

Bases: quantum.common.exceptions.QuantumException

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

Bases: quantum.common.exceptions.QuantumException

exception quantum.common.exceptions.NotImplementedError(message=None)

Bases: quantum.openstack.common.exception.Error

exception quantum.common.exceptions.OutOfBoundsAllocationPool(**kwargs)

Bases: quantum.common.exceptions.BadRequest

message = u'The allocation pool %(pool)s spans beyond the subnet cidr %(subnet_cidr)s.'
exception quantum.common.exceptions.OverQuota(**kwargs)

Bases: quantum.common.exceptions.Conflict

message = u'Quota exceeded for resources: %(overs)s'
exception quantum.common.exceptions.OverlappingAllocationPools(**kwargs)

Bases: quantum.common.exceptions.Conflict

message = u'Found overlapping allocation pools:%(pool_1)s %(pool_2)s for subnet %(subnet_cidr)s.'
exception quantum.common.exceptions.PolicyNotAuthorized(**kwargs)

Bases: quantum.common.exceptions.NotAuthorized

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

Bases: quantum.common.exceptions.NotFound

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

Bases: quantum.common.exceptions.InUse

message = u'Unable to complete operation on port %(port_id)s for network %(net_id)s. Port already has an attacheddevice %(device_id)s.'
exception quantum.common.exceptions.PortNotFound(**kwargs)

Bases: quantum.common.exceptions.NotFound

message = u'Port %(port_id)s could not be found on network %(net_id)s'
exception quantum.common.exceptions.PreexistingDeviceFailure(**kwargs)

Bases: quantum.common.exceptions.QuantumException

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

Bases: quantum.openstack.common.exception.OpenstackException

Base Quantum 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.'
exception quantum.common.exceptions.QuotaMissingTenant(**kwargs)

Bases: quantum.common.exceptions.BadRequest

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

Bases: quantum.common.exceptions.NotFound

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

Bases: quantum.common.exceptions.ServiceUnavailable

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

Bases: quantum.common.exceptions.QuantumException

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

Bases: quantum.common.exceptions.BadRequest

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

Bases: quantum.common.exceptions.InUse

message = u'Unable to complete operation on subnet %(subnet_id)s. One or more ports have an IP allocation from this subnet.'
exception quantum.common.exceptions.SubnetMismatchForPort(**kwargs)

Bases: quantum.common.exceptions.Conflict

message = u'Subnet on port %(port_id)s does not match the requested subnet %(subnet_id)s'
exception quantum.common.exceptions.SubnetNotFound(**kwargs)

Bases: quantum.common.exceptions.NotFound

message = u'Subnet %(subnet_id)s could not be found'
exception quantum.common.exceptions.SudoRequired(**kwargs)

Bases: quantum.common.exceptions.QuantumException

message = u'Sudo priviledge is required to run this command.'
exception quantum.common.exceptions.TenantNetworksDisabled(**kwargs)

Bases: quantum.common.exceptions.ServiceUnavailable

message = u'Tenant network creation is not enabled.'
exception quantum.common.exceptions.TooManyExternalNetworks(**kwargs)

Bases: quantum.common.exceptions.QuantumException

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

Bases: quantum.common.exceptions.InUse

message = u'Unable to create the network. The tunnel ID %(tunnel_id)s is in use.'
exception quantum.common.exceptions.VlanIdInUse(**kwargs)

Bases: quantum.common.exceptions.InUse

message = u'Unable to create the network. The VLAN %(vlan_id)s on physical network %(physical_network)s is in use.'