Bug 2034829

Summary: cant delete VM with un-owned pvc attached
Product: OpenShift Container Platform Reporter: Guohua Ouyang <gouyang>
Component: Console Kubevirt PluginAssignee: Yaacov Zamir <yzamir>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.9CC: aos-bugs, aturgema, gouyang, yzamir
Target Milestone: ---   
Target Release: 4.9.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2019717 Environment:
Last Closed: 2022-01-10 08:50:46 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: 2019717    
Bug Blocks: 2034640    

Description Guohua Ouyang 2021-12-22 09:44:42 UTC
+++ This bug was initially created as a clone of Bug #2019717 +++

Description of problem:
initially introduced in https://bugzilla.redhat.com/show_bug.cgi?id=2018428#c22
When trying to delete a VM with a disk (PVC) attached which is not owned by the VM, 'Delete Virtual Machine' modal is stuck on loading


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

How reproducible:
100%

Steps to Reproduce:
1. attach a disk to a VM an existing pvc (VM status should be off/stopped) 
2. delete VM after disk attach
3.

Actual results:
Modal is stuck with spinner (looks like it's stuck on loading)

Expected results:
Modal opens and finishes loading, and the Delete button is enabled to delete.

Additional info:

--- Additional comment from OpenShift Automated Release Tooling on 2021-11-03 20:26:34 CST ---

Elliott changed bug status from MODIFIED to ON_QA.
This bug is expected to ship in the next 4.10 release created.

--- Additional comment from Guohua Ouyang on 2021-11-03 21:06:40 CST ---

Test on master, now the delete modal load normally and vm got deleted.

https://bugzilla.redhat.com/show_bug.cgi?id=2018428#c28, it mentioned "Provide an optional check box for each unowned disk so that it can also be deleted", but there is no such checkbox for unowned disk to be deleted, is it been discussed?

--- Additional comment from Yaacov Zamir on 2021-11-03 21:26:24 CST ---

> https://bugzilla.redhat.com/show_bug.cgi?id=2018428#c28, it mentioned "Provide an optional check box for each unowned disk so that it can also be deleted", but there is no such checkbox for unowned disk to be deleted, is it been discussed?

For this bug fix, please ignore the RFEs we discussed in: https://bugzilla.redhat.com/show_bug.cgi?id=2018428#c16 and https://bugzilla.redhat.com/show_bug.cgi?id=2018428#c20
As a bug fix we only fixed the none working checkbox.

--- Additional comment from OpenShift BugZilla Robot on 2021-11-04 05:48:25 CST ---

Bug will not be automatically moved to VERIFIED for the following reasons:
- PR openshift/console#10390 not appoved by QA contact
- PR openshift/console#10390 does not have the qe-approved label
- `Verified` field of this bug is not set to `Tested`

--- Additional comment from Guohua Ouyang on 2021-11-04 07:52:48 CST ---

Move the bug to verified, the delete modal load normally and unowned disk is not deleted.

Comment 2 Guohua Ouyang 2022-01-04 01:36:48 UTC
verified on openshift/console release-4.9

Comment 6 errata-xmlrpc 2022-01-10 08:50:46 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.9.13 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-2022:0029