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

Bug 1648925

Summary: Failed to shutdown VM with libvirtError
Product: [oVirt] ovirt-engine Reporter: Pedut <pchocron>
Component: BLL.VirtAssignee: Michal Skrivanek <michal.skrivanek>
Status: CLOSED CURRENTRELEASE QA Contact: meital avital <mavital>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2.7CC: bugs, rbarry
Target Milestone: ---Keywords: Automation, Reopened
Target Release: ---   
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: 2019-03-05 23:05:39 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
logs none

Description Pedut 2018-11-12 13:20:57 UTC
Created attachment 1504723 [details]
logs

Description of problem:
VM failed to shutdown with libvirtError.

Version-Release number of selected component (if applicable):
Engine Version: 4.2.7.4-0.1.el7ev
OS Version: RHEL - 7.6 - 4.el7
LIBVIRT Version: libvirt-4.5.0-10.el7
VDSM Version: vdsm-4.20.43-1.el7

How reproducible:
Reproduced sometimes.

Steps to Reproduce:
1. Shutdown VM.
2.
3.

Actual results:
VM failed to shutdown.

Expected results:
VM shutdown with no errors.

Additional info:

2018-10-29 07:55:59,863+0200 ERROR (Thread-27) [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: QEMU guest agent is not connected

Comment 1 Ryan Barry 2018-11-13 03:25:21 UTC
Is the guest agent running/connected?

This also looks like an old libvirt version

Comment 2 Michal Skrivanek 2018-11-13 06:05:33 UTC
Please do search existing bugs before filing a duplicate bug.

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

Comment 3 Ryan Barry 2018-11-21 00:23:15 UTC
Please re-test with an updated version of libvirt

Comment 4 Pedut 2018-11-21 06:33:47 UTC
Hi Ryan,

The libvirt version in our environments was wrong so we talked with infra team in order to make sure that they fix it.
In addition, this bug reproduced via the automation tests so if I will see the same error in the next runs I will supply the info about it.

Comment 5 Ryan Barry 2018-11-28 21:48:20 UTC
Any update?

Comment 6 Pedut 2018-11-29 13:38:43 UTC
Since infra team update the libvirt version it doesn't appear to happen in the recent runs.

Comment 7 Pedut 2018-12-03 07:13:19 UTC
I reopened this bug since it reproduced again in the last version of libvirt - libvirt-4.5.0-10.el7_6.3.x86_64.

Comment 8 Pedut 2018-12-03 07:16:10 UTC
Created attachment 1510812 [details]
logs

Logs from the last analyzes

Comment 9 Pedut 2018-12-05 13:38:44 UTC
Reproduce also in:
Engine Version: 4.3.0-0.5.alpha1.el7
OS Version: RHEL - 7.6 - 4.el7
LIBVIRT Version: libvirt-4.5.0-10.el7_6.3
VDSM Version: vdsm-4.30.3-1.el7