tacker.common.exceptions module

tacker.common.exceptions module

Tacker base exception handling.

exception tacker.common.exceptions.AdminRequired(message=None, **kwargs)

Bases: tacker.common.exceptions.NotAuthorized

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

Bases: tacker.common.exceptions.BadRequest

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

Bases: tacker.common.exceptions.TackerException

code = 400
message = 'Bad %(resource)s request: %(msg)s'
exception tacker.common.exceptions.CSARFileSizeLimitExceeded(message=None, **kwargs)

Bases: tacker.common.exceptions.TackerException

message = 'The provided CSAR file is too large.'
exception tacker.common.exceptions.Conflict(message=None, **kwargs)

Bases: tacker.common.exceptions.TackerException

exception tacker.common.exceptions.ConvertedException(code, title='', explanation='')

Bases: webob.exc.WSGIHTTPException

exception tacker.common.exceptions.DuplicateEntity(message=None, **kwargs)

Bases: tacker.common.exceptions.Conflict

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

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.TackerException

message = 'Found duplicate extension: %(alias)s'
exception tacker.common.exceptions.FailedToGetVnfPackageDetails(message=None, **kwargs)

Bases: tacker.common.exceptions.Invalid

message = 'Failed to get vnf package details: %(error)s'
exception tacker.common.exceptions.FailedToGetVnfdData(message=None, **kwargs)

Bases: tacker.common.exceptions.Invalid

message = 'Failed to get csar zip file from glance store: %(error)s'
exception tacker.common.exceptions.FlavourNotFound(message=None, **kwargs)

Bases: tacker.common.exceptions.NotFound

message = "No flavour with id '%(flavour_id)s'."
exception tacker.common.exceptions.Forbidden(message=None, **kwargs)

Bases: tacker.common.exceptions.TackerException

code = 403
msg_fmt = 'Forbidden'
exception tacker.common.exceptions.InUse(message=None, **kwargs)

Bases: tacker.common.exceptions.TackerException

message = 'The resource is in use'
exception tacker.common.exceptions.InstantiationLevelNotFound(message=None, **kwargs)

Bases: tacker.common.exceptions.NotFound

message = "No instantiation level with id '%(inst_level_id)s'."
exception tacker.common.exceptions.Invalid(message=None, **kwargs)

Bases: tacker.common.exceptions.TackerException

message = 'Bad Request - Invalid Parameters'
exception tacker.common.exceptions.InvalidCSAR(message=None, **kwargs)

Bases: tacker.common.exceptions.Invalid

message = 'Invalid csar: %(error)s'
exception tacker.common.exceptions.InvalidContentType(message=None, **kwargs)

Bases: tacker.common.exceptions.TackerException

message = 'Invalid content type %(content_type)s'
exception tacker.common.exceptions.InvalidInput(message=None, **kwargs)

Bases: tacker.common.exceptions.BadRequest

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

Bases: tacker.common.exceptions.Invalid

message = 'Invalid zip file : %(path)s'
exception tacker.common.exceptions.LimitExceeded(*args, **kwargs)

Bases: tacker.common.exceptions.TackerException

message = 'The request returned a 413 Request Entity Too Large. This generally means that rate limiting or a quota threshold was breached.\n\nThe response body:\n%(body)s'
exception tacker.common.exceptions.LockCreationFailed(message=None, **kwargs)

Bases: tacker.common.exceptions.TackerException

message = 'Unable to create lock. Coordination backend not started.'
exception tacker.common.exceptions.MalformedRequestBody(message=None, **kwargs)

Bases: tacker.common.exceptions.BadRequest

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

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.TackerException

code = 401
message = 'Not authorized.'
exception tacker.common.exceptions.NotFound(message=None, **kwargs)

Bases: tacker.common.exceptions.TackerException

message = '%(resource)s %(name)s not Found'
exception tacker.common.exceptions.ObjectActionError(message=None, **kwargs)

Bases: tacker.common.exceptions.TackerException

message = 'Object action %(action)s failed because: %(reason)s'
exception tacker.common.exceptions.OrphanedObjectError(message=None, **kwargs)

Bases: tacker.common.exceptions.TackerException

msg_fmt = 'Cannot call %(method)s on orphaned %(objtype)s object'
exception tacker.common.exceptions.PolicyCheckError(message=None, **kwargs)

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.TackerException

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

Bases: tacker.common.exceptions.Forbidden

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

Bases: tacker.common.exceptions.TackerException

message = 'The service is unavailable'
exception tacker.common.exceptions.TackerException(message=None, **kwargs)

