Go to file
Rajat Dhasmana 3d55084cde Cinder: Standardize volume GET calls
The logic to fetch a volume details is scattered all over which
makes it hard to read as well as maintain.
There are currently two ways we fetch volume details:
1. client.volumes.get
2. volume.manager.get

The first one being the correct way maintaining abstraction and
using the cinderclient for API calls.
The problem with current code is:
1. Hard to read and maintain
2. Any change in volume GET logic will require changes across
whole store
3. Not handling exceptions in a common place
4. vulnerable to bugs as issue in one place cannot be detected
easily by other code paths and needs to be isolately tested

This patch aims to standardize the volume GET call so we can
avoid the above stated issues.
This patch has been tested with the following operations massaging
every place modified in this patch:
1. Create image - _wait_volume_status
2. Create > 1 GB image
2.1 offline - _call_offline_extend
2.2 online - _call_online_extend
3. upload volume to image - is_image_associated_with_store

Depends-On: https://review.opendev.org/c/openstack/glance/+/962445

Signed-off-by: Rajat Dhasmana <rajatdhasmana@gmail.com>
Change-Id: I5a4bad40ea03b0d746aaad392781f1b0fe78c8bc
2025-09-27 16:13:55 +00:00
2023-11-16 01:09:09 +09:00
2019-04-19 19:42:31 +00:00
2025-09-01 18:22:42 +00:00
2014-01-24 18:30:46 +01:00
2019-10-06 14:37:10 +08:00
2025-06-09 18:06:12 +09:00
2020-04-05 08:20:21 +02:00
2025-09-17 00:22:03 +09:00

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.

Description
Glance stores library
Readme 14 MiB
Languages
Python 100%