Bug 1717359 - [OSP16] Configure log filter to capture interactions between libvirt and QEMU
Summary: [OSP16] Configure log filter to capture interactions between libvirt and QEMU
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 16.0 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Upstream M3
: 16.0 (Train on RHEL 8.1)
Assignee: Martin Schuppert
QA Contact: Joe H. Rahme
URL:
Whiteboard:
Depends On:
Blocks: 1745003 1745005 1745007
TreeView+ depends on / blocked
 
Reported: 2019-06-05 10:40 UTC by Kashyap Chamarthy
Modified: 2020-02-06 14:41 UTC (History)
4 users (show)

Fixed In Version: puppet-nova-15.4.1-0.20191014175323.e6628d6.el8ost openstack-tripleo-heat-templates-11.3.1-0.20191022072831.698e7db.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1745003 (view as bug list)
Environment:
Last Closed: 2020-02-06 14:40:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1840140 0 None None None 2019-08-14 11:48:47 UTC
OpenStack gerrit 676396 0 'None' MERGED Adds log_filters parameter to nova::compute::libvirt 2020-08-19 09:02:22 UTC
OpenStack gerrit 676399 0 'None' MERGED Adds LibvirtLogFilters to define a libvirtd filter 2020-08-19 09:02:22 UTC
Red Hat Product Errata RHEA-2020:0283 0 None None None 2020-02-06 14:41:43 UTC

Description Kashyap Chamarthy 2019-06-05 10:40:38 UTC
What?
-----

On all compute nodes, by default, enable the libvirt log filter
("1:qemu") to capture the QMP (QEMU Machine Protocol) traffic.  This
will show the QMP request and response flow between libvirt and QEMU.


Why?
----

Often times, when debugging issues that involve interactions between
Nova, libvirt and QEMU, we need to understand the precise requests that
libvirt is sending to QEMU, and the corresponding responses from QEMU.
Since we don't capture these interactions by default, we request them[*]
_after_ a bug is reported, at which point it might not be possible to
capture them for various reasons, or worse, the machine might no longer
be available.

Having this log filter enabled can be extremely useful in debugging a
range of scenarios: live migration (with shared and non-shared storage),
live snapshots, "volume migration", and anything that involves libvirt
sending QMP commands to QEMU.

Note that we're only selectively enabling a targetted log filter
("1:qemu").  It will slightly increase the log file size, but nothing
crazy.  This slight increase in log file size is acceptable, given the
benefits.


How?
----

When deploying compute nodes, make sure that TripleO sets the below two
configuration attributes in `/etc/libvirt/libvirtd.conf`.  The "1:qemu" 
log filter will capture the QMP traffic between libvirt and QEMU in the
specified log file, `libvirtd.log`:

    ...
    log_filters="1:qemu"
    log_outputs="1:file:/var/log/libvirt/libvirtd.log"
    ...


[*] https://kashyapc.fedorapeople.org/virt/openstack/request-nova-libvirt-qemu-debug-logs.txt

Comment 6 errata-xmlrpc 2020-02-06 14:40:58 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.

https://access.redhat.com/errata/RHEA-2020:0283


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