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:
The problem only happened in vm detail tab, not in catalog procedure
Clarification - this bug refers to adding the same device twice rather than adding two different devices and thus not a blocker
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.
verified on v4.12.0-88
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