Bug 1666605
Summary: | libvirtd crash when hotplug 'block' type 'lun' device disk without 'sgio' setting to guest | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | yafu <yafu> | |
Component: | libvirt | Assignee: | John Ferlan <jferlan> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | yisun | |
Severity: | unspecified | Docs Contact: | ||
Priority: | high | |||
Version: | 8.0 | CC: | dyuan, dzheng, hhan, jdenemar, lcheng, rbalakri, xuzhang, yalzhang, yisun | |
Target Milestone: | rc | Keywords: | Automation, Regression | |
Target Release: | 8.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | libvirt-4.5.0-19.el8 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1669581 (view as bug list) | Environment: | ||
Last Closed: | 2019-06-14 01:01:49 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: | ||||
Bug Blocks: | 1669581 |
Description
yafu
2019-01-16 07:56:25 UTC
Verified with: libvirt-4.5.0-20.module+el8+2724+8292f19c.x86_64 qemu-kvm-2.12.0-60.module+el8+2725+0ab65287.x86_64 And PASSED 1. no sgio setting [root@hp-dl380g9-02 ~]# lsscsi [0:0:0:0] storage HP P440ar 2.14 - [0:1:0:0] disk HP LOGICAL VOLUME 2.14 /dev/sda [1:0:0:0] disk LIO-ORG device.emulated 4.0 /dev/sdb [2:0:0:0] disk LIO-ORG device.logical- 4.0 /dev/sdc [root@hp-dl380g9-02 ~]# cat disk <disk device="lun" type="block"> <source dev="/dev/sdc"/> <driver name="qemu" type="raw"/> <target bus="scsi" dev="sdb"/> </disk> [root@hp-dl380g9-02 ~]# virsh attach-device avocado-vt-vm1 disk Device attached successfully [root@hp-dl380g9-02 ~]# cat /sys/dev/block/*/device/unpriv_sgio 0 0 0 [root@hp-dl380g9-02 ~]# virsh domblklist avocado-vt-vm1 setlocale: No such file or directory Target Source ------------------------------------------------ vda /var/lib/avocado/data/avocado-vt/images/jeos-27-x86_64.qcow2 sdb /dev/sdc [root@hp-dl380g9-02 ~]# virsh detach-device avocado-vt-vm1 disk Device detached successfully 2. sgio=unfiltered [root@hp-dl380g9-02 ~]# cat disk_unfiltered <disk device="lun" type="block" sgio="unfiltered"> <source dev="/dev/sdc"/> <driver name="qemu" type="raw"/> <target bus="scsi" dev="sdb"/> </disk> [root@hp-dl380g9-02 ~]# virsh attach-device avocado-vt-vm1 disk_unfiltered Device attached successfully [root@hp-dl380g9-02 ~]# cat /sys/dev/block/*/device/unpriv_sgio 0 0 1 [root@hp-dl380g9-02 ~]# virsh domblklist avocado-vt-vm1 Target Source ------------------------------------------------ vda /var/lib/avocado/data/avocado-vt/images/jeos-27-x86_64.qcow2 sdb /dev/sdc [root@hp-dl380g9-02 ~]# virsh detach-device avocado-vt-vm1 disk_unfiltered Device detached successfully 3. sgio=filtered [root@hp-dl380g9-02 ~]# cat disk_filtered <disk device="lun" type="block" sgio="filtered"> <source dev="/dev/sdc"/> <driver name="qemu" type="raw"/> <target bus="scsi" dev="sdb"/> </disk> [root@hp-dl380g9-02 ~]# virsh attach-device avocado-vt-vm1 disk_filtered Device attached successfully [root@hp-dl380g9-02 ~]# cat /sys/dev/block/*/device/unpriv_sgio 0 0 0 [root@hp-dl380g9-02 ~]# virsh domblklist avocado-vt-vm1 Target Source ------------------------------------------------ vda /var/lib/avocado/data/avocado-vt/images/jeos-27-x86_64.qcow2 sdb /dev/sdc [root@hp-dl380g9-02 ~]# virsh detach-device avocado-vt-vm1 disk_filtered Device detached successfully |