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 1669581 - libvirtd crash when hotplug 'block' type 'lun' device disk without 'sgio' setting to guest
Summary: libvirtd crash when hotplug 'block' type 'lun' device disk without 'sgio' set...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.7
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: ---
Assignee: John Ferlan
QA Contact: yisun
URL:
Whiteboard:
Depends On: 1666605
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-25 17:29 UTC by John Ferlan
Modified: 2019-08-06 13:14 UTC (History)
3 users (show)

Fixed In Version: libvirt-4.5.0-11.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1666605
Environment:
Last Closed: 2019-08-06 13:14:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:2294 0 None None None 2019-08-06 13:14:52 UTC

Comment 3 John Ferlan 2019-01-25 17:31:21 UTC
I have a patch ready...

Comment 7 yisun 2019-04-26 03:36:33 UTC
Test with libvirt-4.5.0-15.virtcov.el7.x86_64 And PASSED

1. no sgio setting
[root@dell-per740-08 device]# lsscsi
[0:2:0:0]    disk    DELL     PERC H730P Adp   4.29  /dev/sda
[76:0:0:0]   disk    LIO-ORG  device.logical-  4.0   /dev/sdb


[root@dell-per740-08 ~]# cat disk
<disk device="lun" type="block">
    <source dev="/dev/sdb"/>
    <driver name="qemu" type="raw"/>
    <target bus="scsi" dev="sdb"/>
</disk>


[root@dell-per740-08 ~]# virsh start avocado-vt-vm1
Domain avocado-vt-vm1 started

[root@dell-per740-08 ~]# virsh attach-device avocado-vt-vm1 disk
Device attached successfully

[root@dell-per740-08 ~]# cat /sys/dev/block/*/device/unpriv_sgio
0
0

[root@dell-per740-08 ~]# virsh domblklist avocado-vt-vm1
Target     Source
------------------------------------------------
vda        /var/lib/avocado/data/avocado-vt/images/jeos-27-x86_64.qcow2
sdb        /dev/sdb




[root@dell-per740-08 ~]# virsh detach-device avocado-vt-vm1 disk
Device detached successfully



2. sgio=unfiltered
[root@dell-per740-08 ~]# cat disk
<disk device="lun" type="block" sgio="unfiltered">
    <source dev="/dev/sdb"/>
    <driver name="qemu" type="raw"/>
    <target bus="scsi" dev="sdb"/>
</disk>


[root@dell-per740-08 ~]# virsh attach-device avocado-vt-vm1 disk
Device attached successfully

[root@dell-per740-08 ~]# cat /sys/dev/block/*/device/unpriv_sgio
0
1

[root@dell-per740-08 ~]# virsh domblklist avocado-vt-vm1
Target     Source
------------------------------------------------
vda        /var/lib/avocado/data/avocado-vt/images/jeos-27-x86_64.qcow2
sdb        /dev/sdb


[root@dell-per740-08 ~]# virsh detach-device avocado-vt-vm1 disk
Device detached successfully

3. sgio=filtered
[root@dell-per740-08 ~]# cat disk
<disk device="lun" type="block" sgio="filtered">
    <source dev="/dev/sdb"/>
    <driver name="qemu" type="raw"/>
    <target bus="scsi" dev="sdb"/>
</disk>

[root@dell-per740-08 ~]# virsh attach-device avocado-vt-vm1 disk
Device attached successfully

[root@dell-per740-08 ~]# cat /sys/dev/block/*/device/unpriv_sgio
0
0

[root@dell-per740-08 ~]# virsh domblklist avocado-vt-vm1
Target     Source
------------------------------------------------
vda        /var/lib/avocado/data/avocado-vt/images/jeos-27-x86_64.qcow2
sdb        /dev/sdb

[root@dell-per740-08 ~]# virsh detach-device avocado-vt-vm1 disk
Device detached successfully

Comment 9 errata-xmlrpc 2019-08-06 13:14:35 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/RHSA-2019:2294


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