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 2106265 - Destination QEMU got stuck processing query-status when parallel+native_tls+zerocopy migration failed
Summary: Destination QEMU got stuck processing query-status when parallel+native_tls+z...
Keywords:
Status: CLOSED DUPLICATE of bug 2107466
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: qemu-kvm
Version: 9.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: Li Xiaohui
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-12 08:59 UTC by Fangge Jin
Modified: 2022-08-29 11:30 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-29 11:29:00 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
virtqemud log and gstack output (182.68 KB, application/x-bzip)
2022-07-12 08:59 UTC, Fangge Jin
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-127467 0 None None None 2022-07-12 09:03:49 UTC

Description Fangge Jin 2022-07-12 08:59:54 UTC
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:

Comment 2 Fangge Jin 2022-08-15 04:54:31 UTC
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

Comment 3 Fangge Jin 2022-08-15 04:55:03 UTC
(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

# virsh migrate uefi qemu+tls://***/system --live --postcopy --bandwidth 10 --auto-converge --p2p --zerocopy --parallel --tls
error: operation failed: job 'migration out' failed: Requested Zero Copy feature is not available: Invalid argument

Comment 4 Fangge Jin 2022-08-15 05:04:55 UTC
(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%

Comment 5 Jiri Denemark 2022-08-26 11:46:45 UTC
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?

Comment 6 Fangge Jin 2022-08-26 22:46:54 UTC
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.

Comment 7 Li Xiaohui 2022-08-29 11:29:00 UTC
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 ***


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