Bug 1910829

Summary: Cannot delete a PVC if the dv's phase is WaitForFirstConsumer
Product: OpenShift Container Platform Reporter: Guohua Ouyang <gouyang>
Component: Console Kubevirt PluginAssignee: Gilad Lekner <glekner>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.7CC: aos-bugs, glekner, gouyang, yzamir
Target Milestone: ---Flags: gouyang: needinfo-
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:48:29 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:
Description Flags
exampe pvc yaml none

Description Guohua Ouyang 2020-12-25 02:12:36 UTC
Created attachment 1741823 [details]
exampe pvc yaml

Description of problem:
If the DV phase is WaitForFirstConsumer, PVC is keeping respawn after deleting it.

On UI, the warning like "Deleting this PVC will also delete url-rootdisk-7rw40 Data Volume" is not showing if the DV phase is WaitForFirstConsumer, that means it cannot delete the PVC on UI. 

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Go to storage -> PVC
2. Create a PVC which have a DV in phase WaitForFirstConsumer
3. Delete the PVC

Actual results:
PVC is keeping respwaning

Expected results:
warning like "Deleting this PVC will also delete url-rootdisk-7rw40 Data Volume", delete the PVC will delete the DV as well.

Additional info:

Comment 2 Guohua Ouyang 2021-01-04 01:00:05 UTC
Still see the issue on latest 4.7 branch.

Comment 3 Guohua Ouyang 2021-01-04 01:13:40 UTC
Plus, it got the same behavior if the dv phase is stucking in pending, can we fix it as well?

Comment 4 Gilad Lekner 2021-01-04 11:50:02 UTC
Tried changing the detection to use ownerReference, please try again once https://github.com/openshift/console/pull/7695 is merged

Comment 8 errata-xmlrpc 2021-02-24 15:48:29 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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

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