glance_store/releasenotes/notes
Rajat Dhasmana c2b7b78d4f Use normal credentials for legacy image update
When updating legacy images, currenly we use the user's
context and elevate priviledges. However, we do not
require admin priviledges for the cinder API calls.

This patch removes the special case where we elevate
priviledges as it wasn't doing anything rather avoiding
us to use right credentials and failing to fetch volume
in the right location because of wrong credentials.

The correct credentials are either the service ones
set in glance-api.conf file or the user context
credentials, using which the Image-Volume was created.

NOTE: When using cinder as glance backend and we want
to perform optimized volume upload to image, one thing
we should make sure is either using the context or the
cinder credentials set in glance-api.conf file, it should
match the following details on the cinder side (if we are
using internal context to create clone of image-volumes):

cinder_store_user_name = context.user_id/cinder_internal_tenant_user_id
cinder_store_project_name = context.project_id/cinder_internal_tenant_project_id

The cinder_internal_tenant_user_id and
cinder_internal_tenant_project_id are set in the
[DEFAULT] section of cinder.conf.

This issue was first discovered when testing the new
location APIs[1] where tempest creates a volume with
cinder's internal context and glance uses wrong (user context)
credentials to access it and failing with 404 not found.

[1] https://review.opendev.org/c/openstack/cinder/+/909847

