Bug 1808400
| Summary: | [RHEL-AV-8.2 libvirt] can't start two guests with passthrough of an iscsi lun with "shareable" element | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Andrea Bolognani <abologna> |
| Component: | libvirt | Assignee: | Andrea Bolognani <abologna> |
| Status: | CLOSED ERRATA | QA Contact: | gaojianan <jgao> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 8.2 | CC: | hhan, jdenemar, jgao, jsuchane, lmen, mtessun, virt-maint, xuzhang |
| Target Milestone: | rc | Keywords: | Regression |
| Target Release: | 8.2 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-6.0.0-9.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-05-05 09:57:51 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: | |||
| Bug Depends On: | 1808390 | ||
| Bug Blocks: | |||
|
Description
Andrea Bolognani
2020-02-28 12:08:35 UTC
Verified on:
libvirt-6.0.0-9.virtcov.el8.x86_64
Sc1:hot-plug the device to two guests
1.Prepare an iscsi server and login the target in the host
# iscsiadm -m session
tcp: [2] 10.66.85.243:3260,1 iqn.2016-03.com.virttest:logical-pool.target6 (non-flash)
# lsscsi
...
[10:0:0:0] disk LIO-ORG device.logical- 4.0 /dev/sdc
2.Passthrough the disk to two guests
For the 1st :
# cat attach.xml
<hostdev managed="no" mode="subsystem" type="scsi">
<source>
<adapter name="scsi_host10" />
<address bus="0" target="0" unit="0" />
</source>
<shareable/> --------------with shareable
</hostdev>
# virsh attach-device test1 attach.xml
Device attached successfully
For the 2nd with the same xml:
# virsh attach-device avocado-vt-vm1 attach.xml
Device attached successfully
Login the guest ,the disk works well
Sc2:cold-plug the device to two guests:
# virsh attach-device test1 attach.xml --config
Device attached successfully
# virsh attach-device avocado-vt-vm1 attach.xml --config
Device attached successfully
# virsh start test1
Domain test1 started
# virsh start avocado-vt-vm1
Domain avocado-vt-vm1 started
Check the domain xml:
# virsh dumpxml test1 --inactive|grep hostdev -A5
<hostdev mode='subsystem' type='scsi' managed='no'>
<source>
<adapter name='scsi_host10'/>
<address bus='0' target='0' unit='0'/>
</source>
<shareable/>
<hostdev mode='subsystem' type='scsi' managed='no'>
<source>
<adapter name='scsi_host10'/>
<address bus='0' target='0' unit='0'/>
</source>
<shareable/>
--
</hostdev>
Work as expected
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, 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/RHBA-2020:2017 |