Bug 1871742 - It is not possible to delete a PVC created using a data upload
Summary: It is not possible to delete a PVC created using a data upload
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Kubevirt Plugin
Version: 4.5
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.6.0
Assignee: Gilad Lekner
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-24 07:38 UTC by Tomas Jelinek
Modified: 2020-10-27 16:30 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 16:30:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 6407 0 None closed Bug 1871742: can't delete a PVC created using a data upload 2020-10-09 00:28:42 UTC
Github openshift console pull 6789 0 None closed Bug 1871742: It is not possible to delete a PVC created using a data upload 2020-10-09 00:28:51 UTC
Github openshift console pull 6804 0 None closed Bug 1871742: It is not possible to delete a PVC created using a data upload 2020-10-09 00:28:42 UTC
Red Hat Product Errata RHBA-2020:4196 0 None None None 2020-10-27 16:30:58 UTC

Description Tomas Jelinek 2020-08-24 07:38:35 UTC
Description of problem:
It is not possible to delete a PVC created using a data upload. It will reappear again.

Actual results:
Upload something into a PVC. Try to delete it. It will re-appear.

Expected results:
It will actually be deleted (e.g. the datavolume behind it should be deleted)

Additional info:

Comment 1 Tomas Jelinek 2020-08-24 09:02:15 UTC
@Matt: we have couple of options here:
1: the delete PVC would detect that this PVC is backed by a datavolume and would delete the datavolume instead (e.g. it would be for the user a seamless experience, he wants to delete a PVC and it gets deleted nvm how)
2: the delete PVC would warn the user that this is backed by a datavolume and deleting it means it will get re-created again (I dont think this is any useful though...)
3: letting the user know that this PVC is backed by a datavolume so the datavolume will be deleted instead and than delete the datavolume (e.g. similar to the first one but letting the user know what is actually going on)


@Matt: wdyt?

Comment 4 Matt 2020-09-02 02:34:46 UTC
I think option 3 is best. It would be good to inform the user the PVC and it’s backing data volume will be deleted.

Comment 5 Guohua Ouyang 2020-09-02 09:02:40 UTC
It shows a warning "Deleting this PVC will also delete upload-cirros Data Volume" while deleting PVC backed by dv.

Comment 6 Gilad Lekner 2020-09-23 11:55:17 UTC
golden pvc detection changed, need to fix this bug again

Comment 7 Tomas Jelinek 2020-09-24 05:59:49 UTC
have to move out of 4.6 blocker list but definitely want to fix asap

Comment 10 Guohua Ouyang 2020-10-09 01:09:22 UTC
verified on master UI, delete pvc and golden pvc successfully

Comment 12 errata-xmlrpc 2020-10-27 16:30:45 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 (OpenShift Container Platform 4.6 GA Images), 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:4196


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