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.
Previously, the libvirt library did not disable post-copy on the destination when a migration completed. As a consequence, it was not possible to save such a domain on a disk. With this update, libvirt properly disables post-copy after the migration finishes. As a result, subsequent migration does not use post-copy unless it is requested, and saving the domain to a disk succeeds.
Created attachment 1199461[details]
libvirtd.log.xz
Description of problem:
When `virsh migrate' is called with --postcopy, `virsh save' doesn't work after the migration.
Version-Release number of selected component (if applicable):
libvirt-2.0.0-8.el7.x86_64
qemu-kvm-rhev-2.6.0-23.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
Create and migrate a VM and the source host using virsh:
# cat /var/tmp/dummy.xml
<domain type='kvm'>
<name>dummy</name>
<uuid>4f836db9-e87f-425b-9278-5693be04a978</uuid>
<memory unit='KiB'>1048576</memory>
<os>
<type arch="x86_64" machine="pc-i440fx-rhel7.2.0">hvm</type>
</os>
</domain>
# virsh create /var/tmp/dummy.xml
Domain dummy created from /var/tmp/dummy.xml
# virsh migrate dummy qemu+tcp://root@DESTINATION-HOST/system --verbose --live --postcopy
Migration: [100 %]
Then try to save the VM on the destination host:
# virsh list
Id Name State
----------------------------------------------------
1 dummy running
# virsh save dummy /tmp/xxx
error: Failed to save domain dummy to /tmp/xxx
error: operation failed: domain save job: unexpectedly failed
Actual results:
`virsh save' command fails.
Expected results:
`virsh save' command succeeds, e.g.:
# virsh save dummy /tmp/xxx
Domain dummy saved to /tmp/xxx
Additional info:
libvirtd.log from the destination host is attached.
Saving the VM works when it is migrated without --postcopy switch.
Fixed upstream by
commit fe1dd39087ae9a49888bc72dee38ff0e6f639693
Refs: v2.4.0-4-gfe1dd39
Author: Jiri Denemark <jdenemar>
AuthorDate: Wed Nov 2 14:20:42 2016 +0100
Commit: Jiri Denemark <jdenemar>
CommitDate: Wed Nov 2 15:50:44 2016 +0100
qemu: Reset post-copy capability after migration
Unlike other migration capabilities, post-copy is also set on the
destination host which means it doesn't disappear once domain is
migrated. As a result of that other functionality which internally uses
migration to a file (virDomainManagedSave, virDomainSave,
virDomainCoreDump) may fail after migration because the post-copy
capability is still set.
https://bugzilla.redhat.com/show_bug.cgi?id=1374718
Signed-off-by: Jiri Denemark <jdenemar>
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/RHEA-2017:1846
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/RHEA-2017:1846
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/RHEA-2017:1846
Created attachment 1199461 [details] libvirtd.log.xz Description of problem: When `virsh migrate' is called with --postcopy, `virsh save' doesn't work after the migration. Version-Release number of selected component (if applicable): libvirt-2.0.0-8.el7.x86_64 qemu-kvm-rhev-2.6.0-23.el7.x86_64 How reproducible: 100% Steps to Reproduce: Create and migrate a VM and the source host using virsh: # cat /var/tmp/dummy.xml <domain type='kvm'> <name>dummy</name> <uuid>4f836db9-e87f-425b-9278-5693be04a978</uuid> <memory unit='KiB'>1048576</memory> <os> <type arch="x86_64" machine="pc-i440fx-rhel7.2.0">hvm</type> </os> </domain> # virsh create /var/tmp/dummy.xml Domain dummy created from /var/tmp/dummy.xml # virsh migrate dummy qemu+tcp://root@DESTINATION-HOST/system --verbose --live --postcopy Migration: [100 %] Then try to save the VM on the destination host: # virsh list Id Name State ---------------------------------------------------- 1 dummy running # virsh save dummy /tmp/xxx error: Failed to save domain dummy to /tmp/xxx error: operation failed: domain save job: unexpectedly failed Actual results: `virsh save' command fails. Expected results: `virsh save' command succeeds, e.g.: # virsh save dummy /tmp/xxx Domain dummy saved to /tmp/xxx Additional info: libvirtd.log from the destination host is attached. Saving the VM works when it is migrated without --postcopy switch.