Bug 892791
| Summary: | Libvirt does not follow RESUME qemu monitor events. VMs remain in "paused" state forever. | ||
|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | Andres Lagar-Cavilla <andres> |
| Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
| Status: | CLOSED UPSTREAM | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | dallan, dyasny, eblake |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-01-09 16:17:05 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: | 894085, 896225 | ||
|
Description
Andres Lagar-Cavilla
2013-01-07 21:15:35 UTC
Issuing commands on a monitor behind libvirt's back is unsupported. Once libvirt is managing a domain, then you should use libvirt, rather than the monitor, for all state changes of that guest. Eric,
I have misled you by overstating the importance of the "other" monitor.
This is an issue in itself due to lack of completeness of monitor callback handling in the library.
I will illustrate with a simple example:
# virsh list
Id Name State
----------------------------------------------------
1 instance-00000020 running
# virsh qemu-monitor-command 1 '{"execute":"stop"}'
{"return":{},"id":"libvirt-10"}
# virsh list
Id Name State
----------------------------------------------------
1 instance-00000020 paused
# virsh qemu-monitor-command 1 '{"execute":"cont"}'
{"return":{},"id":"libvirt-11"}
# virsh list
Id Name State
----------------------------------------------------
1 instance-00000020 paused
As an additional example, if I attach GDB to qemu and start single-stepping, libvirt will drop dozens RESUME events and be mightily confused.
Hope this helps in clarifying.
Andres
Patch sent to the list: https://www.redhat.com/archives/libvir-list/2013-January/msg00381.html Thanks Andres |