RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1584950 - "End of file from qemu monitor" when shutdown guest
Summary: "End of file from qemu monitor" when shutdown guest
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.6
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Libvirt Maintainers
QA Contact: Lili Zhu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-01 02:52 UTC by Fangge Jin
Modified: 2018-07-02 13:12 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-02 13:12:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
libvirtd and qemu log (57.41 KB, application/x-bzip)
2018-06-01 02:52 UTC, Fangge Jin
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1536461 0 high CLOSED Libvirtd hangs when shutting down domains 2021-12-10 15:34:24 UTC

Internal Links: 1536461

Description Fangge Jin 2018-06-01 02:52:33 UTC
Created attachment 1446497 [details]
libvirtd and qemu log

Description of problem:
"End of file from qemu monitor" when shutdown guest

Version-Release number of selected component (if applicable):
libvirt-4.3.0-1.el7.x86_64
qemu-kvm-rhev-2.12.0-2.el7.x86_64

Also reproduced with:
libvirt-3.9.0-14.el7_5.4.x86_64
qemu-kvm-rhev-2.10.0-21.el7_5.2.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Create a guest with guest agent

2.Shutdown guest:
# virsh shutdown $guest

4.Check libvirtd log
2018-06-01 02:49:18.992+0000: 16975: error : qemuMonitorIO:715 : internal error: End of file from qemu monitor
2018-06-01 02:49:18.992+0000: 16975: debug : qemuMonitorIO:763 : Error on monitor internal error: End of file from qemu monitor

Actual results:
There is error message when shutdown a guest

Expected results:
No error message when shutdown a guest

Additional info:

Comment 2 Jiri Denemark 2018-07-02 13:12:28 UTC
There was an attempt to fix this a year ago:

commit aeda1b8c56dc58b0a413acc61bbea938b40499e1
Author:     Christian Ehrhardt <christian.ehrhardt>
AuthorDate: Thu Mar 9 10:54:32 2017 +0100
Commit:     Martin Kletzander <mkletzan>
CommitDate: Mon May 15 12:34:19 2017 +0200

    qemu: monitor: do not report error on shutdown

    If a shutdown is expected because it was triggered via libvirt we can
    also expect the monitor to close. In those cases do not report an
    internal error like:
      "internal error: End of file from qemu monitor"

    Signed-off-by: Christian Ehrhardt <christian.ehrhardt>

but it was later reverted by

commit 72adaf2f10509c3682f2c65ffad4176e00e5a2fb
Author:     Michal Privoznik <mprivozn>
AuthorDate: Fri Jan 19 13:53:57 2018 +0100
Commit:     Michal Privoznik <mprivozn>
CommitDate: Fri Jan 19 14:31:03 2018 +0100

    Revert "qemu: monitor: do not report error on shutdown"

    https://bugzilla.redhat.com/show_bug.cgi?id=1536461

    This reverts commit aeda1b8c56dc58b0a413acc61bbea938b40499e1.

    Problem is that we need mon->lastError to be set because it's
    used all over the place. Also, there's nothing wrong with
    reporting error if one occurred. I mean, if there's a thread
    executing an API and which currently is talking on monitor it
    definitely wants the error reported.

    Signed-off-by: Michal Privoznik <mprivozn>


Note You need to log in before you can comment on or make changes to this bug.