Bug 2019717 - cant delete VM with un-owned pvc attached
Summary: cant delete VM with un-owned pvc attached
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Kubevirt Plugin
Version: 4.9
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.10.0
Assignee: Aviv Turgeman
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks: 2034829
TreeView+ depends on / blocked
 
Reported: 2021-11-03 08:36 UTC by Aviv Turgeman
Modified: 2022-03-10 16:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 2034829 (view as bug list)
Environment:
Last Closed: 2022-03-10 16:24:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 10390 0 None Merged Bug 2019717: cant delete VM with un-owned pvc attached 2021-12-23 22:23:22 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:25:01 UTC

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


Note You need to log in before you can comment on or make changes to this bug.