# glance_store.exceptions module

Glance Store exception subclasses

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

  Bases: `GlanceStoreException`

  message = 'Connect error/bad request to Auth service at URL %(url)s.'

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

  Bases: `GlanceStoreException`

  message = 'Auth service at URL %(url)s not found.'

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

  Bases: `GlanceStoreException`

  message = 'Authorization failed.'

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

  Bases: `GlanceStoreException`

  message = 'Redirecting to %(uri)s for authorization.'

exception glance_store.exceptions.BackendException

  Bases: `Exception`

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

  Bases: `GlanceStoreException`

  message = 'Incorrect auth strategy, expected "%(expected)s" but received "%(received)s"'

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

  Bases: `GlanceStoreException`

  message = 'Store %(store_name)s could not be configured correctly. Reason: %(reason)s'

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

  Bases: `GlanceStoreException`

  message = 'The Store URI was malformed: %(uri)s'

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

  Bases: `GlanceStoreException`

  message = 'Driver %(driver_name)s could not be loaded.'

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

  Bases: `GlanceStoreException`

  message = 'Image %(image)s already exists'

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

  Bases: `GlanceStoreException`

  message = 'You are not authorized to complete this action.'

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

  Bases: `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 = 'An unknown exception occurred'

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

  Bases: `GlanceStoreException`

  message = 'The image cannot be deleted because it has snapshot(s).'

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

  Bases: `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: `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: `GlanceStoreException`

  message = 'Data supplied was not valid.'

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

  Bases: `GlanceStoreException`

  message = 'Maximum redirects (%(redirects)s) was exceeded.'

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

  Bases: `GlanceStoreException`

  message = 'Missing required credential: %(required)s'

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

  Bases: `GlanceStoreException`

  message = 'Response from Keystone does not contain a Glance endpoint.'

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

  Bases: `GlanceStoreException`

  message = 'You are not authenticated.'

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

  Bases: `GlanceStoreException`

  message = 'Image %(image)s not found'

exception glance_store.exceptions.RedirectException(url)

  Bases: `Exception`

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

  Bases: `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.RemoteServiceUnavailable(message=None, **kwargs)

  Bases: `GlanceStoreException`

  message = 'Remote server where the image is present is unavailable.'

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

  Bases: `GlanceStoreException`

  message = 'There is not enough disk space on the image storage media.'

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

  Bases: `GlanceStoreException`

  message = 'Permission to write image storage media denied.'

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

  Bases: `GlanceStoreException`

  message = 'Configuration for store failed. Adding images to this store is disabled.'

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

  Bases: `GlanceStoreException`

  message = 'Deleting images from this store is not supported.'

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

  Bases: `GlanceStoreException`

  message = 'Getting images from this store is not supported.'

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

  Bases: `StoreGetNotSupported`

  message = 'Getting images randomly from this store is not supported. Offset: %(offset)s, length: %(chunk_size)s'

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

  Bases: `GlanceStoreException`

  message = 'Operation timed out after %(timeout)ds. Check storage health and connectivity.'

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

  Bases: `GlanceStoreException`

  message = 'Unknown hashing algorithm identifier: %(algo)s'

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

  Bases: `GlanceStoreException`

  message = "Unknown scheme '%(scheme)s' found in URI"

exception glance_store.exceptions.UnsupportedBackend

  Bases: `BackendException`

this page last updated: 2026-07-16 14:39:14

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

found an error? report a bug