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 853002 - [qemu-ga]shutdown guest by qemu-guest-agent will successful but report error
Summary: [qemu-ga]shutdown guest by qemu-guest-agent will successful but report error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.4
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Jiri Denemark
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-30 08:39 UTC by zhpeng
Modified: 2013-09-09 00:03 UTC (History)
6 users (show)

Fixed In Version: libvirt-0.10.1-1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-21 07:22:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
libvirtd log (10.59 KB, text/plain)
2012-08-30 08:41 UTC, zhpeng
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0276 0 normal SHIPPED_LIVE Moderate: libvirt security, bug fix, and enhancement update 2013-02-20 21:18:26 UTC

Description zhpeng 2012-08-30 08:39:24 UTC
Description
shutdown guest with qemu-guest-agent will successful but report error

Version
libvirt-0.10.0-1.el6.x86_64

How reproducible:
100%


Steps
1. upgrade the seabios to -18 or higher in your host.
seabios-0.6.1.2-19.el6

2. Edit the xml,
# virsh dumpxml myRHEL6
<domain type='kvm'>
  <name>rhel63</name>
...
  <os>
    <type arch='x86_64' machine='rhel6.3.0'>hvm</type>
    <loader>/usr/share/seabios/bios-pm.bin</loader>
    <boot dev='hd'/>
  </os>
...
<channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/{$guestname}.agent'/>
      <target type='virtio' name='org.qemu.guest_agent.0'/>
    </channel>
...
2. start domain  start qemu-ga service

3.
# virsh shutdown  rhel63 --mode agent
error: Failed to shutdown domain rhel63
error: Guest agent is not responding: Guest agent not available for now

# virsh list 
 Id    Name                           State
----------------------------------------------------

attached libvirtd.log

Actual result
successfully shutdown guest by qemu-ga, but report error.

  
Expect result
No error report and no libvirtd error


Additional info
attached libvirtd.log

Comment 1 zhpeng 2012-08-30 08:41:43 UTC
Created attachment 608076 [details]
libvirtd log

Comment 5 Jiri Denemark 2012-08-30 11:50:07 UTC
Yeah, it's very likely that any API that calls to qemu-ga is affected. I'll check all of them...

Comment 6 Jiri Denemark 2012-08-30 14:46:32 UTC
This issue is now fixed upstream by v0.10.0-10-ge360a96 and v0.10.0-11-g7444ccc:

commit 7444ccce4cb4af1ce61eb4c2c9ce4f69ea276e9c
Author: Jiri Denemark <jdenemar>
Date:   Thu Aug 30 14:40:01 2012 +0200

    qemu: Revert to blocking behavior of qemuAgentCommand
    
    Before commit 05447e3af44ec153314ff97cd611330d9b4b5730, qemuAgentCommand
    blocked until it got a reply or appropriate event. When new parameter
    was added to qemuAgentCommand in the above commit, all existing callers
    of it were updated in a wrong way changing them from blocking to
    5-seconds timeout.

commit e360a96067c685d53d5c32c912db14520acdb089
Author: Jiri Denemark <jdenemar>
Date:   Thu Aug 30 14:19:02 2012 +0200

    qemu: Remove redundant parameter from qemuAgentSend
    
    The @timeout parameter of qemuAgentSend is both redundant and confusing.
    This patch should not result in any functional changes.

Comment 10 zhpeng 2012-09-03 05:56:13 UTC
Test it with libvirt-0.10.1-1

[root@zhpeng ~]# virsh dompmsuspend rhel63 --target disk
Domain rhel63 successfully suspended
[root@zhpeng ~]# virsh start rhel63
Domain rhel63 started

[root@zhpeng ~]# virsh shutdown rhel63 --mode agent
Domain rhel63 is being shutdown

[root@zhpeng ~]# virsh start rhel63
Domain rhel63 started


Change it to verified.

Comment 11 errata-xmlrpc 2013-02-21 07:22:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0276.html


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