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 1520824 - Migration with dataplane, qemu processor hang, vm hang and migration can't finish
Summary: Migration with dataplane, qemu processor hang, vm hang and migration can't fi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev
Version: 7.5
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Dr. David Alan Gilbert
QA Contact: xianwang
URL:
Whiteboard:
: 1542305 (view as bug list)
Depends On:
Blocks: 1477664 1544738
TreeView+ depends on / blocked
 
Reported: 2017-12-05 09:16 UTC by xianwang
Modified: 2022-03-13 14:35 UTC (History)
21 users (show)

Fixed In Version: qemu-kvm-rhev-2.10.0-14.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1544738 (view as bug list)
Environment:
Last Closed: 2018-04-11 00:52:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 3350241 0 None None None 2018-02-12 00:42:10 UTC
Red Hat Product Errata RHSA-2018:1104 0 None None None 2018-04-11 00:54:28 UTC

Description xianwang 2017-12-05 09:16:11 UTC
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

Comment 2 Stefan Hajnoczi 2017-12-06 18:02:10 UTC
Paolo's patch has been posted upstream:
https://lists.nongnu.org/archive/html/qemu-devel/2017-12/msg00964.html

Comment 3 Dr. David Alan Gilbert 2017-12-13 11:31:04 UTC
I see you've got a v2 at:
https://lists.gnu.org/archive/html/qemu-devel/2017-12/msg01239.html

Comment 6 Miroslav Rezanina 2018-01-02 14:19:53 UTC
Fix included in qemu-kvm-rhev-2.10.0-14.el7

Comment 8 yilzhang 2018-01-03 07:24:47 UTC
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.

Comment 12 Germano Veit Michel 2018-02-12 00:06:52 UTC
*** Bug 1542305 has been marked as a duplicate of this bug. ***

Comment 18 errata-xmlrpc 2018-04-11 00:52:14 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-2018:1104


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