c2b7b78d4f
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 |
||
---|---|---|
.. | ||
.placeholder | ||
0.29.1-notes-ded2a1d473a306c7.yaml | ||
add-store-weight-d443fbea8cc8d4c9.yaml | ||
block-creating-encrypted-nfs-volumes-d0ff370ab762042e.yaml | ||
bug-1620999-8b76a0ad14826197.yaml | ||
bug-1820817-0ee70781918d232e.yaml | ||
bug-1915602-fcc807a435d8a6bf.yaml | ||
bug-1954883-3666d63a3c0233f1.yaml | ||
bug-2004555-4fd67fce86c07461.yaml | ||
cinder-fix-nfs-sparse-vol-create-76631ce05f86257c.yaml | ||
cinder-nfs-block-qcow2-vol-4fed58b0afafc980.yaml | ||
cinder-support-extend-in-use-volume-c6292f950ff75cca.yaml | ||
deprecate-rados_connect_timeout-767ed1eaa026196e.yaml | ||
deprecate-sheepdog-driver-1f9689c327f313d4.yaml | ||
deprecate-store_add_to_backend-f419e5c4210613d2.yaml | ||
deprecate-store_capabilities_update_min_interval-039389fa296e2494.yaml | ||
deprecate-vmware-store-2f720c6074b843b0.yaml | ||
drop-py-2-7-345cafc9c1d3f892.yaml | ||
drop-python-3-6-and-3-7-41af87576c4fd7b1.yaml | ||
fix-exception-logging-during-attach-9546e24189db83c4.yaml | ||
fix-interval-in-retries-471155ff34d9f0e9.yaml | ||
fix-ip-in-connector-info-36b95d9959f10f63.yaml | ||
fix-legacy-image-update-49a149ec267dccb6.yaml | ||
fix-rados_connect_timeout-39e5074bc1a3b65b.yaml | ||
fix-rbd-lockup-3aa2bb86f7d29e19.yaml | ||
fix-wait-device-resize-c282940b71a3748e.yaml | ||
fs-drv-chunk-sz-a1b2f6a72fad92d5.yaml | ||
handle-sparse-image-a3ecfc4ae1c00d48.yaml | ||
improved-configuration-options-3635b56aba3072c9.yaml | ||
lock_path-cef9d6f5f52c3211.yaml | ||
move-rootwrap-config-f2cf435c548aab5c.yaml | ||
multi-store-0c004fc8aba2a25d.yaml | ||
multi-tenant-store-058b67ce5b7f3bd0.yaml | ||
multiattach-volume-handling-1a8446a64463f2cf.yaml | ||
multihash-support-629e9cbc283a8b47.yaml | ||
pike-relnote-9f547df14184d18c.yaml | ||
prevent-unauthorized-errors-ebb9cf2236595cd0.yaml | ||
queens-relnote-5fa2d009d9a9e458.yaml | ||
rbd-trash-snapshots-158a39da4248fb0c.yaml | ||
release-1.0.0-7ab43e91523eb3c8.yaml | ||
release-1.0.1-098b1487ac8cc9a1.yaml | ||
release-1.2.0-8d239f01cd8ff0bf.yaml | ||
releasenote-0.17.0-efee3f557ea2096a.yaml | ||
remove-cinder-experimental-fbf9dea32c84dc9b.yaml | ||
remove-gridfs-driver-09286e27613b4353.yaml | ||
remove-s3-driver-f432afa1f53ecdf8.yaml | ||
remove-store-cap-update-min-interval-21fea4173ed4a09b.yaml | ||
rethinking-filesystem-access-5ab872fd0c0d27db.yaml | ||
rocky-bugfixes-adefa8f47db16a2d.yaml | ||
set-documented-default-directory-for-filesystem-9b417a29416d3a94.yaml | ||
sorted-drivers-for-configs-a905f07d3bf9c973.yaml | ||
start-using-reno-73ef709807e37b74.yaml | ||
Stein_final_release-c7df5838028b8c7e.yaml | ||
support-cinder-multiple-stores-6cc8489f8f4f8ff3.yaml | ||
support-cinder-upload-c85849d9c88bbd7e.yaml | ||
support-cinder-user-domain-420c76053dd50534.yaml | ||
support-s3-driver-a4158f9fa35931d5.yaml | ||
update-stein-deprecations-3c2f6ffeab22b558.yaml | ||
victoria-milestone-1-c1f9de5b90e8c326.yaml | ||
vmware-store-requests-369485d2cfdb6175.yaml | ||
volume-type-validation-check-011a400d7fb3b307.yaml | ||
wallaby-final-release-00f0f851ff7d93ab.yaml | ||
xena-final-release-3c6e19dfba43b40d.yaml |