The heat.common.exception Module

Heat exception subclasses

exception heat.common.exception.AuthBadRequest(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'Connect error/bad request to Auth service at URL %(url)s.'
exception heat.common.exception.AuthUrlNotFound(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'Auth service at URL %(url)s not found.'
exception heat.common.exception.AuthorizationFailure(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'Authorization failed.'
exception heat.common.exception.AuthorizationRedirect(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'Redirecting to %(uri)s for authorization.'
exception heat.common.exception.BadAuthStrategy(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'Incorrect auth strategy, expected "%(expected)s" but received "%(received)s"'
exception heat.common.exception.ClientConfigurationError(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'There was an error configuring the client.'
exception heat.common.exception.FlavorMissing(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'The Flavor ID (%(flavor_id)s) could not be found.'
exception heat.common.exception.Forbidden(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'You are not authorized to complete this action.'
exception heat.common.exception.ImageNotFound(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'The Image (%(image_name)s) could not be found.'
exception heat.common.exception.Invalid(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'Data supplied was not valid: %(reason)s'
exception heat.common.exception.InvalidRedirect(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'Received invalid HTTP redirect.'
exception heat.common.exception.InvalidTemplateAttribute(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'The Referenced Attribute (%(resource)s %(key)s) is incorrect.'
exception heat.common.exception.InvalidTenant(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'Searching Tenant %(target)s from Tenant %(actual)s forbidden.'
exception heat.common.exception.KeystoneError(code, message)[source]

Bases: exceptions.Exception

exception heat.common.exception.LimitExceeded(*args, **kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'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 heat.common.exception.MaxRedirectsExceeded(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'Maximum redirects (%(redirects)s) was exceeded.'
exception heat.common.exception.MissingCredentialError(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'Missing required credential: %(required)s'
exception heat.common.exception.MultipleChoices(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'The request returned a 302 Multiple Choices. This generally means that you have not included a version indicator in a request URI.\n\nThe body of response returned:\n%(body)s'
exception heat.common.exception.NestedResourceFailure(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'%(message)s'
exception heat.common.exception.NoServiceEndpoint(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'Response from Keystone does not contain a Heat endpoint.'
exception heat.common.exception.NotAuthenticated(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'You are not authenticated.'
exception heat.common.exception.NotAuthorized(**kwargs)[source]

Bases: heat.common.exception.Forbidden

message = u'You are not authorized to complete this action.'
exception heat.common.exception.PhysicalResourceNotFound(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'The Resource (%(resource_id)s) could not be found.'
exception heat.common.exception.RedirectException(url)[source]

Bases: exceptions.Exception

exception heat.common.exception.RegionAmbiguity(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u"Multiple 'image' service matches for region %(region)s. This generally means that a region is required and you have not supplied one."
exception heat.common.exception.RequestUriTooLong(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'The URI was too long.'
exception heat.common.exception.ResourceNotAvailable(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'The Resource (%(resource_name)s) is not available.'
exception heat.common.exception.ResourceNotFound(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'The Resource (%(resource_name)s) could not be found in Stack %(stack_name)s.'
exception heat.common.exception.ResourceUpdateFailed(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'Resource (%(resource_name)s) update failed'
exception heat.common.exception.ServerError(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'The request returned 500 Internal Server Error\n\nThe response body:\n%(body)s'
exception heat.common.exception.ServiceUnavailable(*args, **kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'The request returned a 503 ServiceUnavilable. This generally occurs on service overload or other transient outage.'
exception heat.common.exception.StackExists(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'The Stack (%(stack_name)s) already exists.'
exception heat.common.exception.StackNotFound(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'The Stack (%(stack_name)s) could not be found.'
exception heat.common.exception.StackValidationFailed(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'%(message)s'
exception heat.common.exception.UserKeyPairMissing(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'The Key (%(key_name)s) could not be found.'
exception heat.common.exception.UserParameterMissing(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'The Parameter (%(key)s) was not provided.'
exception heat.common.exception.WatchRuleNotFound(**kwargs)[source]

Bases: heat.openstack.common.exception.OpenstackException

message = u'The Watch Rule (%(watch_name)s) could not be found.'
heat.common.exception.wrap_exception(notifier=None, publisher_id=None, event_type=None, level=None)[source]

This decorator wraps a method to catch any exceptions that may get thrown. It logs the exception as well as optionally sending it to the notification system.

This Page