Bug 1758424 - [RFE] Ability to delete image from single store
Summary: [RFE] Ability to delete image from single store
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-glance
Version: 16.0 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: beta
: 16.1 (Train on RHEL 8.2)
Assignee: Erno Kuvaja
QA Contact: Mike Abrams
Chuck Copello
URL:
Whiteboard: docs-accepted
Depends On: 1225775
Blocks: 1802774 1845422
TreeView+ depends on / blocked
 
Reported: 2019-10-04 06:09 UTC by Abhishek Kekane
Modified: 2022-08-08 13:08 UTC (History)
7 users (show)

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.
Clone Of:
: 1845422 (view as bug list)
Environment:
Last Closed: 2020-07-29 07:49:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 698018 0 None MERGED Delete image from single store 2021-02-18 13:44:37 UTC
OpenStack gerrit 698049 0 None MERGED Add possibility to delete image from single store 2021-02-18 13:44:37 UTC
OpenStack gerrit 699644 0 None MERGED Delete image from specific store 2021-02-18 13:44:37 UTC
Red Hat Issue Tracker OSP-10405 0 None None None 2022-08-08 12:24:42 UTC
Red Hat Product Errata RHBA-2020:3148 0 None None None 2020-07-29 07:50:20 UTC

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


Note You need to log in before you can comment on or make changes to this bug.