Red Hat Bugzilla – Bug 1520824
Migration with dataplane, qemu processor hang, vm hang and migration can't finish
Last modified: 2018-09-07 12:12:38 EDT
Description of problem: This bug is from doing reproduction of https://bugzilla.redhat.com/show_bug.cgi?id=1506151#c7, boot a vm with two scsi disks that with dataplane, after migration, qemu processor hang on src host, vm hang, migration can't finish and "VM status: paused (inmigrate)" on dst host. Version-Release number of selected component (if applicable): x86: 3.10.0-792.el7.x86_64 qemu-kvm-rhev-2.10.0-10.el7.x86_64 seabios-bin-1.11.0-1.el7.noarch How reproducible: 3/3 Steps to Reproduce: 1.Boot a guest on src host, there are two scsi disks that with dataplane: /usr/libexec/qemu-kvm -nodefaults -object iothread,id=iothread0 -device virtio-scsi-pci,bus=pci.0,addr=0x1f,id=scsi0,iothread=iothread0 -drive file=/home/xianwang/rhel75.qcow2,media=disk,if=none,cache=none,id=drive_sysdisk,aio=native,format=qcow2,werror=stop,rerror=stop -device scsi-hd,drive=drive_sysdisk,bus=scsi0.0,id=sysdisk,bootindex=0 -drive file=/home/xianwang/r1.qcow2,if=none,cache=none,id=drive_ddisk_2,aio=native,format=qcow2,werror=stop,rerror=stop -device scsi-hd,drive=drive_ddisk_2,bus=scsi0.0,id=ddisk_2 -monitor stdio -vga std -vnc :1 -m 4096 2.on dst host, boot a guest with the same qemu cli with src, appending -incoming tcp:0:5801 3.on src host, do migration (qemu) migrate -d tcp:10.66.10.208:5801 (qemu) info status VM status: running (qemu) info migrate Migration status: active Actual results: on src, qemu hang and vm hang on dst vnc, the status is "VM status: paused (inmigrate)" on dst host kill the qemu processor of src, there are some messages prompt on dst host on src: (qemu) Killed on dst: (qemu) qemu-kvm: Failed to load virtio_pci/modern_state:modern_state qemu-kvm: Failed to load virtio/extra_state:extra_state qemu-kvm: Failed to load virtio-scsi:virtio qemu-kvm: error while loading state for instance 0x0 of device '0000:00:1f.0/virtio-scsi' qemu-kvm: warning: TSC frequency mismatch between VM (3392293 kHz) and host (3392167 kHz), and TSC scaling unavailable qemu-kvm: load of migration failed: Input/output error Expected results: migration finish and vm work well on dst host Additional info: this issue is both for x86 and ppc on ppc(p8), after killing the qemu processor of src, the error message of dst host is: (qemu) qemu-kvm: Failed to load virtio_pci/modern_state:modern_state qemu-kvm: Failed to load virtio/extra_state:extra_state qemu-kvm: Failed to load virtio-scsi:virtio qemu-kvm: error while loading state for instance 0x0 of device 'pci@800000020000000:1f.0/virtio-scsi' qemu-kvm: load of migration failed: Input/output error
Paolo's patch has been posted upstream: https://lists.nongnu.org/archive/html/qemu-devel/2017-12/msg00964.html
I see you've got a v2 at: https://lists.gnu.org/archive/html/qemu-devel/2017-12/msg01239.html
Fix included in qemu-kvm-rhev-2.10.0-14.el7
Verified against the following version of qemu-kvm-rhev: qemu-kvm-rhev-2.10.0-14.el7 Src host and Des host are both with: Kernel: 3.10.0-823.el7.x86_64 seabios: seabios-bin-1.11.0-1.el7.noarch Verify steps: the same with this bug reported Actual results: Migration succeeds, and VM works well on destination side after migration So this bug is fixed.
*** Bug 1542305 has been marked as a duplicate of this bug. ***
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-2018:1104