Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2019717

Summary: cant delete VM with un-owned pvc attached
Product: OpenShift Container Platform Reporter: Aviv Turgeman <aturgema>
Component: Console Kubevirt PluginAssignee: Aviv Turgeman <aturgema>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: high Docs Contact:
Priority: high    
Version: 4.9CC: aos-bugs, gouyang, yzamir
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2034829 (view as bug list) Environment:
Last Closed: 2022-03-10 16:24:41 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:
Bug Depends On:    
Bug Blocks: 2034829    

Description Aviv Turgeman 2021-11-03 08:36:11 UTC
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:

Comment 2 Guohua Ouyang 2021-11-03 13:06:40 UTC
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?

Comment 3 Yaacov Zamir 2021-11-03 13:26:24 UTC
> 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.

Comment 5 Guohua Ouyang 2021-11-03 23:52:48 UTC
Move the bug to verified, the delete modal load normally and unowned disk is not deleted.

Comment 8 errata-xmlrpc 2022-03-10 16:24:41 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.10.3 security 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/RHSA-2022:0056