Bug 1971667

Summary: Delete HCO is stucking if there is still VM in the cluster
Product: OpenShift Container Platform Reporter: Samuel Padgett <spadgett>
Component: Management ConsoleAssignee: ralpert
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: high Docs Contact:
Priority: high    
Version: 4.7CC: aos-bugs, gouyang, jokerman, ocohen, ralpert, schituku, spadgett, yapei, ycui, yzamir
Target Milestone: ---Keywords: Regression
Target Release: 4.7.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: Scrubbed
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1939753 Environment:
Last Closed: 2021-06-29 04:20:27 UTC Type: ---
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: 1939753    
Bug Blocks:    

Comment 2 Yadan Pei 2021-06-18 05:57:38 UTC
1. Install 'OpenShift Virtualization' operator from OperatorHub
2. once installed successfully, create a HyperConverged
3. after HyperConverged is created, go to workloads>virtualization and create a VM
4. when VM is running, go to Installed Operator and try to delete the HyperConverge, we will see an error message in the delete modal and  HyperConverge is not removed:

An error occurred
admission webhook "validate-hco.kubevirt.io" denied the request: admission webhook "kubevirt-validator.kubevirt.io" denied the request: Rejecting the uninstall request, since there are still Virtual Machine Instances present. Either delete all KubeVirt related workloads or change the uninstall strategy before uninstalling KubeVirt.

Verified on     4.7.0-0.nightly-2021-06-17-173140

Comment 5 errata-xmlrpc 2021-06-29 04:20:27 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.7.18 bug fix 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.

https://access.redhat.com/errata/RHBA-2021:2502