Rajat Dhasmana 8318da1d5f Fix: optimized upload volume in Cinder store
When Glance is configured to use Cinder store and we upload
volume to Glance in the optimized path, it fails with
InvalidLocation error.
This happens because Cinder is not aware about the store
in which we will create the image and supplies the old
format URL i.e. cinder://<vol-id> whereas Glance expects
new location format i.e. cinder://<store-id>/<vol-id>.

Glance has code to update the format from old location format
to new location format but it isn't triggered in case of
old location APIs.

This patch adds the context to the update store ID request
which calls the Cinder store to provide the updated location,
hence fixing the optimized path for upload volume to image.

Closes-Bug: #2054575
Change-Id: Idd1cb8982b40b85a17821596f76dfa10207f6381
2024-07-04 17:39:28 +00:00
2024-06-18 11:11:59 +01:00
2022-06-06 14:21:03 +00:00
2022-02-03 13:19:20 -05:00
2020-01-06 12:56:30 -05:00
2019-04-19 19:45:31 +00:00
2014-02-11 12:00:44 +08:00
2023-08-31 18:14:18 -04:00
2012-01-03 10:14:01 -05:00
2022-12-05 10:59:14 -08:00
2024-06-24 17:43:26 +10:00
2020-03-28 08:18:01 +01:00
2024-05-02 09:20:59 +00:00
2024-05-21 18:12:49 +02:00

OpenStack Glance

Glance is an OpenStack project that provides services and associated libraries to store, browse, share, distribute and manage bootable disk images, other data closely associated with initializing compute resources, and metadata definitions.

Use the following resources to learn more:

API

To learn how to use Glance's API, consult the documentation available online at:

Developers

For information on how to contribute to Glance, please see the contents of the CONTRIBUTING.rst in this repository.

Any new code must follow the development guidelines detailed in the HACKING.rst file, and pass all unit tests.

Further developer focused documentation is available at:

Operators

To learn how to deploy and configure OpenStack Glance, consult the documentation available online at:

In the unfortunate event that bugs are discovered, they should be reported to the appropriate bug tracker. You can raise bugs here:

Release notes

To learn more about Glance's new features, optimizations, and changes between versions, consult the release notes online at:

Other Information

During each design summit, we agree on what the whole community wants to focus on for the upcoming release. You can see image service plans:

For more information about the Glance project please see:

Description
OpenStack Image Management (Glance)
Readme 131 MiB
Languages
Python 99.9%