Bug 1905108
| 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-engine | Assignee: | Arik <ahadas> |
| Status: | CLOSED ERRATA | QA Contact: | Qin Yuan <qiyuan> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.4.3 | CC: | ahadas, dfodor, emarcus, gveitmic, pelauter |
| Target Milestone: | ovirt-4.4.5 | ||
| Target Release: | 4.4.5 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ovirt-engine-4.4.5 | Doc Type: | Bug Fix |
| Doc Text: |
Previously, plugging several virtual disks to a running virtual machine over a short time interval could cause a failure to plug some of the disks, and issued an error message: "Domain already contains a disk with that address".
In this release, this is avoided by making sure that a disk that is being plugged to a running virtual machine is not assigned with an address that has already been assigned to another disk that was previously plugged to the virtual machine.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-04-14 11:39:56 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 1
Arik
2020-12-10 17:32:26 UTC
Verified with:
ovirt-engine-4.4.5.2-0.1.el8ev.noarch
Steps:
1. Create and run a VM(use 8.3 template)
2. Create 5 new disks
3. Attach the 5 disks to the running VM at the same time(the interfaces are all VirtIO-SCSI)
Results:
All 5 disks are successfully attached to the running VM.
engine log:
2021-01-23 10:46:35,600+02 INFO [org.ovirt.engine.core.bll.storage.disk.AttachDiskToVmCommand] (default task-8) [ab4826f7-250d-423f-8573-d3b0cc502d36] Lock Acquired to object 'EngineLock:{exclusiveLocks='[d6203d16-ff6a-41b2-85cf-4ad19efe3a76=DISK]', sharedLocks=''}'
2021-01-23 10:46:35,673+02 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugDiskVDSCommand] (default task-8) [ab4826f7-250d-423f-8573-d3b0cc502d36] Disk hot-plug: <?xml version="1.0" encoding="UTF-8"?><hotplug>
<devices>
<disk snapshot="no" type="block" device="disk">
<target dev="sda" bus="scsi"/>
<alias name="ua-d6203d16-ff6a-41b2-85cf-4ad19efe3a76"/>
<address bus="0" controller="0" unit="0" type="drive" target="0"/>
2021-01-23 10:46:36,972+02 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-8) [ab4826f7-250d-423f-8573-d3b0cc502d36] EVENT_ID: USER_ATTACH_DISK_TO_VM(2,016), Disk test_disk1 was successfully attached to VM test by admin@internal-authz.
...
2021-01-23 10:46:37,443+02 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugDiskVDSCommand] (default task-8) [8990b1b6-d48a-439e-b9c5-9c4057e55609] Disk hot-plug: <?xml version="1.0" encoding="UTF-8"?><hotplug>
<devices>
<disk snapshot="no" type="block" device="disk">
<target dev="sda" bus="scsi"/>
<alias name="ua-82c8ab80-5bb0-4dfa-9272-99e000381cf0"/>
<address bus="0" controller="0" unit="1" type="drive" target="0"/>
...
2021-01-23 10:46:38,707+02 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-8) [8990b1b6-d48a-439e-b9c5-9c4057e55609] EVENT_ID: USER_ATTACH_DISK_TO_VM(2,016), Disk test_disk2 was successfully attached to VM test by admin@internal-authz.
...
2021-01-23 10:46:39,298+02 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugDiskVDSCommand] (default task-8) [7a78dcd7-0250-43f2-bda4-17f58f993abf] Disk hot-plug: <?xml version="1.0" encoding="UTF-8"?><hotplug>
<devices>
<disk snapshot="no" type="block" device="disk">
<target dev="sda" bus="scsi"/>
<alias name="ua-f79ab334-be86-43c0-a6e8-d1deeb045a5a"/>
<address bus="0" controller="0" unit="2" type="drive" target="0"/>
...
2021-01-23 10:46:40,517+02 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-8) [7a78dcd7-0250-43f2-bda4-17f58f993abf] EVENT_ID: USER_ATTACH_DISK_TO_VM(2,016), Disk test_disk3 was successfully attached to VM test by admin@internal-authz.
...
2021-01-23 10:46:41,032+02 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugDiskVDSCommand] (default task-8) [b2b44415-62a2-4ff6-ab0c-7421c7be3e8d] Disk hot-plug: <?xml version="1.0" encoding="UTF-8"?><hotplug>
<devices>
<disk snapshot="no" type="block" device="disk">
<target dev="sda" bus="scsi"/>
<alias name="ua-597829b3-06c0-4681-aa0b-3e4922212156"/>
<address bus="0" controller="0" unit="3" type="drive" target="0"/>
2021-01-23 10:46:42,307+02 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-8) [b2b44415-62a2-4ff6-ab0c-7421c7be3e8d] EVENT_ID: USER_ATTACH_DISK_TO_VM(2,016), Disk test_disk4 was successfully attached to VM test by admin@internal-authz.
...
2021-01-23 10:46:42,749+02 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.HotPlugDiskVDSCommand] (default task-12) [e4eb4def-dba8-4389-b26f-226aab1b93a1] Disk hot-plug: <?xml version="1.0" encoding="UTF-8"?><hotplug>
<devices>
<disk snapshot="no" type="block" device="disk">
<target dev="sda" bus="scsi"/>
<driver name="qemu" io="native" type="raw" error_policy="stop" cache="none"/>
<alias name="ua-a9c437c2-4529-41f2-aa47-9193509a1709"/>
<address bus="0" controller="0" unit="4" type="drive" target="0"/>
2021-01-23 10:46:44,061+02 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-12) [e4eb4def-dba8-4389-b26f-226aab1b93a1] EVENT_ID: USER_ATTACH_DISK_TO_VM(2,016), Disk test_disk5 was successfully attached to VM test by admin@internal-authz.
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: RHV Manager (ovirt-engine) 4.4.z [ovirt-4.4.5] security, bug fix, enhancement), 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-2021:1169 |