Bug 1015636
Summary: | managed save can fail with: unexpected migration status in setup | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Cole Robinson <crobinso> |
Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 20 | CC: | atodorov, berrange, clalancette, eblake, itamar, jforbes, jyang, laine, libvirt-maint, mprivozn, reno.gan, veillard, virt-maint |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.1.3.1-2.fc20 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-11-26 04:10:59 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
Cole Robinson
2013-10-04 16:24:23 UTC
Same for me with virt-manager-0.10.0-4.git79196cdf.fc20.noarch: [Tue, 08 Oct 2013 10:14:55 virt-manager 3913] DEBUG (console:1240) Viewer connected [Tue, 08 Oct 2013 10:15:23 virt-manager 3913] DEBUG (engine:991) Pausing vm 'fedora20-6' [Tue, 08 Oct 2013 10:15:23 virt-manager 3913] DEBUG (asyncjob:194) Creating async job for function cb=<function tmpcb at 0x7fce0c963ed8> [Tue, 08 Oct 2013 10:16:29 virt-manager 3913] DEBUG (engine:999) Unpausing vm 'fedora20-6' [Tue, 08 Oct 2013 10:16:29 virt-manager 3913] DEBUG (asyncjob:194) Creating async job for function cb=<function tmpcb at 0x9e10de8> [Tue, 08 Oct 2013 10:16:32 virt-manager 3913] DEBUG (engine:991) Pausing vm 'fedora20-6' [Tue, 08 Oct 2013 10:16:32 virt-manager 3913] DEBUG (asyncjob:194) Creating async job for function cb=<function tmpcb at 0x7fce0c97a410> [Tue, 08 Oct 2013 10:16:34 virt-manager 3913] DEBUG (engine:999) Unpausing vm 'fedora20-6' [Tue, 08 Oct 2013 10:16:34 virt-manager 3913] DEBUG (asyncjob:194) Creating async job for function cb=<function tmpcb at 0xcf9eb90> [Tue, 08 Oct 2013 10:16:42 virt-manager 3913] DEBUG (asyncjob:194) Creating async job for function cb=<function cb at 0x7fce0c968d70> [Tue, 08 Oct 2013 10:16:46 virt-manager 3913] DEBUG (console:1213) Viewer disconnected [Tue, 08 Oct 2013 10:16:53 virt-manager 3913] DEBUG (error:84) error dialog message: summary=Error saving domain: internal error: unexpected migration status in setup details=Error saving domain: internal error: unexpected migration status in setup Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/asyncjob.py", line 91, in cb_wrapper callback(asyncjob, *args, **kwargs) File "/usr/share/virt-manager/virtManager/engine.py", line 918, in cb vm.save(path, meter=asyncjob.get_meter()) File "/usr/share/virt-manager/virtManager/domain.py", line 1309, in save self._backend.managedSave(0) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 911, in managedSave if ret == -1: raise libvirtError ('virDomainManagedSave() failed', dom=self) libvirtError: internal error: unexpected migration status in setup Root issue is likely that qemu 1.6 added a new migration status string "setup", this means the migrate job is in the works but hasn't started sending any data yet. Libvirt doesn't handle this state. commit 29ae8a4133082e16970c9d4be09f4b6a15034617 Author: Michael R. Hines <mrhines.com> Date: Mon Jul 22 10:01:57 2013 -0400 rdma: introduce MIG_STATE_NONE and change MIG_STATE_SETUP state transition Libvirt also has an 'inactive' string but qemu never returns that, maybe that should be removed. I think for the most part setup == active, with no data reporting. Can probably stick a sleep in qemu to lengthen the setup period to more easily reproduce this. I'm asking on the qemu list whether we should add a qemu patch to avoid the need to require a newer libvirt (by adding a new qemu migration capability that must be enabled before the new state is advertised); but meanwhile I agree that libvirt needs to be taught to learn this new state. Sounds like qemu won't be making any changes; thus, we need the libvirt fix backported to any distro where we run new enough qemu. Libvirt needs to be taught to recognize this particular new state, and to be made more tolerant so that any future new states are treated as active. https://lists.gnu.org/archive/html/qemu-devel/2013-10/msg00908.html Hi, Eric, is there any progress about this bug fix? This problem has stopped me from upgrading qemu to 1.6.1. The libvirt "save" operation always fails with error "unexpected migration status in setup". Patch is now upstream: commit d35ae4143d11f45856ae002fcd419da0eb9bba9f Author: Michael Avdienko <whitearchey> Date: Fri Nov 15 20:47:43 2013 +0900 Fix migration with QEMU 1.6 QEMU 1.6.0 introduced new migration status: setup Libvirt does not expect such string in QMP and refuses to migrate with error "unexpected migration status in setup" This patch fixes it. Signed-off-by: Jiri Denemark <jdenemar> libvirt-1.1.3.1-2.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/libvirt-1.1.3.1-2.fc20 Package libvirt-1.1.3.1-2.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing libvirt-1.1.3.1-2.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-21624/libvirt-1.1.3.1-2.fc20 then log in and leave karma (feedback). libvirt-1.1.3.1-2.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |