glance_store/glance_store
Rajat Dhasmana a7edc87b0e Cinder: Add support to extend attached volumes
While creating an image, if we want to extend the volume
(to accomodate the image), we need to first detach the volume,
perform the extend and attach it again. This is inefficient
for backends that support extending attached volumes since we
are performing 3 cinder operations (the attachment call
includes 3 API calls which sum to a total of 5 API calls for 3
operations) instead of directly extending it which requires only
1 API call to cinder.
The support for extending attached volumes was added in cinder
microversion 3.42.

This patch adds a new boolean config option
``cinder_do_extend_attached`` which allows operators to specify
if the cinder backend they are using supports extending
attached (in-use) volumes. By default this will be ``false``.
Based on the parameter, we will perform the extend operation,
online (if cinder_do_extend_attached is true) and offline otherwise.

Spec: https://review.opendev.org/c/openstack/glance-specs/+/868901

Depends-On: https://review.opendev.org/c/openstack/glance/+/869021
Depends-On: https://review.opendev.org/c/openstack/cinder/+/869051

Change-Id: I5e70824e9abc5277ea25ba95704b358fe3686037
2023-01-18 15:46:49 +05:30
..
_drivers Cinder: Add support to extend attached volumes 2023-01-18 15:46:49 +05:30
common Cinder: Add support to extend attached volumes 2023-01-18 15:46:49 +05:30
locale Imported Translations from Zanata 2020-05-05 06:43:27 +00:00
tests Cinder: Add support to extend attached volumes 2023-01-18 15:46:49 +05:30
__init__.py Enable multi store support for glance 2018-07-15 15:10:27 +00:00
backend.py Remove Python 2 support 2022-05-25 04:42:06 +02:00
capabilities.py Removed 'store_capabilities_update_min_interval' config option 2019-05-29 06:23:03 +00:00
driver.py Remove Python 2 support 2022-05-25 04:42:06 +02:00
exceptions.py Remove Python 2 support 2022-05-25 04:42:06 +02:00
i18n.py Update oslo libraries 2015-03-19 11:43:42 -05:00
location.py Remove Python 2 support 2022-05-25 04:42:06 +02:00
multi_backend.py Remove Python 2 support 2022-05-25 04:42:06 +02:00