Bug 1651262
Summary: | Stale domain information: "in shutdown" state | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jan Pokorný [poki] <jpokorny> | ||||
Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | rawhide | CC: | agedosier, berrange, clalancette, crobinso, itamar, jdenemar, jforbes, jpokorny, laine, libvirt-maint, phrdina, veillard | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2018-12-11 20:49:08 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
Jan Pokorný [poki]
2018-11-19 14:53:50 UTC
Thanks for the report. Please provide ~/.cache/virt-manager/virt-manager.log it may provide some details. This might be the issue fixed by upstream commit <e47949357ba268e7e8c3adea7c262b84fa002302>. Reproduce should be simple, start new guest and let it fully boot, click on "Reboot". This should trigger ACPI reboot and in that case the state will remain "in shutdown". Created attachment 1507300 [details]
Requested log file
The situation is still current so if there are any live steps
I could use to diagnose the problem, please let me know.
As an Update, did run "poweroff" in quest and the state reported by
libvirt (virt-manager) switched correctly:
# virsh dominfo fedora29 | grep State
> State: shut off
I think Pavel is right and this is already fixed upstream by commit e47949357ba268e7e8c3adea7c262b84fa002302 Refs: v4.9.0-21-ge47949357b Author: Jiri Denemark <jdenemar> AuthorDate: Wed Nov 7 14:34:52 2018 +0100 Commit: Jiri Denemark <jdenemar> CommitDate: Thu Nov 8 09:08:58 2018 +0100 qemu: Don't ignore resume events Since commit v4.7.0-302-ge6d77a75c4 processing RESUME event is mandatory for updating domain state. But the event handler explicitly ignored this event in some cases. Thus the state would be wrong after a fake reboot or when a domain was rebooted after it crashed. BTW, the code to ignore RESUME event after SHUTDOWN didn't make sense even before making RESUME event mandatory. Most likely it was there as a result of careless copy&paste from qemuProcessHandleStop. The corresponding debug message was clarified since the original state does not have to be "paused" only and while we have a "resumed" event, the state is called "running". https://bugzilla.redhat.com/show_bug.cgi?id=1612943 Signed-off-by: Jiri Denemark <jdenemar> Fixed in libvirt 4.10.0 |