glance.common.store_utils.
delete_image_location_from_backend
(context, image_id, location)[source]¶Given a location, immediately or schedule the deletion of an image location and update location status to db.
Parameters: |
|
---|
glance.common.store_utils.
safe_delete_from_backend
(context, image_id, location)[source]¶Given a location, delete an image from the store and update location status to db.
This function try to handle all known exceptions which might be raised by those calls on store and DB modules in its implementation.
Parameters: |
|
---|
glance.common.store_utils.
schedule_delayed_delete_from_backend
(context, image_id, location)[source]¶Given a location, schedule the deletion of an image location and update location status to db.
Parameters: |
|
---|
glance.common.store_utils.
validate_external_location
(uri)[source]¶Validate if URI of external location are supported.
Only over non-local store types are OK, i.e. Swift, HTTP. Note the absence of ‘file://’ for security reasons, see LP bug #942118, 1400966, ‘swift+config://’ is also absent for security reasons, see LP bug #1334196.
Parameters: | uri – The URI of external image location. |
---|---|
Returns: | Whether given URI of external image location are OK. |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.