RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1808399 - [RHEL-8.2 libvirt] can't start two guests with passthrough of an iscsi lun with "shareable" element
Summary: [RHEL-8.2 libvirt] can't start two guests with passthrough of an iscsi lun wi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: libvirt
Version: 8.2
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 8.2
Assignee: Andrea Bolognani
QA Contact: gaojianan
URL:
Whiteboard:
Depends On: 1808388
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-28 12:06 UTC by Andrea Bolognani
Modified: 2021-09-03 15:11 UTC (History)
8 users (show)

Fixed In Version: libvirt-4.5.0-42.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-28 15:33:47 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-38494 0 None None None 2021-09-03 15:11:06 UTC
Red Hat Product Errata RHEA-2020:1587 0 None None None 2020-04-28 15:34:00 UTC

Description Andrea Bolognani 2020-02-28 12:06:40 UTC
This bug was initially created as a copy of Bug #1801139

I am copying this bug because: 

  The bug has been addressed in RHEL 7.8 with downstream-only patch

    libvirt-RHEL-qemuCheckUnprivSGIO-use-sysfs_path-to-get-unpriv_sgio.patch

  but this patch is absent from RHEL 8.2, which means someone
  moving from the former to the latter will see a regression.

Description of problem:
As subject

Version-Release number of selected component (if applicable):
libvirt-4.5.0-32.virtcov.el7.x86_64
qemu-kvm-rhev-2.12.0-44.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Prepare an iscsi server and login the target in the host
# iscsiadm -m session
tcp: [1] 10.66.85.243:3260,1 iqn.2015-01.com.fred:444 (non-flash)
tcp: [2] 10.66.85.243:3260,1 iqn.2016-03.com.virttest:logical-pool.target6 (non-flash)

# lsscsi
...
[5: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_host5" />
<address bus="0" target="0" unit="0" />
</source>
<shareable/>             --------------with shareable
</hostdev>

# virsh attach-device vm2 attach.xml                                                                                                                                                                         
Device attached successfully

For the 2nd with the same xml:
# virsh attach-device avocado-vt-vm1 attach.xml
error: Failed to attach device from attach.xml
error: Failed to read file '/dev/sdc': Value too large for defined data type

3.In the 2nd guest,you can also hit the issue by:
# virsh attach-device avocado-vt-vm1 attach.xml --config
Device attached successfully

# virsh start avocado-vt-vm1
error: Failed to start domain avocado-vt-vm1
error: Failed to read file '/dev/sdc': Value too large for defined data type

Actual results:
As step 2 and 3

Expected results:
The 2nd guest should be started without error

Additional info:

Comment 11 gaojianan 2020-03-17 11:36:05 UTC
Sc1:hot-plug the device to two guests
1.Prepare an iscsi server and login the target in the host
# iscsiadm -m session
tcp: [85] 10.66.36.15:3260,1 iqn.2020-03.com.virttest:emulated-iscsi.target (non-flash)

# lsscsi
[0:0:0:0]    disk    ATA      MM0500GBKAK      HPGE  /dev/sda 
[4:0:0:0]    cd/dvd  hp       DVD RAM UJ8C2    SC02  /dev/sr0 
[6:0:0:0]    disk    LIO-ORG  device.emulated  4.0   /dev/sdb 


2.Passthrough the disk to two guests
For the 1st :
# cat attach.xml 
<hostdev managed="no" mode="subsystem" type="scsi">
<source>
<adapter name="scsi_host6" />
<address bus="0" target="0" unit="0" />
</source>
<shareable/>             --------------with shareable
</hostdev>

# virsh attach-device vm2 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 avocado-vt-vm1 attach.xml --config 
Device attached successfully

# virsh attach-device vm2 attach.xml --config 
Device attached successfully

# virsh start vm2
Domain vm2 started

# virsh start avocado-vt-vm1 
Domain avocado-vt-vm1 started

and then detach the device and attach again,
# virsh detach-device vm2 attach.xml 
Device detached successfully

# virsh attach-device vm2 attach.xml 
Device attached successfully

Work as expected

Comment 13 errata-xmlrpc 2020-04-28 15:33:47 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, 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/RHEA-2020:1587


Note You need to log in before you can comment on or make changes to this bug.