tacker.common.exceptions module¶
Tacker base exception handling.
- exception tacker.common.exceptions.AdminRequired(message=None, **kwargs)¶
Bases:
NotAuthorized
- message = 'User does not have admin privileges: %(reason)s'¶
- exception tacker.common.exceptions.BadRequest(message=None, **kwargs)¶
Bases:
TackerException
- code = 400¶
- message = 'Bad %(resource)s request: %(msg)s'¶
- exception tacker.common.exceptions.CSARFileSizeLimitExceeded(message=None, **kwargs)¶
Bases:
TackerException
- message = 'The provided CSAR file is too large.'¶
- exception tacker.common.exceptions.Conflict(message=None, **kwargs)¶
Bases:
TackerException
- exception tacker.common.exceptions.ConvertedException(code, title='', explanation='')¶
Bases:
WSGIHTTPException
- exception tacker.common.exceptions.CreateApiFalse(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Failed to create resource.'¶
- exception tacker.common.exceptions.DBAccessError(message=None, **kwargs)¶
Bases:
TackerException
- message = 'DB Access Error'¶
- exception tacker.common.exceptions.DuplicateEntity(*args, **kwargs)¶
Bases:
Conflict
- message = '%(_type)s already exist with given %(entry)s'¶
- exception tacker.common.exceptions.DuplicatedExtension(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Found duplicate extension: %(alias)s'¶
- exception tacker.common.exceptions.FailedToGetCryptKey(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Failed to get crypt key.'¶
- exception tacker.common.exceptions.FailedToGetVnfArtifact(message=None, **kwargs)¶
Bases:
Invalid
- message = 'Failed to get artifact file from glance store: %(error)s'¶
- exception tacker.common.exceptions.FailedToGetVnfPackageDetails(message=None, **kwargs)¶
Bases:
Invalid
- message = 'Failed to get vnf package details: %(error)s'¶
- exception tacker.common.exceptions.FailedToGetVnfdData(message=None, **kwargs)¶
Bases:
Invalid
- message = 'Failed to get csar zip file from glance store: %(error)s'¶
- exception tacker.common.exceptions.FlavourNotFound(message=None, **kwargs)¶
Bases:
NotFound
- message = "No flavour with id '%(flavour_id)s'."¶
- exception tacker.common.exceptions.Forbidden(message=None, **kwargs)¶
Bases:
TackerException
- code = 403¶
- msg_fmt = 'Forbidden'¶
- exception tacker.common.exceptions.InUse(message=None, **kwargs)¶
Bases:
TackerException
- message = 'The resource is in use'¶
- exception tacker.common.exceptions.InitApiFalse(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Failed to init resource.'¶
- exception tacker.common.exceptions.InstantiationLevelNotFound(message=None, **kwargs)¶
Bases:
NotFound
- message = "No instantiation level with id '%(inst_level_id)s'."¶
- exception tacker.common.exceptions.Invalid(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Bad Request - Invalid Parameters'¶
- exception tacker.common.exceptions.InvalidCSAR(message=None, **kwargs)¶
Bases:
Invalid
- message = 'Invalid csar: %(error)s'¶
- exception tacker.common.exceptions.InvalidContentType(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Invalid content type %(content_type)s'¶
- exception tacker.common.exceptions.InvalidInput(message=None, **kwargs)¶
Bases:
BadRequest
- message = 'Invalid input for operation: %(error_message)s.'¶
- exception tacker.common.exceptions.InvalidIpAddr(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Invalid ip address value in resource %(id)s.'¶
- exception tacker.common.exceptions.InvalidPoliciesDefinition(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Cannot retrieve the %(param)s parameter from policies definition in VNFD.'¶
- exception tacker.common.exceptions.InvalidZipFile(message=None, **kwargs)¶
Bases:
Invalid
- message = 'Invalid zip file : %(path)s'¶
- exception tacker.common.exceptions.LimitExceeded(*args, **kwargs)¶
Bases:
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:
TackerException
- message = 'Unable to create lock. Coordination backend not started.'¶
- exception tacker.common.exceptions.MalformedRequestBody(message=None, **kwargs)¶
Bases:
BadRequest
- message = 'Malformed request body: %(reason)s'¶
- exception tacker.common.exceptions.MgmtDriverHashMatchFailure(message=None, **kwargs)¶
Bases:
TackerException
- message = 'The hash verification of VNF Package MgmtDriver and Tacker MgmtDriver does not match.'¶
- exception tacker.common.exceptions.MgmtDriverInconsistent(message=None, **kwargs)¶
Bases:
TackerException
- message = 'The %(MgmtDriver)s specified in the VNFD is inconsistent with the MgmtDriver in the configuration file.'¶
- exception tacker.common.exceptions.MgmtDriverNotFound(message=None, **kwargs)¶
Bases:
TackerException
- message = 'The %(param)s in the additionalParams does not exist.'¶
- exception tacker.common.exceptions.MgmtDriverOtherError(message=None, **kwargs)¶
Bases:
TackerException
- message = 'An error occurred in MgmtDriver: %(error_message)s.'¶
- exception tacker.common.exceptions.MgmtDriverParamInvalid(message=None, **kwargs)¶
Bases:
TackerException
- message = 'The %(param)s in the additionalParams is invalid.'¶
- exception tacker.common.exceptions.MgmtDriverRemoteCommandError(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Failed to execute remote command.'¶
- exception tacker.common.exceptions.MgmtDriverRemoteCommandTimeOut(message=None, **kwargs)¶
Bases:
TackerException
- message = 'The execution of the remote command timed out.'¶
- exception tacker.common.exceptions.NamespaceIsNotUnique(message=None, **kwargs)¶
Bases:
TackerException
- message = 'There are multiple namespaces in the manifest file for Kubernetes. Only one namespace can be used in one VNF.'¶
- exception tacker.common.exceptions.NotAuthorized(message=None, **kwargs)¶
Bases:
TackerException
- code = 401¶
- message = 'Not authorized.'¶
- exception tacker.common.exceptions.NotFound(message=None, **kwargs)¶
Bases:
TackerException
- message = '%(resource)s %(name)s not Found'¶
- exception tacker.common.exceptions.NotificationProcessingError(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Notification Processing Failed: %(error)s'¶
- exception tacker.common.exceptions.ObjectActionError(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Object action %(action)s failed because: %(reason)s'¶
- exception tacker.common.exceptions.OrphanedObjectError(message=None, **kwargs)¶
Bases:
TackerException
- msg_fmt = 'Cannot call %(method)s on orphaned %(objtype)s object'¶
- exception tacker.common.exceptions.PolicyCheckError(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Failed to check policy %(policy)s because %(reason)s'¶
- exception tacker.common.exceptions.PolicyInitError(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Failed to init policy %(policy)s because %(reason)s'¶
- exception tacker.common.exceptions.PolicyNotAuthorized(message=None, **kwargs)¶
Bases:
Forbidden
- message = "Policy doesn't allow %(action)s to be performed."¶
- exception tacker.common.exceptions.PolicyTargetCheckError(message=None, **kwargs)¶
Bases:
Forbidden
- message = 'Failed to check policy about target because %(reason)s'¶
- exception tacker.common.exceptions.ReadEndpointsFalse(message=None, **kwargs)¶
Bases:
TackerException
- message = 'The method to read a resource failed.'¶
- exception tacker.common.exceptions.SeeOther(message=None, **kwargs)¶
Bases:
TackerException
- code = 303¶
Bases:
TackerException
- 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.TenantMatchFailure(message=None, **kwargs)¶
Bases:
TackerException
- message = 'The target %(resource)s %(id)s cannot be %(action)s from a VIM of a different tenant.'¶
- exception tacker.common.exceptions.UploadFailedToGlanceStore(message=None, **kwargs)¶
Bases:
Invalid
- message = 'Failed to upload vnf package %(uuid)s to glance store: %(error)s'¶
- exception tacker.common.exceptions.UserDataUpdateCreateFailed(message=None, **kwargs)¶
Bases:
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:
Invalid
- message = 'Failed to open URL %(url)s'¶
- exception tacker.common.exceptions.ValidationError(message=None, **kwargs)¶
Bases:
BadRequest
- message = '%(detail)s'¶
- exception tacker.common.exceptions.VimConnectionNotFound(message=None, **kwargs)¶
Bases:
NotFound
- message = "No vim found with id '%(vim_id)s'."¶
- exception tacker.common.exceptions.VnfArtifactNotFound(message=None, **kwargs)¶
Bases:
NotFound
- message = 'No vnf artifact with id %(id)s.'¶
- exception tacker.common.exceptions.VnfChangeExtConnFailed(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Change external connectivity failed for vnf %(id)s, error: %(error)s'¶
- exception tacker.common.exceptions.VnfChangeExtConnWaitFailed(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Change external connectivity wait failed for vnf %(id)s, error: %(error)s'¶
- exception tacker.common.exceptions.VnfConflictState(message=None, **kwargs)¶
Bases:
Conflict
- message = 'Vnf %(uuid)s in %(attr)s %(state)s. Cannot %(action)s while the vnf is in this state.'¶
- exception tacker.common.exceptions.VnfConflictStateWithErrorPoint(message=None, **kwargs)¶
Bases:
Conflict
- message = 'Vnf %(uuid)s in status %(state)s. Error point %(error_point)s. Cannot %(action)s while the vnf is in this state with this error point.'¶
- exception tacker.common.exceptions.VnfDeploymentFlavourNotFound(message=None, **kwargs)¶
Bases:
NotFound
- message = 'No vnf deployment flavour with id %(id)s.'¶
- exception tacker.common.exceptions.VnfHealFailed(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Heal Vnf failed for vnf %(id)s, error: %(error)s'¶
- exception tacker.common.exceptions.VnfInstanceConflictState(message=None, **kwargs)¶
Bases:
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:
NotFound
- message = 'No vnf instance with id %(id)s.'¶
- exception tacker.common.exceptions.VnfInstantiatedInfoNotFound(message=None, **kwargs)¶
Bases:
NotFound
- message = 'No vnf instantiated info for vnf id %(vnf_instance_id)s.'¶
- exception tacker.common.exceptions.VnfInstantiationFailed(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Vnf instantiation failed for vnf %(id)s, error: %(error)s'¶
- exception tacker.common.exceptions.VnfInstantiationWaitFailed(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Vnf instantiation wait failed for vnf %(id)s, error: %(error)s'¶
- exception tacker.common.exceptions.VnfPackageLocationInvalid(message=None, **kwargs)¶
Bases:
Invalid
- message = 'Failed to find location: %(location)s'¶
- exception tacker.common.exceptions.VnfPackageNotFound(message=None, **kwargs)¶
Bases:
NotFound
- message = 'No vnf package with id %(id)s.'¶
- exception tacker.common.exceptions.VnfPackageVnfdIdDuplicate(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Vnf package with vnfd id %(vnfd_id)s already exists.'¶
- exception tacker.common.exceptions.VnfPackageVnfdNotFound(message=None, **kwargs)¶
Bases:
NotFound
- message = 'No vnf package vnfd with vnfd_id %(id)s.'¶
- exception tacker.common.exceptions.VnfPreInstantiationFailed(message=None, **kwargs)¶
Bases:
TackerException
- message = "Vnf '%(id)s' failed during pre-instantiation due to error: %(error)s"¶
- exception tacker.common.exceptions.VnfResourceNotFound(message=None, **kwargs)¶
Bases:
NotFound
- message = 'No vnf resource with id %(id)s.'¶
- exception tacker.common.exceptions.VnfScaleFailed(message=None, **kwargs)¶
Bases:
TackerException
- message = 'Scale Vnf failed for vnf %(id)s, error: %(error)s'¶