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 1402726 - job unexpectedly failed when create memspec snapshot with snapshot_image_format = "raw" in qemu.conf
Summary: job unexpectedly failed when create memspec snapshot with snapshot_image_form...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.4
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: rc
: 7.4
Assignee: Peter Krempa
QA Contact: Han Han
URL:
Whiteboard:
Depends On:
Blocks: 1395265 1401400
TreeView+ depends on / blocked
 
Reported: 2016-12-08 09:26 UTC by Han Han
Modified: 2017-08-01 23:59 UTC (History)
7 users (show)

Fixed In Version: libvirt-3.0.0-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 17:19:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
The log of step3 (4.50 MB, text/plain)
2016-12-08 09:26 UTC, Han Han
no flags Details
The script of reproducing (1.34 KB, application/x-shellscript)
2017-03-15 06:52 UTC, Han Han
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:1846 0 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2017-08-01 18:02:50 UTC

Description Han Han 2016-12-08 09:26:31 UTC
Created attachment 1229401 [details]
The log of step3

Description of problem:
As subject

Version-Release number of selected component (if applicable):
qemu-kvm-rhev-2.6.0-29.el7.x86_64
libvirt-2.5.0-1.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Prepare a running VM
# virsh list 
 Id    Name                           State
----------------------------------------------------
 1     avocado-vt-vm1                 running

2. Set snapshot_image_format = "raw" in /etc/libvirt/qemu.conf. Restart libvirtd.

3. Create memspec snapshot 
# virsh snapshot-create-as avocado-vt-vm1 --live --memspec /var/tmp/avocado_K5CskW/live_memspec-5.img 
error: operation failed: job: unexpectedly failed


Actual results:
As step3


Expected results:
Snapshot created.

Additional info:
The bug is reproduced on libvirt-2.0.0-10.el7

Comment 3 Peter Krempa 2016-12-08 16:16:15 UTC
Fixed upstream:

commit a4ed5b4212bac7907daf296b313583fb14569c56
Author: Peter Krempa <pkrempa>
Date:   Thu Dec 8 11:25:09 2016 +0100

    qemu: Don't try to find compression program for "raw" memory images
    
    There's nothing to compress if the requested snapshot memory format is
    set to 'raw' explicitly. After commit 9e14689ea libvirt would try to
    run /sbin/raw to process the memory stream if the qemu.conf option
    snapshot_image_format is set.
    
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1402726

Comment 5 Han Han 2017-03-15 06:51:22 UTC
Bug is not reproduced on libvirt-3.1.0-2.el7.x86_64:

+ DOM=BZ1402726
+ DISK_PATH=/var/lib/libvirt/images/BZ1402726.qcow2
+ IMG_URL=http://XX.XX.XX.XX/libvirt-CI-resources/RHEL-7.4-x86_64-latest.qcow2
+ prep
+ yum install augeas wget -y -q

+ augtool set /files/etc/libvirt/qemu.conf/snapshot_image_format raw
Saved 1 file(s)
+ systemctl restart libvirtd
+ virt-install --transient --import -n BZ1402726 -r 1024 --disk /var/lib/libvirt/images/BZ1402726.qcow2 --noautoconsole
WARNING  No operating system detected, VM performance may suffer. Specify an OS with --os-variant for optimal results.

Starting install...
Domain creation completed.

+ virsh snapshot-create-as BZ1402726 --live --memspec /tmp/BZ1402726.mem
Domain snapshot 1489560368 created

Comment 6 Han Han 2017-03-15 06:52:03 UTC
Created attachment 1263189 [details]
The script of reproducing

Comment 7 Han Han 2017-04-18 08:47:02 UTC
Verified on libvirt-3.2.0-2.el7.x86_64.
The same result with comment5.
Bug fixed.

Comment 8 errata-xmlrpc 2017-08-01 17:19: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/RHEA-2017:1846

Comment 9 errata-xmlrpc 2017-08-01 23:59:00 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/RHEA-2017:1846


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