The tacker.common.exceptions Module

Tacker base exception handling.

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

Bases: tacker.common.exceptions.NotAuthorized

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

Bases: tacker.common.exceptions.BadRequest

message = u'Invalid alarm url for VNF %(vnf_id)s'
exception tacker.common.exceptions.BadRequest(**kwargs)

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.TackerException

exception tacker.common.exceptions.DeviceIDNotOwnedByTenant(**kwargs)

Bases: tacker.common.exceptions.Conflict

message = u'The following device_id %(device_id)s is not owned by your tenant or matches another tenants router.'
exception tacker.common.exceptions.DuplicateEntity(**kwargs)

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.NotFound

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

Bases: tacker.common.exceptions.BadRequest

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

Bases: tacker.common.exceptions.InUse

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

Bases: tacker.common.exceptions.InUse

message = u'Current gateway ip %(ip_address)s already in use by port %(port_id)s. Unable to update.'
exception tacker.common.exceptions.InUse(**kwargs)

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.BadRequest

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

Bases: tacker.common.exceptions.BadRequest

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

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.BadRequest

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

Bases: tacker.common.exceptions.BadRequest

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

Bases: tacker.common.exceptions.Conflict

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

Bases: tacker.common.exceptions.Conflict

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

Bases: tacker.common.exceptions.Conflict

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

Bases: tacker.common.exceptions.ServiceUnavailable

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

Bases: tacker.common.exceptions.BadRequest

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

Bases: tacker.common.exceptions.TackerException

message = u'VNF configuration failed'
exception tacker.common.exceptions.NetworkNotFound(**kwargs)

Bases: tacker.common.exceptions.NotFound

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

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.BadRequest

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

Bases: tacker.common.exceptions.Conflict

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

Bases: tacker.common.exceptions.Conflict

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

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.NotFound

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

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.NotAuthorized

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

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.BadRequest

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

Bases: tacker.common.exceptions.NotFound

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

Bases: tacker.common.exceptions.ServiceUnavailable

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

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.BadRequest

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

Bases: tacker.common.exceptions.TackerException

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

Bases: exceptions.Exception

Base Tacker 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()
exception tacker.common.exceptions.TooManyExternalNetworks(**kwargs)

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.NotFound

message = u'Trigger %(trigger_name)s does not exist for VNF %(vnf_id)s'
exception tacker.common.exceptions.VnfPolicyActionInvalid(**kwargs)

Bases: tacker.common.exceptions.BadRequest

message = u'Invalid action %(action)s for policy %(policy)s, should be one of %(valid_acions)s'
exception tacker.common.exceptions.VnfPolicyNotFound(**kwargs)

Bases: tacker.common.exceptions.NotFound

message = u'Policy %(policy)s does not exist for VNF %(vnf_id)s'
exception tacker.common.exceptions.VnfPolicyTypeInvalid(**kwargs)

Bases: tacker.common.exceptions.BadRequest

message = u'Invalid type %(type)s for policy %(policy)s, should be one of %(valid_types)s'
exception tacker.common.exceptions.VxlanNetworkUnsupported(**kwargs)

Bases: tacker.common.exceptions.TackerException

message = u'VXLAN Network unsupported.'