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.

Bug 1392030

Summary: virsh save doesn't work after postcopy migration
Product: Red Hat Enterprise Linux 7 Reporter: Marcel Kolaja <mkolaja>
Component: libvirtAssignee: Jiri Denemark <jdenemar>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: high    
Version: 7.3CC: dgilbert, dyuan, fjin, jdenemar, jsuchane, lmanasko, michal.skrivanek, mzamazal, rbalakri, sherold, snagar, xuzhang, zpeng
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libvirt-2.0.0-10.el7_3.1 Doc Type: Bug Fix
Doc Text:
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.
Story Points: ---
Clone Of: 1374718 Environment:
Last Closed: 2016-12-06 17:11:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1374718    
Bug Blocks:    

Description Marcel Kolaja 2016-11-04 15:40:57 UTC
This bug has been copied from bug #1374718 and has been proposed
to be backported to 7.3 z-stream (EUS).

Comment 6 zhe peng 2016-11-09 06:59:12 UTC
can reproduce this issue.
build :
libvirt-2.0.0-9.el7.x86_64
qemu-kvm-rhev-2.6.0-26.el7.x86_64

verify with build:
libvirt-2.0.0-10.el7_3.1.x86_64
qemu-img-rhev-2.6.0-27.el7.x86_64

step:
A:
1 start a guest on source 
2 on source host do
# virsh migrate rhel7 qemu+ssh://$target/system --postcopy --live --verbose
Migration: [100 %]
3 on target host
# virsh save rhel7 /tmp/rhel7

Domain rhel7 saved to /tmp/rhel7

B:
1.on source host do
 #virsh migrate rhel7 qemu+ssh://$target/system --postcopy --postcopy-after-precopy --live --verbose
Migration: [100 %]
2 on target host
# virsh save rhel7 /tmp/rhel7

Domain rhel7 saved to /tmp/rhel7

# virsh restore /tmp/rhel7
Domain restored from /tmp/rhel7
# virsh list --all
 Id    Name                           State
----------------------------------------------------
 3     rhel7                          running
C:
1. on source host do 
# virsh migrate rhel7 qemu+ssh://$target/system --postcopy --live --verbose
open another console, run
# virsh migrate-postcopy rhel7
2. on target host
# virsh save rhel7 /tmp/rhel7

Domain rhel7 saved to /tmp/rhel7

move to verified.

Comment 8 errata-xmlrpc 2016-12-06 17:11:29 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://rhn.redhat.com/errata/RHBA-2016-2885.html