Bug 1855305

Summary: Cannot hotplug disk reports libvirtError: Requested operation is not valid: Domain already contains a disk with that address
Product: Red Hat Enterprise Virtualization Manager Reporter: Frank DeLorey <fdelorey>
Component: ovirt-engineAssignee: Arik <ahadas>
Status: CLOSED ERRATA QA Contact: Nisim Simsolo <nsimsolo>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.3.7CC: aenrique, ahadas, dfodor, emarcus, gchakkar, imomin, mavital, michal.skrivanek, mkalinin, mzamazal, nsimsolo, sbonazzo, shipatil, sigbjorn.lie, tnisan
Target Milestone: ovirt-4.4.3   
Target Release: 4.4.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.4.3.3 Doc Type: Bug Fix
Doc Text:
Previously, hot-plugging a disk to Virtual Machine sometimes failed if the disk was assigned an address that was already assigned to a host-passthrough disk device. In this release, conflicts are avoided by preventing an address that is assigned to host-passthrough disk device from being assigned to a disk that is hot-plugged to the Virtual Machine.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-24 13:09:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 15 Arik 2020-09-06 07:21:16 UTC
Scenarios to test:

(A) Simple scenario:
1. Run a VM with a single passthrough SCSI disk.
2. Plug a non-passthrough SCSI disk
Expected result: the disk should be plugged successfully to the VM

(B) The reported scenario:
1. Run a VM with 5 non-passthrough SCSI disks and a single passthrough SCSI disk
2. Make sure that the non-passthrough disks are assigned with units 0-4 and the passthrough disk is assigned with unit=5
3. Unplugged the last disk
4. Plug the disk that was just unplugged
5. Make sure that the plugged disk is assigned again with unit=4
6. Plug another non-passthorough SCSI disk
7. Make sure that the disk that was just plugged is assigned with unit=6

Comment 18 Nisim Simsolo 2020-10-22 14:22:19 UTC
Verified:
ovirt-engine-4.4.3.7-0.22.el8ev
vdsm-4.40.34-1.el8ev.x86_64
libvirt-daemon-6.6.0-6.module+el8.3.0+8125+aefcf088.x86_64
qemu-kvm-5.1.0-13.module+el8.3.0+8382+afc3bbea.x86_64

Verification scenario:
as described in:
https://bugzilla.redhat.com/show_bug.cgi?id=1855305#c15

Comment 22 errata-xmlrpc 2020-11-24 13:09:25 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 (Low: Red Hat Virtualization security, bug fix, and enhancement 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-2020:5179