Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1636723

Summary: Guest agent is not responding: Guest agent not available for now on VM shutdown
Product: [oVirt] vdsm Reporter: Michael Burman <mburman>
Component: CoreAssignee: Tomasz Barański <tbaransk>
Status: CLOSED DUPLICATE QA Contact: Petr Matyáš <pmatyas>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.20.31CC: bugs, lsvaty, mburman, michal.skrivanek, pchocron, ratamir, rbarry
Target Milestone: ovirt-4.3.0Keywords: Regression, Reopened
Target Release: ---Flags: rule-engine: ovirt-4.3+
rule-engine: blocker+
lsvaty: testing_ack+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-07 11:18:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
logs none

Description Michael Burman 2018-10-07 08:34:23 UTC
Created attachment 1491296 [details]
logs

Description of problem:
Guest agent is not responding: Guest agent not available for now on VM shutdown

When gracefully shutting down a VM in vdsm log i see:

2018-10-07 11:22:17,036+0300 ERROR (Thread-2) [root] Shutdown by QEMU Guest Agent failed (vm:5413)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py", line 5404, in qemuGuestAgentShutdown
    self._dom.shutdownFlags(libvirt.VIR_DOMAIN_SHUTDOWN_GUEST_AGENT)
  File "/usr/lib/python2.7/site-packages/vdsm/virt/virdomain.py", line 98, in f
    ret = attr(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/vdsm/common/libvirtconnection.py", line 130, in wrapper
    ret = f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/vdsm/common/function.py", line 92, in wrapper
    return func(inst, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2515, in shutdownFlags
    if ret == -1: raise libvirtError ('virDomainShutdownFlags() failed', dom=self)
libvirtError: Guest agent is not responding: Guest agent not available for now

This indicates that the agent is generally available, but not responding at the given moment as Milan explained in BZ 1634765#4


Version-Release number of selected component (if applicable):
vdsm-4.20.42-1.el7ev
4.2.7.2-0.1.el7ev
kernel - 3.10.0-957.el7.x86_64
libvirt-client-4.5.0-10.el7.x86_64

How reproducible:
Almost every VM shutdown

Steps to Reproduce:
1. Start VM on latest 4.2.7.2
2. Shutdown gracefully the VM
3. Check for vdsm log

Actual results:
libvirtError: Guest agent is not responding: Guest agent not available for now


Expected results:
No errors on VM shutdown

Additional info:
See also BZ 1634765

Comment 1 Michal Skrivanek 2018-10-09 07:03:51 UTC
cannot reproduce with fix for bug 1634765. Feel free to reopen in case it still happens to you

*** This bug has been marked as a duplicate of bug 1634765 ***

Comment 2 Michael Burman 2018-10-09 08:30:18 UTC
(In reply to Michal Skrivanek from comment #1)
> cannot reproduce with fix for bug 1634765. Feel free to reopen in case it
> still happens to you
> 
> *** This bug has been marked as a duplicate of bug 1634765 ***

It still happens to me on master, the question is if master already have this fix? 
4.3.0-0.0.master.20181008123033.gitf23e91f.el7
vdsm-4.30.0-625.gitfff3197.el7.x86_64

Comment 3 Michael Burman 2018-10-11 07:34:51 UTC
Reproduced on 4.3.0-0.0.master.20181010155922.gite89babf.el7
vdsm-4.30.0-631.gitac20250.el7.x86_64

Comment 4 Michal Skrivanek 2018-10-31 12:49:52 UTC
possibly a duplicate of bug 1640193

Comment 5 Ryan Barry 2018-11-06 23:03:36 UTC
Please re-test now that it's fixed in platform

Comment 6 Michael Burman 2018-11-07 06:36:25 UTC
(In reply to Ryan Barry from comment #5)
> Please re-test now that it's fixed in platform

Hi Ryan, 
Can't reproduce 'libvirtError: Guest agent is not responding: Guest agent not available for now' errors on a graceful VM shutdown with libvirt-4.5.0-10.el7_6.2.x86_64

Comment 7 Ryan Barry 2018-11-07 11:18:47 UTC

*** This bug has been marked as a duplicate of bug 1640193 ***

Comment 8 Michal Skrivanek 2018-11-13 06:05:33 UTC
*** Bug 1648925 has been marked as a duplicate of this bug. ***