Bug 1871742

Summary: It is not possible to delete a PVC created using a data upload
Product: OpenShift Container Platform Reporter: Tomas Jelinek <tjelinek>
Component: Console Kubevirt PluginAssignee: Gilad Lekner <glekner>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: high Docs Contact:
Priority: high    
Version: 4.5CC: aos-bugs, gouyang, mcarleto
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 16:30:45 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:

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