Heat exception subclasses
heat.common.exception.
ActionInProgress
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Stack %(stack_name)s already has an action (%(action)s) in progress.'¶heat.common.exception.
ActionNotComplete
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Stack %(stack_name)s has an action (%(action)s) in progress or failed state.'¶heat.common.exception.
AuthorizationFailure
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Authorization failed.'¶heat.common.exception.
ClientNotAvailable
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'The client (%(client_name)s) is not available.'¶heat.common.exception.
ConcurrentTransaction
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Concurrent transaction for %(action)s'¶heat.common.exception.
ConflictingMergeStrategyForParam
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u"Conflicting merge strategy '%(strategy)s' for parameter '%(param)s' in file '%(env_file)s'."¶heat.common.exception.
DownloadLimitExceeded
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Permissible download limit exceeded: %(message)s'¶heat.common.exception.
EgressRuleNotAllowed
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u"Egress rules are only allowed when Neutron is used and the 'VpcId' property is set."¶heat.common.exception.
EntityNotFound
(entity=None, name=None, **kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'The %(entity)s (%(name)s) could not be found.'¶heat.common.exception.
Error
(msg)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= '%(message)s'¶heat.common.exception.
EventSendFailed
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Failed to send message to stack (%(stack_name)s) on other engine (%(engine_id)s)'¶heat.common.exception.
Forbidden
(action='this action')[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'You are not authorized to use %(action)s.'¶heat.common.exception.
HTTPExceptionDisguise
(exception)[source]¶Bases: exceptions.Exception
Disguises HTTP exceptions.
They can be handled by the webob fault application in the wsgi pipeline.
safe
= True¶heat.common.exception.
HeatException
(**kwargs)[source]¶Bases: exceptions.Exception
Base Heat Exception.
To correctly use this class, inherit from it and define a ‘msg_fmt’ property. That msg_fmt will get formatted with the keyword arguments provided to the constructor.
error_code
= None¶message
= u'An unknown exception occurred.'¶safe
= True¶heat.common.exception.
HeatExceptionWithPath
(error=None, path=None, message=None)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'%(error)s%(path)s%(message)s'¶heat.common.exception.
ImmutableParameterModified
(*args, **kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'The following parameters are immutable and may not be updated: %(keys)s'¶heat.common.exception.
IncompatibleObjectVersion
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Version %(objver)s of %(objname)s is not supported'¶heat.common.exception.
InterfaceAttachFailed
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Failed to attach interface (%(port)s) to server (%(server)s)'¶heat.common.exception.
InterfaceDetachFailed
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Failed to detach interface (%(port)s) from server (%(server)s)'¶heat.common.exception.
Invalid
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Data supplied was not valid: %(reason)s'¶heat.common.exception.
InvalidBreakPointHook
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'%(message)s'¶heat.common.exception.
InvalidContentType
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Invalid content type %(content_type)s'¶heat.common.exception.
InvalidEncryptionKey
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Can not decrypt data with the auth_encryption_key in heat config.'¶heat.common.exception.
InvalidExternalResourceDependency
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Invalid dependency with external %(resource_type)s resource: %(external_id)s'¶heat.common.exception.
InvalidGlobalResource
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'There was an error loading the definition of the global resource type %(type_name)s.'¶heat.common.exception.
InvalidMergeStrategyForParam
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u"Invalid merge strategy '%(strategy)s' for parameter '%(param)s'."¶heat.common.exception.
InvalidRestrictedAction
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'%(message)s'¶heat.common.exception.
InvalidSchemaError
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'%(message)s'¶heat.common.exception.
InvalidServiceVersion
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Invalid service %(service)s version %(version)s'¶heat.common.exception.
InvalidTemplateAttribute
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'The Referenced Attribute (%(resource)s %(key)s) is incorrect.'¶heat.common.exception.
InvalidTemplateReference
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'The specified reference "%(resource)s" (in %(key)s) is incorrect.'¶heat.common.exception.
InvalidTemplateSection
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'The template section is invalid: %(section)s'¶heat.common.exception.
InvalidTemplateVersion
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'The template version is invalid: %(explanation)s'¶heat.common.exception.
InvalidTemplateVersions
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'A template version alias %(version)s was added for a template class that has no official YYYY-MM-DD version.'¶heat.common.exception.
InvalidTenant
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Searching Tenant %(target)s from Tenant %(actual)s forbidden.'¶heat.common.exception.
KeystoneServiceNameConflict
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Keystone has more than one service with same name %(service)s. Please use service id instead of name'¶heat.common.exception.
MissingCredentialError
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Missing required credential: %(required)s'¶heat.common.exception.
NotAuthenticated
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'You are not authenticated.'¶heat.common.exception.
NotAuthorized
(action='this action')[source]¶Bases: heat.common.exception.Forbidden
msg_fmt
= u'You are not authorized to complete this action.'¶heat.common.exception.
NotSupported
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'%(feature)s is not supported.'¶heat.common.exception.
ObjectActionError
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Object action %(action)s failed because: %(reason)s'¶heat.common.exception.
ObjectFieldInvalid
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Field %(field)s of %(objname)s is not an instance of Field'¶heat.common.exception.
OrphanedObjectError
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Cannot call %(method)s on orphaned %(objtype)s object'¶heat.common.exception.
PhysicalResourceExists
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'The physical resource for (%(name)s) exists.'¶heat.common.exception.
PhysicalResourceIDAmbiguity
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Multiple resources were found with the physical ID (%(phys_id)s).'¶heat.common.exception.
PhysicalResourceNameAmbiguity
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Multiple physical resources were found with name (%(name)s).'¶heat.common.exception.
PropertyUnspecifiedError
(*args, **kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'At least one of the following properties must be specified: %(props)s.'¶heat.common.exception.
ReadOnlyFieldError
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Cannot modify readonly field %(field)s'¶heat.common.exception.
RequestLimitExceeded
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Request limit exceeded: %(message)s'¶heat.common.exception.
ResourceActionNotSupported
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'%(action)s is not supported for resource.'¶heat.common.exception.
ResourceActionRestricted
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'%(action)s is restricted for resource.'¶heat.common.exception.
ResourceInError
(status_reason=u'Unknown', **kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Went to status %(resource_status)s due to "%(status_reason)s"'¶heat.common.exception.
ResourceNotAvailable
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'The Resource (%(resource_name)s) is not available.'¶heat.common.exception.
ResourceNotFound
(entity=None, name=None, **kwargs)[source]¶Bases: heat.common.exception.EntityNotFound
msg_fmt
= u'The Resource (%(resource_name)s) could not be found in Stack %(stack_name)s.'¶heat.common.exception.
ResourcePropertyConflict
(*args, **kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Cannot define the following properties at the same time: %(props)s.'¶heat.common.exception.
ResourcePropertyDependency
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'%(prop1)s cannot be specified without %(prop2)s.'¶heat.common.exception.
ResourcePropertyValueDependency
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'%(prop1)s property should only be specified for %(prop2)s with value %(value)s.'¶heat.common.exception.
ResourceUnknownStatus
(result=u'Resource failed', status_reason=u'Unknown', **kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'%(result)s - Unknown status %(resource_status)s due to "%(status_reason)s"'¶heat.common.exception.
SIGHUPInterrupt
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'System SIGHUP signal received.'¶heat.common.exception.
SnapshotNotFound
(entity=None, name=None, **kwargs)[source]¶Bases: heat.common.exception.EntityNotFound
msg_fmt
= u'The Snapshot (%(snapshot)s) for Stack (%(stack)s) could not be found.'¶heat.common.exception.
StackExists
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'The Stack (%(stack_name)s) already exists.'¶heat.common.exception.
StackResourceLimitExceeded
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Maximum resources per stack exceeded.'¶heat.common.exception.
StackValidationFailed
(error=None, path=None, message=None, resource=None)[source]¶heat.common.exception.
StopActionFailed
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Failed to stop stack (%(stack_name)s) on other engine (%(engine_id)s)'¶heat.common.exception.
TemplateOutputError
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Error in %(resource)s output %(attribute)s: %(message)s'¶heat.common.exception.
UnableToAutoAllocateNetwork
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Unable to automatically allocate a network: %(message)s'¶heat.common.exception.
UnknownUserParameter
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'The Parameter (%(key)s) was not defined in template.'¶heat.common.exception.
UnsupportedObjectError
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'Unsupported object type %(objtype)s'¶heat.common.exception.
UpdateInProgress
(resource_name='Unknown')[source]¶Bases: exceptions.Exception
heat.common.exception.
UpdateReplace
(resource_name='Unknown')[source]¶Bases: exceptions.Exception
Raised when resource update requires replacement.
heat.common.exception.
UserParameterMissing
(**kwargs)[source]¶Bases: heat.common.exception.HeatException
msg_fmt
= u'The Parameter (%(key)s) was not provided.'¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.