Bug 1273720
Summary: | Paused guest can not be migrated to the target machine | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Dan Zheng <dzheng> |
Component: | qemu-kvm-rhev | Assignee: | Juan Quintela <quintela> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.2 | CC: | dyuan, fjin, gsun, hannsj_uhl, huding, ipinto, jdenemar, juzhang, mzhan, pezhang, qizhu, quintela, qzhang, rbalakri, virt-maint, xfu, xianwang, zpeng |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-05-03 11:51:34 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: | 1359843 |
Description
Dan Zheng
2015-10-21 06:16:36 UTC
Use managedsave also can reproduce this issue. # virsh start $guest --paused # virsh managedsave $guest # virsh start $guest error: Failed to start domain test error: internal error: early end of file from monitor: possible problem: ERROR: invalid runstate transition: 'inmigrate' -> 'prelaunch' Starting a domain with --paused means we run QEMU with -S and never call "cont" QMP command. If we run "cont" followed by "suspend", the bug does not happen. This is, at least, philosphically an "invalid" use case. You could as well just launch the guest on target instead of doing the migration (guest has never run). But after discussing this with Jiri, I agree that qemu don't export enough information for libvirt to know that guest has never run, so allowing that transition. This means that the guest has never been run. Why we want to migrate the guest instead of launch it on destination again? *** Bug 1371957 has been marked as a duplicate of this bug. *** Fixed upstream and on current release with commit: commit 98799b0d4be4fb5e3962005448119133a6bf74b2 Author: Paolo Bonzini <pbonzini> Date: Mon Feb 15 19:40:04 2016 +0100 vl: fix migration from prelaunch state Reproducer is simply to migrate a virtual machine that was started with -S, or that was already migrated. Signed-off-by: Paolo Bonzini <pbonzini> |