Bases: 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.

code = 500
format_message()
message = 'An unknown exception occurred.'
use_fatal_exceptions()

Is the instance using fatal exceptions.

Returns:Always returns False.
exception tacker.common.exceptions.TriggerNotFound(message=None, **kwargs)

Bases: tacker.common.exceptions.NotFound

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

Bases: tacker.common.exceptions.Invalid

message = 'Failed to upload vnf package %(uuid)s to glance store: %(error)s'
exception tacker.common.exceptions.UserDataUpdateCreateFailed(message=None, **kwargs)

Bases: tacker.common.exceptions.TackerException

msg_fmt = 'User data for VNF package %(id)s cannot be updated or created after %(retries)d retries.'
exception tacker.common.exceptions.VNFPackageURLInvalid(message=None, **kwargs)

Bases: tacker.common.exceptions.Invalid

message = 'Failed to open URL %(url)s'
exception tacker.common.exceptions.ValidationError(message=None, **kwargs)

Bases: tacker.common.exceptions.BadRequest

message = '%(detail)s'
exception tacker.common.exceptions.VimConnectionNotFound(message=None, **kwargs)

Bases: tacker.common.exceptions.NotFound

message = "No vim found with id '%(vim_id)s'."
exception tacker.common.exceptions.VnfDeploymentFlavourNotFound(message=None, **kwargs)

Bases: tacker.common.exceptions.NotFound

message = 'No vnf deployment flavour with id %(id)s.'
exception tacker.common.exceptions.VnfHealFailed(message=None, **kwargs)

Bases: tacker.common.exceptions.TackerException

message = 'Heal Vnf failed for vnf %(id)s, error: %(error)s'
exception tacker.common.exceptions.VnfInstanceConflictState(message=None, **kwargs)

Bases: tacker.common.exceptions.Conflict

message = 'Vnf instance %(uuid)s in %(attr)s %(state)s. Cannot %(action)s while the vnf instance is in this state.'
exception tacker.common.exceptions.VnfInstanceNotFound(message=None, **kwargs)

Bases: tacker.common.exceptions.NotFound

message = 'No vnf instance with id %(id)s.'
exception tacker.common.exceptions.VnfInstantiatedInfoNotFound(message=None, **kwargs)

Bases: tacker.common.exceptions.NotFound

message = 'No vnf instantiated info for vnf id %(vnf_instance_id)s.'
exception tacker.common.exceptions.VnfInstantiationFailed(message=None, **kwargs)

Bases: tacker.common.exceptions.TackerException

message = 'Vnf instantiation failed for vnf %(id)s, error: %(error)s'
exception tacker.common.exceptions.VnfInstantiationWaitFailed(message=None, **kwargs)

Bases: tacker.common.exceptions.TackerException

message = 'Vnf instantiation wait failed for vnf %(id)s, error: %(error)s'
exception tacker.common.exceptions.VnfPackageLocationInvalid(message=None, **kwargs)

Bases: tacker.common.exceptions.Invalid

message = 'Failed to find location: %(location)s'
exception tacker.common.exceptions.VnfPackageNotFound(message=None, **kwargs)

Bases: tacker.common.exceptions.NotFound

message = 'No vnf package with id %(id)s.'
exception tacker.common.exceptions.VnfPackageVnfdIdDuplicate(message=None, **kwargs)

Bases: tacker.common.exceptions.TackerException

message = 'Vnf package with vnfd id %(vnfd_id)s already exists.'
exception tacker.common.exceptions.VnfPackageVnfdNotFound(message=None, **kwargs)

Bases: tacker.common.exceptions.NotFound

message = 'No vnf package vnfd with vnfd_id %(id)s.'
exception tacker.common.exceptions.VnfPolicyActionInvalid(message=None, **kwargs)

Bases: tacker.common.exceptions.BadRequest

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

Bases: tacker.common.exceptions.NotFound

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

Bases: tacker.common.exceptions.BadRequest

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

Bases: tacker.common.exceptions.TackerException

message = "Vnf '%(id)s' failed during pre-instantiation due to error: %(error)s"
exception tacker.common.exceptions.VnfResourceNotFound(message=None, **kwargs)

Bases: tacker.common.exceptions.NotFound

message = 'No vnf resource with id %(id)s.'
exception tacker.common.exceptions.VnfSoftwareImageNotFound(message=None, **kwargs)

Bases: tacker.common.exceptions.NotFound

message = 'No vnf software image with id %(id)s.'
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.