glance_store.exceptions module

glance_store.exceptions module

Glance Store exception subclasses

exception glance_store.exceptions.AuthBadRequest(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'Connect error/bad request to Auth service at URL %(url)s.'
exception glance_store.exceptions.AuthUrlNotFound(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'Auth service at URL %(url)s not found.'
exception glance_store.exceptions.AuthorizationFailure(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'Authorization failed.'
exception glance_store.exceptions.AuthorizationRedirect(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'Redirecting to %(uri)s for authorization.'
exception glance_store.exceptions.BackendException

Bases: exceptions.Exception

exception glance_store.exceptions.BadAuthStrategy(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'Incorrect auth strategy, expected "%(expected)s" but received "%(received)s"'
exception glance_store.exceptions.BadStoreConfiguration(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'Store %(store_name)s could not be configured correctly. Reason: %(reason)s'
exception glance_store.exceptions.BadStoreUri(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'The Store URI was malformed: %(uri)s'
exception glance_store.exceptions.DriverLoadFailure(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'Driver %(driver_name)s could not be loaded.'
exception glance_store.exceptions.Duplicate(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'Image %(image)s already exists'
exception glance_store.exceptions.Forbidden(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'You are not authorized to complete this action.'
exception glance_store.exceptions.GlanceStoreException(message=None, **kwargs)

Bases: exceptions.Exception

Base Glance Store 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'
exception glance_store.exceptions.HasSnapshot(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'The image cannot be deleted because it has snapshot(s).'
exception glance_store.exceptions.InUseByStore(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'The image cannot be deleted because it is in use through the backend store outside of Glance.'
exception glance_store.exceptions.Invalid(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'Data supplied was not valid.'
exception glance_store.exceptions.MaxRedirectsExceeded(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'Maximum redirects (%(redirects)s) was exceeded.'
exception glance_store.exceptions.MissingCredentialError(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'Missing required credential: %(required)s'
exception glance_store.exceptions.NoServiceEndpoint(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'Response from Keystone does not contain a Glance endpoint.'
exception glance_store.exceptions.NotAuthenticated(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'You are not authenticated.'
exception glance_store.exceptions.NotFound(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'Image %(image)s not found'
exception glance_store.exceptions.RedirectException(url)

Bases: exceptions.Exception

exception glance_store.exceptions.RegionAmbiguity(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

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 glance_store.exceptions.RemoteServiceUnavailable(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'Remote server where the image is present is unavailable.'
exception glance_store.exceptions.StorageFull(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'There is not enough disk space on the image storage media.'
exception glance_store.exceptions.StorageWriteDenied(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'Permission to write image storage media denied.'
exception glance_store.exceptions.StoreAddDisabled(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'Configuration for store failed. Adding images to this store is disabled.'
exception glance_store.exceptions.StoreDeleteNotSupported(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'Deleting images from this store is not supported.'
exception glance_store.exceptions.StoreGetNotSupported(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'Getting images from this store is not supported.'
exception glance_store.exceptions.StoreRandomGetNotSupported(message=None, **kwargs)

Bases: glance_store.exceptions.StoreGetNotSupported

message = u'Getting images randomly from this store is not supported. Offset: %(offset)s, length: %(chunk_size)s'
exception glance_store.exceptions.UnknownHashingAlgo(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u'Unknown hashing algorithm identifier: %(algo)s'
exception glance_store.exceptions.UnknownScheme(message=None, **kwargs)

Bases: glance_store.exceptions.GlanceStoreException

message = u"Unknown scheme '%(scheme)s' found in URI"
exception glance_store.exceptions.UnsupportedBackend

Bases: glance_store.exceptions.BackendException

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.