Bug 1353141
Summary: | [Q35] disk disk didn't be found when hot-plug to the downstream port | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | jingzhao <jinzhao> |
Component: | qemu-kvm-rhev | Assignee: | Marcel Apfelbaum <marcel> |
Status: | CLOSED DUPLICATE | QA Contact: | jingzhao <jinzhao> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 7.3 | CC: | chayang, juzhang, knoel, virt-maint, yduan, yiwei |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-08-08 13:16:25 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: |
Description
jingzhao
2016-07-06 08:42:56 UTC
Virtio scsi also hit the issue 1. In qmp {"execute":"device_add","arguments":{"driver":"virtio-scsi-pci","id":"scsi3","bus":"downstream3","disable-legacy":true,"disable-modern":false}} {"return": {}} {"execute":"__com.redhat_drive_add", "arguments": {"file":"/home/block2.raw","format":"raw","id":"drive_datadisk3"}} {"return": {}} {"execute":"device_add","arguments":{"driver":"scsi-hd","drive":"drive_datadisk3","id":"device_datadisk3","bus":"scsi3.0"}} {"return": {}} 2. In hmp: (qemu) info block drive-virtio-disk0 (#block103): /home/q35.qcow2 (qcow2) Cache mode: writeback, direct satadisk0 (#block330): /home/satadisk0 (raw) Cache mode: writeback drive_datadisk0 (#block543): /home/block1.qcow2 (qcow2) Cache mode: writeback drive_datadisk1 (#block704): /home/block4.qcow2 (qcow2) Cache mode: writeback drive_datadisk3 (#block925): /home/block2.raw (raw) Cache mode: writeback 3. In guest, disk didn't found [root@localhost ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1G 0 disk sdb 8:16 0 5G 0 disk vda 252:0 0 30G 0 disk ├─vda1 252:1 0 1G 0 part /boot └─vda2 252:2 0 29G 0 part ├─rhel-root 253:0 0 26G 0 lvm / └─rhel-swap 253:1 0 3G 0 lvm [SWAP] (In reply to jingzhao from comment #2) > Virtio scsi also hit the issue > > 1. In qmp > > {"execute":"device_add","arguments":{"driver":"virtio-scsi-pci","id":"scsi3", > "bus":"downstream3","disable-legacy":true,"disable-modern":false}} > {"return": {}} > {"execute":"__com.redhat_drive_add", "arguments": > {"file":"/home/block2.raw","format":"raw","id":"drive_datadisk3"}} > {"return": {}} > {"execute":"device_add","arguments":{"driver":"scsi-hd","drive": > "drive_datadisk3","id":"device_datadisk3","bus":"scsi3.0"}} > {"return": {}} > > 2. In hmp: > > (qemu) info block > drive-virtio-disk0 (#block103): /home/q35.qcow2 (qcow2) > Cache mode: writeback, direct > > satadisk0 (#block330): /home/satadisk0 (raw) > Cache mode: writeback > > drive_datadisk0 (#block543): /home/block1.qcow2 (qcow2) > Cache mode: writeback > > drive_datadisk1 (#block704): /home/block4.qcow2 (qcow2) > Cache mode: writeback > > drive_datadisk3 (#block925): /home/block2.raw (raw) > Cache mode: writeback > > 3. In guest, disk didn't found > > [root@localhost ~]# lsblk > NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT > sda 8:0 0 1G 0 disk > sdb 8:16 0 5G 0 disk > vda 252:0 0 30G 0 disk > ├─vda1 252:1 0 1G 0 part /boot > └─vda2 252:2 0 29G 0 part > ├─rhel-root 253:0 0 26G 0 lvm / > └─rhel-swap 253:1 0 3G 0 lvm [SWAP] Following is the qemu command: /usr/libexec/qemu-kvm \ -M q35 \ -cpu SandyBridge \ -nodefaults -rtc base=utc \ -m 4G \ -smp 2,sockets=2,cores=1,threads=1 \ -enable-kvm \ -name rhel7.3 \ -uuid 990ea161-6b67-47b2-b803-19fb01d30d12 \ -smbios type=1,manufacturer='Red Hat',product='RHEV Hypervisor',version=el6,serial=koTUXQrb,uuid=feebc8fd-f8b0-4e75-abc3-e63fcdb67170 \ -k en-us \ -serial unix:/tmp/serial0,server,nowait \ -boot menu=on \ -bios /usr/share/seabios/bios.bin \ -chardev file,path=/home/seabios.log,id=seabios \ -device isa-debugcon,chardev=seabios,iobase=0x402 \ -qmp tcp::8887,server,nowait \ -vga qxl \ -spice port=5932,disable-ticketing \ -device ioh3420,id=root.0,slot=1 \ -drive file=/home/q35.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=none,werror=stop,rerror=stop \ -device virtio-blk-pci,bus=root.0,drive=drive-virtio-disk0,id=virtio-disk0,disable-legacy=on,disable-modern=off,bootindex=1 \ -device ahci,id=ahci0 \ -drive file=/home/satadisk0,if=none,id=satadisk0,format=raw \ -device ide-drive,bus=ahci0.0,drive=satadisk0,id=stata0 \ -device ioh3420,id=root.1,slot=2 \ -device x3130-upstream,bus=root.1,id=upstream1 \ -device xio3130-downstream,bus=upstream1,id=downstream1,chassis=1 \ -device x3130-upstream,bus=downstream1,id=upstream1.1 \ -device xio3130-downstream,bus=upstream1.1,id=downstream1.1,chassis=2 \ -device xio3130-downstream,bus=upstream1,id=downstream2,chassis=3 \ -device x3130-upstream,bus=downstream2,id=upstream1.2 \ -device xio3130-downstream,bus=upstream1.2,id=downstream1.2,chassis=4 \ -device xio3130-downstream,bus=upstream1,id=downstream3,chassis=5 \ -device x3130-upstream,bus=downstream3,id=upstream1.3 \ -device xio3130-downstream,bus=upstream1.3,id=downstream1.3,chassis=6 \ -device x3130-upstream,bus=downstream1.3,id=upstream1.3.1 \ -device xio3130-downstream,bus=upstream1.3.1,id=downstream1.3.1,chassis=7 \ -device virtio-net-pci,bus=downstream1.2,netdev=tap10,mac=9a:6a:6b:6c:6d:6e,disable-legacy=on,disable-modern=off -netdev tap,id=tap10 \ -device ioh3420,id=root.2,slot=3 \ -device ioh3420,id=root.3,slot=4 \ -device x3130-upstream,bus=root.3,id=upstream2 \ -device xio3130-downstream,bus=upstream2,id=downstream4,chassis=8 \ -monitor stdio \ (In reply to jingzhao from comment #3) > (In reply to jingzhao from comment #2) > > Virtio scsi also hit the issue > > > > 1. In qmp > > Modified the cmd {"execute":"device_add","arguments":{"driver":"virtio-scsi-pci","id":"scsi3","bus":"downstream4","disable-legacy":true,"disable-modern":false}} {"return": {}} {"execute":"__com.redhat_drive_add", "arguments": {"file":"/home/block2.raw","format":"raw","id":"drive_datadisk3"}} {"return": {}} {"execute":"device_add","arguments":{"driver":"scsi-hd","drive":"drive_datadisk3","id":"device_datadisk3","bus":"scsi3.0"}} {"return": {}} > > > > 2. In hmp: > > > > (qemu) info block > > drive-virtio-disk0 (#block103): /home/q35.qcow2 (qcow2) > > Cache mode: writeback, direct > > > > satadisk0 (#block330): /home/satadisk0 (raw) > > Cache mode: writeback > > > > drive_datadisk0 (#block543): /home/block1.qcow2 (qcow2) > > Cache mode: writeback > > > > drive_datadisk1 (#block704): /home/block4.qcow2 (qcow2) > > Cache mode: writeback > > > > drive_datadisk3 (#block925): /home/block2.raw (raw) > > Cache mode: writeback > > > > 3. In guest, disk didn't found > > > > [root@localhost ~]# lsblk > > NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT > > sda 8:0 0 1G 0 disk > > sdb 8:16 0 5G 0 disk > > vda 252:0 0 30G 0 disk > > ├─vda1 252:1 0 1G 0 part /boot > > └─vda2 252:2 0 29G 0 part > > ├─rhel-root 253:0 0 26G 0 lvm / > > └─rhel-swap 253:1 0 3G 0 lvm [SWAP] > > Following is the qemu command: > /usr/libexec/qemu-kvm \ > -M q35 \ > -cpu SandyBridge \ > -nodefaults -rtc base=utc \ > -m 4G \ > -smp 2,sockets=2,cores=1,threads=1 \ > -enable-kvm \ > -name rhel7.3 \ > -uuid 990ea161-6b67-47b2-b803-19fb01d30d12 \ > -smbios type=1,manufacturer='Red Hat',product='RHEV > Hypervisor',version=el6,serial=koTUXQrb,uuid=feebc8fd-f8b0-4e75-abc3- > e63fcdb67170 \ > -k en-us \ > -serial unix:/tmp/serial0,server,nowait \ > -boot menu=on \ > -bios /usr/share/seabios/bios.bin \ > -chardev file,path=/home/seabios.log,id=seabios \ > -device isa-debugcon,chardev=seabios,iobase=0x402 \ > -qmp tcp::8887,server,nowait \ > -vga qxl \ > -spice port=5932,disable-ticketing \ > -device ioh3420,id=root.0,slot=1 \ > -drive > file=/home/q35.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=none, > werror=stop,rerror=stop \ > -device > virtio-blk-pci,bus=root.0,drive=drive-virtio-disk0,id=virtio-disk0,disable- > legacy=on,disable-modern=off,bootindex=1 \ > -device ahci,id=ahci0 \ > -drive file=/home/satadisk0,if=none,id=satadisk0,format=raw \ > -device ide-drive,bus=ahci0.0,drive=satadisk0,id=stata0 \ > -device ioh3420,id=root.1,slot=2 \ > -device x3130-upstream,bus=root.1,id=upstream1 \ > -device xio3130-downstream,bus=upstream1,id=downstream1,chassis=1 \ > -device x3130-upstream,bus=downstream1,id=upstream1.1 \ > -device xio3130-downstream,bus=upstream1.1,id=downstream1.1,chassis=2 \ > -device xio3130-downstream,bus=upstream1,id=downstream2,chassis=3 \ > -device x3130-upstream,bus=downstream2,id=upstream1.2 \ > -device xio3130-downstream,bus=upstream1.2,id=downstream1.2,chassis=4 \ > -device xio3130-downstream,bus=upstream1,id=downstream3,chassis=5 \ > -device x3130-upstream,bus=downstream3,id=upstream1.3 \ > -device xio3130-downstream,bus=upstream1.3,id=downstream1.3,chassis=6 \ > -device x3130-upstream,bus=downstream1.3,id=upstream1.3.1 \ > -device xio3130-downstream,bus=upstream1.3.1,id=downstream1.3.1,chassis=7 \ > -device > virtio-net-pci,bus=downstream1.2,netdev=tap10,mac=9a:6a:6b:6c:6d:6e,disable- > legacy=on,disable-modern=off -netdev tap,id=tap10 \ > -device ioh3420,id=root.2,slot=3 \ > -device ioh3420,id=root.3,slot=4 \ > -device x3130-upstream,bus=root.3,id=upstream2 \ > -device xio3130-downstream,bus=upstream2,id=downstream4,chassis=8 \ > -monitor stdio \ Hi, Please see BZ 1352808, comment #3. While the symptom is different, the root cause is the same. The guest OS tries to deal with pci resource re-balancing and fails. Maybe it worth opening a BZ for the pci guys from linux kernel team explaining how PCI resource re-balancing fails fails for the above scenario. *** This bug has been marked as a duplicate of bug 1352808 *** |