Bug 2100682

Summary: All hardware devices get deleted while just delete one
Product: Container Native Virtualization (CNV) Reporter: Guohua Ouyang <gouyang>
Component: User ExperienceAssignee: Hilda Stastna <hstastna>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: high Docs Contact:
Priority: medium    
Version: 4.11.0CC: gouyang, hstastna, ycui
Target Milestone: ---   
Target Release: 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-24 13:36:58 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:

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