Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Created attachment 1896286[details]
virtqemud log and gstack output
Description of problem:
Do live migration with parallel+native_tls+zerocopy enabled, migration failed as expected. But virtqemud got stuck in Finish phase.
Version-Release number of selected component (if applicable):
libvirt-8.5.0-1.el9.x86_64
qemu-kvm-7.0.0-8.el9.x86_64
How reproducible:
100%
Steps to Reproduce:
1. Start a vm
2. Do migration with parallel+native_tls+zerocopy enabled
# virsh migrate uefi qemu+tcp://******/system --live --postcopy --bandwidth 10 --auto-converge --p2p --zerocopy --parallel --tls
3. Check migration job info:
# virsh domjobinfo uefi
Job type: Failed
Operation: Outgoing migration
Actual results:
As step3, migration failed as expected, but virsh command didn't return because virtqemud got stuck in Finish phase(shown by gstack `pidof virtqemud`)
Expected results:
Migration failed, and virtqemud didn't get stuck
Additional info:
(In reply to Fangge Jin from comment #2)
> This issue can't be reproduced with latest versions:
> libvirt-8.5.0-5.el9.x86_64
> qemu-kvm-7.0.0-10.el9.x86_64
Sorry, I can still reproduce this issue with the above version.
It is just that the reproduce rate is not 100%
Unfortunately I wasn't able to reproduce this issue, it always works as
expected (i.e., I get the "Requested Zero Copy feature is not available:
Invalid argument" error message).
Anyway, the provided logs show that virtqemud is waiting in Finish phase for
query-status QMP command to return. In other words, it looks like QEMU itself
gets stuck processing the command and thus libvirt will never stop waiting for
the reply. I'm moving this to QEMU for further investigation.
But could you please capture the stack of the destination QEMU process if you
can reproduce?
I also can't reproduce it with:
libvirt-8.5.0-5.el9.x86_64
qemu-kvm-7.0.0-11.el9.x86_64
Then I downgrade qemu-kvm to 7.0.0-10.el9.x86_64, it is reproduced.
So it seems that it has been fixed.
Reproduce this bug when migrate with zerocopy + multifd + postcopy enable, without postcopy enabled, won't reproduce this issue.
I would mark this bug duplicated with Bug 2107466 since it fixes this bug.
*** This bug has been marked as a duplicate of bug 2107466 ***
Created attachment 1896286 [details] virtqemud log and gstack output Description of problem: Do live migration with parallel+native_tls+zerocopy enabled, migration failed as expected. But virtqemud got stuck in Finish phase. Version-Release number of selected component (if applicable): libvirt-8.5.0-1.el9.x86_64 qemu-kvm-7.0.0-8.el9.x86_64 How reproducible: 100% Steps to Reproduce: 1. Start a vm 2. Do migration with parallel+native_tls+zerocopy enabled # virsh migrate uefi qemu+tcp://******/system --live --postcopy --bandwidth 10 --auto-converge --p2p --zerocopy --parallel --tls 3. Check migration job info: # virsh domjobinfo uefi Job type: Failed Operation: Outgoing migration Actual results: As step3, migration failed as expected, but virsh command didn't return because virtqemud got stuck in Finish phase(shown by gstack `pidof virtqemud`) Expected results: Migration failed, and virtqemud didn't get stuck Additional info: