glance_store/glance_store/tests/unit
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
..
cinder Cinder: Add support to extend attached volumes 2023-01-18 15:46:49 +05:30
common Refactor/restructure glance cinder store 2023-01-17 12:13:06 +05:30
__init__.py Move glance_store tests into the main package 2015-06-12 15:15:10 +00:00
test_backend.py Remove Python 2 support 2022-05-25 04:42:06 +02:00
test_connection_manager.py swift: Take into account swift_store_endpoint 2021-03-01 16:10:37 +00:00
test_driver.py Replace md5 with oslo version 2020-11-11 13:40:46 -05:00
test_exceptions.py Remove Python 2 support 2022-05-25 04:42:06 +02:00
test_filesystem_store.py Remove Python 2 support 2022-05-25 04:42:06 +02:00
test_http_store.py Do not loose url queries on redirects 2022-08-04 17:33:15 +00:00
test_location.py use only exceptions for uri validations 2018-06-07 14:11:02 +00:00
test_multistore_filesystem.py Remove Python 2 support 2022-05-25 04:42:06 +02:00
test_multistore_rbd.py Remove Python 2 support 2022-05-25 04:42:06 +02:00
test_multistore_s3.py Add region_name option to s3 store 2022-12-02 11:46:46 +01:00
test_multistore_vmware.py Remove Python 2 support 2022-05-25 04:42:06 +02:00
test_opts.py Cinder: Add support to extend attached volumes 2023-01-18 15:46:49 +05:30
test_rbd_store.py Remove Python 2 support 2022-05-25 04:42:06 +02:00
test_s3_store.py Add region_name option to s3 store 2022-12-02 11:46:46 +01:00
test_store_base.py Use unittest.mock instead of third party mock 2020-04-18 11:52:47 -05:00
test_store_capabilities.py Move glance_store tests into the main package 2015-06-12 15:15:10 +00:00
test_swift_store.py Swift: Honor *_domain_name parameters 2022-08-18 11:20:52 +09:00
test_swift_store_multibackend.py Swift: Honor *_domain_name parameters 2022-08-18 11:20:52 +09:00
test_swift_store_utils.py Swift: Honor *_domain_name parameters 2022-08-18 11:20:52 +09:00
test_test_utils.py Bring FakeData utility over from glance 2020-08-26 07:38:55 -07:00
test_vmware_store.py Remove Python 2 support 2022-05-25 04:42:06 +02:00