Bug 2100682 - All hardware devices get deleted while just delete one
Summary: All hardware devices get deleted while just delete one
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 4.11.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: 4.12.0
Assignee: Hilda Stastna
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-24 01:18 UTC by Guohua Ouyang
Modified: 2023-01-24 13:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-24 13:36:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt-ui kubevirt-plugin pull 725 0 None open Bug 2100682: Delete only the appropriate HW device in the modal 2022-07-04 16:38:56 UTC
Red Hat Issue Tracker CNV-19331 0 None None None 2022-12-15 08:39:33 UTC
Red Hat Product Errata RHSA-2023:0408 0 None None None 2023-01-24 13:37:10 UTC

Description Guohua Ouyang 2022-06-24 01:18:18 UTC
Description of problem:
Add two or more GPU devices to the VM and then try to delete one, all devices are deleted

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


How reproducible:


Steps to Reproduce:
1. On VM details tab
2. Add two devices in GPU devices
3. Then open the edit modal and try to delete one

Actual results:
all devices are deleted

Expected results:
the delete button should only delete the selected device

Additional info:

Comment 1 Guohua Ouyang 2022-06-24 01:18:46 UTC
The problem only happened in vm detail tab, not in catalog procedure

Comment 2 Tal Nisan 2022-06-29 08:38:27 UTC
Clarification - this bug refers to adding the same device twice rather than adding two different devices and thus not a blocker

Comment 3 Hilda Stastna 2022-07-01 15:52:30 UTC
I was able to reproduce only when adding 2 GPU devices with the same 'Name' (does not matter what you choose as a 'Device name').
Probably because only the name is checked, when deleting the device, and all the devices with the same name are deleted.

The same problem is present also for Host devices and also in the VM Templates Details tab. Probably because there is the same component used.

Comment 4 Guohua Ouyang 2022-07-27 04:36:48 UTC
verified on v4.12.0-88

Comment 8 errata-xmlrpc 2023-01-24 13:36:58 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 (Important: OpenShift Virtualization 4.12.0 Images 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-2023:0408


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