Bug 1402726
Summary: | job unexpectedly failed when create memspec snapshot with snapshot_image_format = "raw" in qemu.conf | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Han Han <hhan> | ||||||
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Han Han <hhan> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | 7.4 | CC: | dyuan, hliu, jdenemar, mtessun, pkrempa, rbalakri, xuzhang | ||||||
Target Milestone: | rc | Keywords: | Regression | ||||||
Target Release: | 7.4 | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | libvirt-3.0.0-1.el7 | Doc Type: | If docs needed, set a value | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2017-08-01 17:19:14 UTC | Type: | Bug | ||||||
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: | |||||||||
Bug Blocks: | 1395265, 1401400 | ||||||||
Attachments: |
|
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 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 Created attachment 1263189 [details]
The script of reproducing
Verified on libvirt-3.2.0-2.el7.x86_64. The same result with comment5. Bug fixed. 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 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