Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1758424

Summary: [RFE] Ability to delete image from single store
Product: Red Hat OpenStack Reporter: Abhishek Kekane <akekane>
Component: openstack-glanceAssignee: Erno Kuvaja <ekuvaja>
Status: CLOSED ERRATA QA Contact: Mike Abrams <mabrams>
Severity: medium Docs Contact: Chuck Copello <ccopello>
Priority: medium    
Version: 16.0 (Train)CC: amcleod, athomas, cyril, dcadzow, eglynn, ekuvaja, gcharot
Target Milestone: betaKeywords: FutureFeature, TechPreview, Triaged
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: docs-accepted
Fixed In Version: openstack-glance-19.0.3-0.20200313113446.3e16bc7.el8ost Doc Type: Technology Preview
Doc Text:
With this update, when using Image service (glance) multi stores, the image owner can delete an image copy from a specific store.
Story Points: ---
Clone Of:
: 1845422 (view as bug list) Environment:
Last Closed: 2020-07-29 07:49:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1225775    
Bug Blocks: 1802774, 1845422    

Description Abhishek Kekane 2019-10-04 06:09:32 UTC
As Glance is now able to configure the multiple stores, in distributed compute case it is possible that same image is present/copied across multiple stores. As of now the image can be copied to different locations manually by admin/operator and then same will be updated to image locations using locations API. If admin/operator want to delete the image from one of the available stores then he need to use the current vulnerable locations API to do so as delete API will simply deletes the image from all of its available locations.

In order to get rid of vulnerable locations API to delete the image from one of the store, Glance should enhance the delete API which will be able to delete the image from provide store(s).

Comment 1 Erno Kuvaja 2019-12-10 11:57:41 UTC
Patch in flight  https://review.opendev.org/#/c/698049/ and the spec https://review.opendev.org/#/c/698018/

Comment 2 Abhishek Kekane 2020-03-16 06:35:36 UTC
Specs and API side patch merged.


Patch https://review.opendev.org/#/c/698049/ and the spec https://review.opendev.org/#/c/698018/

client side patch under review: https://review.opendev.org/#/c/699644/

Comment 3 Cyril Roelandt 2020-04-22 20:56:13 UTC
This also requires python-glanceclient-2.17.0-0.20200310160931.40c19aa.el8ost.

Comment 4 Gregory Charot 2020-04-23 09:19:23 UTC
Since the team has been able to complete upstream work in time as well as downstream backport, I'm moving this RFE to 16.1.1

Comment 11 errata-xmlrpc 2020-07-29 07:49:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:3148