Bug 1293899
Summary: | Libvirt mishandle the internal snapshot with AHCI device | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Yang Yang <yanyang> |
Component: | libvirt | Assignee: | Peter Krempa <pkrempa> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.2 | CC: | dyuan, hhan, mike, mzhan, oblaut, rbalakri, xuzhang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.3.2-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-03 18:50:07 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: |
Description
Yang Yang
2015-12-23 12:35:21 UTC
Upstream has handled it: Guest with the sata controller as following: <controller type='sata' index='0'> </controller> # virsh snapshot-create-as n1 s1 error: operation failed: Error -22 while writing VM Current upstream qemu actually does support migration with AHCI so you will not get this message. Older versions of qemu are broken though. Fixed upstream: commit 4ac14cde9ae925515009400c2186d7eec5478b05 Author: Peter Krempa <pkrempa> Date: Fri Jan 15 13:01:30 2016 +0100 qemu: snapshot: Correctly report qemu error on 'savevm' Since 'savevm' was not converted to QMP libvirt has to parse for error strings in the text monitor output. One of the unhandled errors is produced when qemu treats a device as unmigratable. As current qemu actually does support AHCI migration this bug is applicable only to older versions of qemu. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1293899 commit 0c1b0d83bb4c41123068a9efdb6daac0f326e707 Author: Peter Krempa <pkrempa> Date: Fri Jan 15 12:53:30 2016 +0100 qemu: monitor: Refactor error handling for 'savevm' Unify few error conditions into a single error reporting case. v1.3.1-38-g4ac14cd Verify it on libvirt-1.3.2-1.el7.x86_64 Prepare an VM with following xml, and start the VM: <controller type='sata' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/> </controller> For qemu doesn't support ahci migration: qemu-kvm-rhev-2.3.0-31.el7_2.10.x86_64 # virsh snapshot-create-as ahci internal error: operation failed: Failed to take snapshot: State blocked by non-migratable device '0000:00:07.0/ich9_ahci' # virsh migrate --live ahci qemu+ssh://lab.work.me/system --verbose --unsafe --p2p --tunnelled error: internal error: unable to execute QEMU command 'migrate': State blocked by non-migratable device '0000:00:07.0/ich9_ahci' For qemu supports ahci migration: qemu-kvm-rhev-2.5.0-3.el7.x86_64 # virsh migrate --live ahci qemu+ssh://lab.work.me/system --verbose --unsafe --p2p --tunnelled Migration: [100 %] # virsh snapshot-create-as ahci internal Domain snapshot internal created 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/RHSA-2016-2577.html |