Bug 1300209
Summary: | Cannot take external snapshot any more after active committing & pivoting | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Yang Yang <yanyang> | ||||
Component: | qemu | Assignee: | Fedora Virtualization Maintainers <virt-maint> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 24 | CC: | amit.shah, berrange, cfergeau, crobinso, dwmw2, dyuan, hhan, himbeere, hreitz, itamar, jcody, juzhang, kwolf, mzhan, pbonzini, rjones, stefanha, virt-maint, yanyang | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | qemu-2.5.0-10.fc24 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-03-26 18:01: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: | |||||||
Attachments: |
|
Description
Yang Yang
2016-01-20 09:30:07 UTC
Created attachment 1116560 [details]
libvirt log
Does this work on fedora 23? If so, can you see if f23 qemu + rawhide libvirt works? That will tell us if it's qemu or libvirt I tried to use qmp-shell to execute the snapshot cmd in step4: # qemu/scripts/qmp/qmp-shell /var/lib/libvirt/qemu/domain-nn/monitor.sock Welcome to the QMP low-level shell! Connected to QEMU 2.5.0 (QEMU) blockdev-snapshot-sync device=drive-virtio-disk0 snapshot-file=/tmp/kakka format=qcow2 {"error": {"class": "GenericError", "desc": "The feature 'snapshot' is not enabled"}} From the error message, I think it's a bug in qemu. jcody, any thoughts? seems like a snapshot regression in qemu 2.5 Indeed, it does look like a regression. I've also confirmed that it is present in the current QEMU master upstream. I'm working to bisect it now. Here are some easy steps to reproduce with just QEMU (via QMP commands): qemu-system-x86_64 -enable-kvm -drive file=$1,if=virtio -m 1024 -boot c -qmp stdio { "execute": "qmp_capabilities" } { "execute": "blockdev-snapshot-sync", "arguments": { "device": "virtio0","snapshot-file":"tmp.qcow2","format": "qcow2" } } { "execute": "block-commit", "arguments": { "device": "virtio0" } } { "execute": "block-job-complete", "arguments": { "device": "virtio0" }} { "execute": "blockdev-snapshot-sync", "arguments": { "device": "virtio0","snapshot-file":"tmp2.qcow2","format": "qcow2" } } Git bisect shows this to be a regression caused by: commit 3f09bfbc7bee812a44838f4c8b254007a9b86cab Refs: v2.5.0-640-g3db34bf AuthorDate: Tue Sep 15 11:58:23 2015 +0200 CommitDate: Fri Oct 16 15:34:30 2015 +0200 block: Add and use bdrv_replace_in_backing_chain() This cleans up the mess we left behind in the mirror code after the previous patch. Instead of using bdrv_swap(), just change pointers. The interface change of the mirror job that callers must consider is that after job completion, their local BDS pointers still point to the same node now. qemu-img must change its code accordingly (which makes it easier to understand); the other callers stays unchanged because after completion they don't do anything with the BDS, but just with the job, and the job is still owned by the source BDS. *** Bug 1302064 has been marked as a duplicate of this bug. *** Submitted a patch upstream, and to qemu-stable, with a fix: https://lists.gnu.org/archive/html/qemu-devel/2016-01/msg06163.html *** Bug 1300165 has been marked as a duplicate of this bug. *** Applying Jeffs patch solves the problem for me. thanks. This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle. Changing version to '24'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase qemu-2.5.0-10.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-1b264ab4a4 qemu-2.5.0-10.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-1b264ab4a4 qemu-2.5.0-10.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. |