glance_store.exceptions module¶
Glance Store exception subclasses
- 
exception 
glance_store.exceptions.AuthBadRequest(message=None, **kwargs)¶ Bases:
glance_store.exceptions.GlanceStoreException- 
message= '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= 'Auth service at URL %(url)s not found.'¶ 
- 
 
- 
exception 
glance_store.exceptions.AuthorizationFailure(message=None, **kwargs)¶ Bases:
glance_store.exceptions.GlanceStoreException- 
message= 'Authorization failed.'¶ 
- 
 
- 
exception 
glance_store.exceptions.AuthorizationRedirect(message=None, **kwargs)¶ Bases:
glance_store.exceptions.GlanceStoreException- 
message= 'Redirecting to %(uri)s for authorization.'¶ 
- 
 
- 
exception 
glance_store.exceptions.BackendException¶ Bases:
Exception
- 
exception 
glance_store.exceptions.BadAuthStrategy(message=None, **kwargs)¶ Bases:
glance_store.exceptions.GlanceStoreException- 
message= 'Incorrect auth strategy, expected "%(expected)s" but received "%(received)s"'¶ 
- 
 
- 
exception 
glance_store.exceptions.BadStoreConfiguration(message=None, **kwargs)¶ Bases:
glance_store.exceptions.GlanceStoreException- 
message= '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= 'The Store URI was malformed: %(uri)s'¶ 
- 
 
- 
exception 
glance_store.exceptions.DriverLoadFailure(message=None, **kwargs)¶ Bases:
glance_store.exceptions.GlanceStoreException- 
message= 'Driver %(driver_name)s could not be loaded.'¶ 
- 
 
- 
exception 
glance_store.exceptions.Duplicate(message=None, **kwargs)¶ Bases:
glance_store.exceptions.GlanceStoreException- 
message= 'Image %(image)s already exists'¶ 
- 
 
- 
exception 
glance_store.exceptions.Forbidden(message=None, **kwargs)¶ Bases:
glance_store.exceptions.GlanceStoreException- 
message= 'You are not authorized to complete this action.'¶ 
- 
 
- 
exception 
glance_store.exceptions.GlanceStoreException(message=None, **kwargs)¶ Bases:
ExceptionBase 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= 'An unknown exception occurred'¶ 
- 
 
- 
exception 
glance_store.exceptions.HasSnapshot(message=None, **kwargs)¶ Bases:
glance_store.exceptions.GlanceStoreException- 
message= 'The image cannot be deleted because it has snapshot(s).'¶ 
- 
 
- 
exception 
glance_store.exceptions.HostNotInitialized(message=None, **kwargs)¶ Bases:
glance_store.exceptions.GlanceStoreException- 
message= "The glance cinder store host %(host)s which will used to perform nfs mount/umount operations isn't initialized."¶ 
- 
 
- 
exception 
glance_store.exceptions.InUseByStore(message=None, **kwargs)¶ Bases:
glance_store.exceptions.GlanceStoreException- 
message= '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= 'Data supplied was not valid.'¶ 
- 
 
- 
exception 
glance_store.exceptions.MaxRedirectsExceeded(message=None, **kwargs)¶ Bases:
glance_store.exceptions.GlanceStoreException- 
message= 'Maximum redirects (%(redirects)s) was exceeded.'¶ 
- 
 
- 
exception 
glance_store.exceptions.MissingCredentialError(message=None, **kwargs)¶ Bases:
glance_store.exceptions.GlanceStoreException- 
message= 'Missing required credential: %(required)s'¶ 
- 
 
- 
exception 
glance_store.exceptions.NoServiceEndpoint(message=None, **kwargs)¶ Bases:
glance_store.exceptions.GlanceStoreException- 
message= 'Response from Keystone does not contain a Glance endpoint.'¶ 
- 
 
- 
exception 
glance_store.exceptions.NotAuthenticated(message=None, **kwargs)¶ Bases:
glance_store.exceptions.GlanceStoreException- 
message= 'You are not authenticated.'¶ 
- 
 
- 
exception 
glance_store.exceptions.NotFound(message=None, **kwargs)¶ Bases:
glance_store.exceptions.GlanceStoreException- 
message= 'Image %(image)s not found'¶ 
- 
 
- 
exception 
glance_store.exceptions.RedirectException(url)¶ Bases:
Exception
- 
exception 
glance_store.exceptions.RegionAmbiguity(message=None, **kwargs)¶ Bases:
glance_store.exceptions.GlanceStoreException- 
message= "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.StorageFull(message=None, **kwargs)¶ Bases:
glance_store.exceptions.GlanceStoreException- 
message= '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= 'Permission to write image storage media denied.'¶ 
- 
 
- 
exception 
glance_store.exceptions.StoreAddDisabled(message=None, **kwargs)¶ Bases:
glance_store.exceptions.GlanceStoreException- 
message= '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= 'Deleting images from this store is not supported.'¶ 
- 
 
- 
exception 
glance_store.exceptions.StoreGetNotSupported(message=None, **kwargs)¶ Bases:
glance_store.exceptions.GlanceStoreException- 
message= 'Getting images from this store is not supported.'¶ 
- 
 
- 
exception 
glance_store.exceptions.StoreRandomGetNotSupported(message=None, **kwargs)¶ Bases:
glance_store.exceptions.StoreGetNotSupported- 
message= '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= 'Unknown hashing algorithm identifier: %(algo)s'¶ 
- 
 
- 
exception 
glance_store.exceptions.UnknownScheme(message=None, **kwargs)¶ Bases:
glance_store.exceptions.GlanceStoreException- 
message= "Unknown scheme '%(scheme)s' found in URI"¶ 
- 
 
- 
exception 
glance_store.exceptions.UnsupportedBackend¶