Glance stores library
Go to file
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
doc Remove Python 2 support 2022-05-25 04:42:06 +02:00
etc/glance Add lock per share for cinder nfs mount/umount 2020-05-01 11:35:01 +00:00
glance_store Cinder: Add support to extend attached volumes 2023-01-18 15:46:49 +05:30
releasenotes Cinder: Add support to extend attached volumes 2023-01-18 15:46:49 +05:30
tools Remove logic for Python <= 2.6 2022-07-17 00:47:15 +09:00
.gitignore Add .stestr to gitignore 2018-01-29 06:26:30 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:42:31 +00:00
.stestr.conf Update tox.ini to conform to the PTI 2018-07-16 04:52:57 +00:00
.zuul.yaml Switch to 2023.1 Python3 unit tests and generic template name 2022-09-14 09:21:49 +00:00
LICENSE Copying from glance 2014-01-24 18:30:46 +01:00
README.rst Add release notes link in readme 2019-10-06 14:37:10 +08:00
requirements.txt Remove Python 2 support 2022-05-25 04:42:06 +02:00
run_tests.sh Don't include openstack/common in flake8 exclude list 2016-07-12 14:27:23 +08:00
setup.cfg Update python testing as per zed cycle teting runtime 2022-05-10 19:25:24 -05:00
setup.py Cleanup py27 support 2020-04-05 08:20:21 +02:00
test-requirements.txt Add cinder's new attachment support 2021-07-23 10:22:12 -04:00
tox.ini Fix tox4 error 2022-12-27 01:46:59 +00:00

README.rst

Team and repository tags

The following tags have been asserted for the Glance Store
Library:
"project:official",
"stable:follows-policy",
"vulnerability:managed".
Follow the link for an explanation of these tags.

Glance Store Library

Glance's stores library

This library has been extracted from the Glance source code for the specific use of the Glance and Glare projects.

The API it exposes is not stable, has some shortcomings, and is not a general purpose interface. We would eventually like to change this, but for now using this library outside of Glance or Glare will not be supported by the core team.