Closes-Bug: #2056179
Change-Id: I4f27a9800f239da8dbf29f4c028678df1f867664
2024-04-08 23:53:24 +05:30
..
.placeholder Add reno for release notes management in glance_store 2015-12-04 12:29:11 -06:00
0.29.1-notes-ded2a1d473a306c7.yaml Add 0.29.1 releasenotes 2019-06-07 12:01:52 +01:00
Stein_final_release-c7df5838028b8c7e.yaml Stein cycle Release Notes 2019-02-28 17:29:56 +00:00
add-store-weight-d443fbea8cc8d4c9.yaml Add per-store weight config element 2023-06-15 06:57:53 -07:00
block-creating-encrypted-nfs-volumes-d0ff370ab762042e.yaml Don't allow image creation with encrypted nfs volumes 2020-06-22 07:08:13 +00:00
bug-1620999-8b76a0ad14826197.yaml Swift: Honor *_domain_name parameters 2022-08-18 11:20:52 +09:00
bug-1820817-0ee70781918d232e.yaml Re-use swift_store_cacert for Keystone session 2020-01-14 07:25:29 +00:00
bug-1915602-fcc807a435d8a6bf.yaml Cinder store: Use v3 API by default 2021-02-13 22:20:06 +09:00
bug-1954883-3666d63a3c0233f1.yaml [RBD] Clone v2: Image is unusable if deletion fails 2021-12-21 17:11:45 +00:00
bug-2004555-4fd67fce86c07461.yaml Add force to os-brick disconnect 2023-05-10 08:29:05 -04:00
cinder-fix-nfs-sparse-vol-create-76631ce05f86257c.yaml Refactor/restructure glance cinder store 2023-01-17 12:13:06 +05:30
cinder-nfs-block-qcow2-vol-4fed58b0afafc980.yaml Glance cinder nfs: Block creating qcow2 volumes 2021-07-28 11:14:46 -04:00
cinder-support-extend-in-use-volume-c6292f950ff75cca.yaml Cinder: Add support to extend attached volumes 2023-01-18 15:46:49 +05:30
deprecate-rados_connect_timeout-767ed1eaa026196e.yaml Rbd: Deprecate unused rados_connect_timeout 2022-08-04 15:29:28 +02:00
deprecate-sheepdog-driver-1f9689c327f313d4.yaml Deprecate Sheepdog driver 2019-07-19 16:38:18 -04:00
deprecate-store_add_to_backend-f419e5c4210613d2.yaml Deprecate store_add_to_backend() 2018-07-18 12:02:43 -04:00
deprecate-store_capabilities_update_min_interval-039389fa296e2494.yaml Deprecate store_capabilities_update_min_interval 2018-06-20 19:40:17 -04:00
deprecate-vmware-store-2f720c6074b843b0.yaml Deprecate VMWare Datastore 2023-09-05 22:02:19 +09:00
drop-py-2-7-345cafc9c1d3f892.yaml Drop python 2.7 support and testing 2020-01-22 16:27:08 +00:00
drop-python-3-6-and-3-7-41af87576c4fd7b1.yaml Update python testing as per zed cycle teting runtime 2022-05-10 19:25:24 -05:00
fix-exception-logging-during-attach-9546e24189db83c4.yaml Cinder: Correct exception logging during attach 2022-04-28 10:31:54 +05:30
fix-interval-in-retries-471155ff34d9f0e9.yaml Correct retry interval during attach volume 2022-04-18 22:23:49 +05:30
fix-ip-in-connector-info-36b95d9959f10f63.yaml Pass valid IP address to os-brick 2021-12-23 11:39:53 -05:00
fix-legacy-image-update-49a149ec267dccb6.yaml Use normal credentials for legacy image update 2024-04-08 23:53:24 +05:30
fix-rados_connect_timeout-39e5074bc1a3b65b.yaml RBD: Use rados_connect_timeout to override timeout 2024-01-19 13:16:24 +09:00
fix-rbd-lockup-3aa2bb86f7d29e19.yaml Revert "RBD: Wrap RBD calls in native threads" 2023-05-18 09:30:58 -07:00
fix-wait-device-resize-c282940b71a3748e.yaml Cinder store: Wait for device resize 2022-02-07 23:56:17 +05:30
fs-drv-chunk-sz-a1b2f6a72fad92d5.yaml Filesystem driver: add chunk size config option 2019-02-25 14:47:07 +02:00
handle-sparse-image-a3ecfc4ae1c00d48.yaml Handle sparse images in glance_store 2020-08-21 07:02:43 -07:00
improved-configuration-options-3635b56aba3072c9.yaml Release note for glance_store configuration opts. 2016-08-17 21:04:33 +00:00
lock_path-cef9d6f5f52c3211.yaml Support os-brick specific lock_path for Cinder 2022-07-12 11:30:31 +02:00
move-rootwrap-config-f2cf435c548aab5c.yaml Move rootwrap config files from etc/* into etc/glance/* 2016-11-04 11:52:04 +00:00
multi-store-0c004fc8aba2a25d.yaml Add release notes for 0.25.0 2018-07-17 11:51:37 +00:00
multi-tenant-store-058b67ce5b7f3bd0.yaml Raise exc when using multi-tenant and swift+config 2016-12-16 19:48:09 +00:00
multiattach-volume-handling-1a8446a64463f2cf.yaml Add volume multiattach handling 2021-08-12 09:20:20 -04:00
multihash-support-629e9cbc283a8b47.yaml Multihash Implementation for Glance 2018-07-18 09:27:54 -04:00
pike-relnote-9f547df14184d18c.yaml Replace git.openstack.org URLs with opendev.org URLs 2019-05-05 14:45:44 +08:00
prevent-unauthorized-errors-ebb9cf2236595cd0.yaml Fix releasenotes to pass reno gates 2016-04-11 12:41:53 +03:00
queens-relnote-5fa2d009d9a9e458.yaml Replace git.openstack.org URLs with opendev.org URLs 2019-05-05 14:45:44 +08:00
rbd-trash-snapshots-158a39da4248fb0c.yaml RBD: Trash image when snapshots prevent deletion 2023-06-15 07:58:48 -07:00
release-1.0.0-7ab43e91523eb3c8.yaml Release note and documentation for 1.0.0 2019-07-19 21:45:53 -04:00
release-1.0.1-098b1487ac8cc9a1.yaml Release note for 1.0.1 2019-09-26 13:58:06 +00:00
release-1.2.0-8d239f01cd8ff0bf.yaml Release note for 1.2.0 2020-03-30 05:59:11 +00:00
releasenote-0.17.0-efee3f557ea2096a.yaml Add release notes for 0.17.0 2016-08-17 22:28:54 +00:00
remove-cinder-experimental-fbf9dea32c84dc9b.yaml Consider Cinder back-end as production ready 2018-07-19 13:56:40 +00:00
remove-gridfs-driver-09286e27613b4353.yaml Remove the gridfs driver 2016-01-18 15:41:32 -04:30
remove-s3-driver-f432afa1f53ecdf8.yaml process spelling error 2018-01-23 18:56:55 +08:00
remove-store-cap-update-min-interval-21fea4173ed4a09b.yaml Add releasenote for option removal 2019-05-30 13:06:04 -04:00
rethinking-filesystem-access-5ab872fd0c0d27db.yaml Rethinking file system access 2019-06-06 07:54:29 +00:00
rocky-bugfixes-adefa8f47db16a2d.yaml Add release notes for 0.25.0 2018-07-17 11:51:37 +00:00
set-documented-default-directory-for-filesystem-9b417a29416d3a94.yaml Set documented default directory for filesystem 2016-01-18 08:41:10 -04:30
sorted-drivers-for-configs-a905f07d3bf9c973.yaml Always return a sorted list of drivers for configs 2016-09-01 23:51:58 +00:00
start-using-reno-73ef709807e37b74.yaml Add reno for release notes management in glance_store 2015-12-04 12:29:11 -06:00
support-cinder-multiple-stores-6cc8489f8f4f8ff3.yaml Support Cinder multiple stores 2020-08-24 21:27:51 +00:00
support-cinder-upload-c85849d9c88bbd7e.yaml Fix misspelling in the releasenote support-cinder-upload 2016-02-29 00:24:51 +09:00
support-cinder-user-domain-420c76053dd50534.yaml Allow any Keystone domain for cinder store 2021-06-03 11:04:52 +00:00
support-s3-driver-a4158f9fa35931d5.yaml Add S3 store support to glance_store 2020-03-26 10:53:46 +09:00
update-stein-deprecations-3c2f6ffeab22b558.yaml Update deprecation notices 2018-12-20 11:24:44 -05:00
victoria-milestone-1-c1f9de5b90e8c326.yaml Release notes for Victoria Milestone 1 2020-06-22 06:36:03 +00:00
vmware-store-requests-369485d2cfdb6175.yaml Switch VMWare Datastore to use Requests 2016-02-24 22:53:15 -08:00
volume-type-validation-check-011a400d7fb3b307.yaml Validate volume type during volume create 2021-02-16 07:55:35 +00:00
wallaby-final-release-00f0f851ff7d93ab.yaml Wallaby cycle Release Notes 2021-03-01 07:17:27 +00:00
xena-final-release-3c6e19dfba43b40d.yaml Xena cycle Release Notes 2021-08-18 06:33:56 +00:00