Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1562591 - Conf file is missing/incomplete for collectd libvirt plugin
Conf file is missing/incomplete for collectd libvirt plugin
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: collectd (Show other bugs)
13.0 (Queens)
Unspecified Unspecified
medium Severity medium
: beta
: 13.0 (Queens)
Assigned To: Matthias Runge
Leonid Natapov
: Reopened, Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-04-01 04:29 EDT by Leonid Natapov
Modified: 2018-06-27 09:09 EDT (History)
7 users (show)

See Also:
Fixed In Version: collectd-5.8.0-8.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-06-27 09:08:58 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
RDO 13259 None None None 2018-04-04 05:12 EDT
Red Hat Product Errata RHEA-2018:2084 None None None 2018-06-27 09:09 EDT

  None (edit)
Description Leonid Natapov 2018-04-01 04:29:51 EDT
Description of problem:

libvirt plugin fails to load because data is missing in the plugin conf file

[2018-04-01 08:02:52] virt plugin: Unable to connect: virConnectOpen failed.
[2018-04-01 08:02:52] Initialization of plugin `virt' failed with status -1. Plugin will be unloaded.
[2018-04-01 08:02:52] plugin_unregister_read: No such read function: virt





libvirt.conf plugin looks like this:

--------
()[root@controller-0 collectd.d]# cat libvirt.conf
LoadPlugin libvirt
---------

We should either to provide complete libvirt.conf file or to remove it at tall and let user to create it. Now,we do provide conf file but it misses required data which is wrong.
Comment 1 RHEL Product and Program Management 2018-04-01 04:33:00 EDT
Quality Engineering Management has reviewed and declined this request.
You may appeal this decision by reopening this request.
Comment 2 Leonid Natapov 2018-04-04 04:28:15 EDT
Re opening this bug. qa_ack was set to minus by mistake.
Comment 3 Matthias Runge 2018-04-04 04:56:15 EDT
In general, the config would be overwritten by puppet-collectd, thus one can provide the connection string via config.yaml.

I'll propose a patch upstream in a few mins.
Comment 6 Matthias Runge 2018-04-04 08:45:16 EDT
merged upstream
Comment 7 Shirly Radco 2018-04-16 04:59:32 EDT
Our oVirt metrics conf file is like this:

LoadPlugin virt
<Plugin virt>
    ExtraStats "disk disk_err pcpu vcpupin cpu_util domain_state"
    HostnameFormat hostname
    PluginInstanceFormat name
</Plugin>

We get the same error...
Is there something missing?
Comment 8 Matthias Runge 2018-04-16 05:12:46 EDT
This bug is about a missing config file for the virt plugin. Ok, the config only contains LoadPlugin virt, and nothing more. This causes the plugin to be unloaded.

Shirly, I believe you need to specify the connection URL, which seems to be missing in your snippet. If you receive another error message, please open a new bug rather than posting to another one. Opening a new bug will help us to guarantee that both issues are fixed. Thank you.
Comment 12 Leonid Natapov 2018-05-06 05:40:01 EDT
conf file updated.

LoadPlugin libvirt

<Plugin "virt">
  Connection "qemu:///system"
  HostnameFormat "hostname uuid"
  ExtraStats "disk disk_err domain_state pcpu perf vcpupin cpu_util"
</Plugin>
Comment 14 errata-xmlrpc 2018-06-27 09:08:58 EDT
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-2018:2084

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