glance_store.exceptions
Module¶Glance Store exception subclasses
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.'¶glance_store.exceptions.
AuthUrlNotFound
(message=None, **kwargs)¶Bases: glance_store.exceptions.GlanceStoreException
message
= u'Auth service at URL %(url)s not found.'¶glance_store.exceptions.
AuthorizationFailure
(message=None, **kwargs)¶Bases: glance_store.exceptions.GlanceStoreException
message
= u'Authorization failed.'¶glance_store.exceptions.
AuthorizationRedirect
(message=None, **kwargs)¶Bases: glance_store.exceptions.GlanceStoreException
message
= u'Redirecting to %(uri)s for authorization.'¶glance_store.exceptions.
BackendException
¶Bases: exceptions.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"'¶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'¶glance_store.exceptions.
BadStoreUri
(message=None, **kwargs)¶Bases: glance_store.exceptions.GlanceStoreException
message
= u'The Store URI was malformed: %(uri)s'¶glance_store.exceptions.
DriverLoadFailure
(message=None, **kwargs)¶Bases: glance_store.exceptions.GlanceStoreException
message
= u'Driver %(driver_name)s could not be loaded.'¶glance_store.exceptions.
Duplicate
(message=None, **kwargs)¶Bases: glance_store.exceptions.GlanceStoreException
message
= u'Image %(image)s already exists'¶glance_store.exceptions.
Forbidden
(message=None, **kwargs)¶Bases: glance_store.exceptions.GlanceStoreException
message
= u'You are not authorized to complete this action.'¶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'¶glance_store.exceptions.
HasSnapshot
(message=None, **kwargs)¶Bases: glance_store.exceptions.GlanceStoreException
message
= u'The image cannot be deleted because it has snapshot(s).'¶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.'¶glance_store.exceptions.
Invalid
(message=None, **kwargs)¶Bases: glance_store.exceptions.GlanceStoreException
message
= u'Data supplied was not valid.'¶glance_store.exceptions.
MaxRedirectsExceeded
(message=None, **kwargs)¶Bases: glance_store.exceptions.GlanceStoreException
message
= u'Maximum redirects (%(redirects)s) was exceeded.'¶glance_store.exceptions.
MissingCredentialError
(message=None, **kwargs)¶Bases: glance_store.exceptions.GlanceStoreException
message
= u'Missing required credential: %(required)s'¶glance_store.exceptions.
NoServiceEndpoint
(message=None, **kwargs)¶Bases: glance_store.exceptions.GlanceStoreException
message
= u'Response from Keystone does not contain a Glance endpoint.'¶glance_store.exceptions.
NotAuthenticated
(message=None, **kwargs)¶Bases: glance_store.exceptions.GlanceStoreException
message
= u'You are not authenticated.'¶glance_store.exceptions.
NotFound
(message=None, **kwargs)¶Bases: glance_store.exceptions.GlanceStoreException
message
= u'Image %(image)s not found'¶glance_store.exceptions.
RedirectException
(url)¶Bases: exceptions.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."¶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.'¶glance_store.exceptions.
StorageWriteDenied
(message=None, **kwargs)¶Bases: glance_store.exceptions.GlanceStoreException
message
= u'Permission to write image storage media denied.'¶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.'¶glance_store.exceptions.
StoreDeleteNotSupported
(message=None, **kwargs)¶Bases: glance_store.exceptions.GlanceStoreException
message
= u'Deleting images from this store is not supported.'¶glance_store.exceptions.
StoreGetNotSupported
(message=None, **kwargs)¶Bases: glance_store.exceptions.GlanceStoreException
message
= u'Getting images from this store is not supported.'¶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'¶glance_store.exceptions.
UnknownScheme
(message=None, **kwargs)¶Bases: glance_store.exceptions.GlanceStoreException
message
= u"Unknown scheme '%(scheme)s' found in URI"¶glance_store.exceptions.
UnsupportedBackend
¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.