Bug 1717954 - Collectd failed to send message due to 'libvirt.conf'
Summary: Collectd failed to send message due to 'libvirt.conf'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-metrics
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.3.6
: ---
Assignee: Shirly Radco
QA Contact: Ivana Saranova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-06 14:09 UTC by David Vaanunu
Modified: 2020-08-03 15:20 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, when you used the oVirt config files to edit the libvirt.conf config file, running 'systemctl status collectd' failed to collect metrics data, instead displaying errors such as the following: collectd[38874]: write_syslog plugin: wr_callback_init failed. collectd[38874]: write_syslog plugin: error with wr_send_message When upgrading the collectd package, libvirt.conf is automatically regenerated if it is missing. So now this bug is fixed by replacing libvirt.conf with the following message: 'included in 20-builtins-conf-for-ovirt.conf'
Clone Of:
Environment:
Last Closed: 2019-10-10 15:38:11 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:
lsvaty: testing_plan_complete-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 4238401 0 Troubleshoot None RHV 4.3 collectd is reporting error write_syslog plugin: wr_callback_init failed and error with wr_send_message 2019-06-20 21:47:31 UTC
Red Hat Product Errata RHBA-2019:3018 0 None None None 2019-10-10 15:38:12 UTC
oVirt gerrit 101695 0 'None' MERGED Remove libvirt.conf that breaks collectd config 2021-02-15 11:21:26 UTC
oVirt gerrit 101728 0 'None' MERGED Update libvirt.conf content 2021-02-15 11:21:26 UTC

Description David Vaanunu 2019-06-06 14:09:48 UTC
RHV 4.3.4

Collectd failed to send metrics data.

While running 'systemctl status collectd'

Getting output:

collectd[38874]: write_syslog plugin: wr_callback_init failed.
collectd[38874]: write_syslog plugin: error with wr_send_message


Once the file '/etc/collectd.d/libvirt.conf' removed, the error messages gone.

Comment 1 Sandro Bonazzola 2019-06-12 11:13:02 UTC
Can you please attach sos report from the host where you see the failure?

Comment 2 Sandro Bonazzola 2019-06-12 11:13:53 UTC
Shirly, does this reproduce on our systems?

Comment 3 Yedidyah Bar David 2019-06-13 06:26:36 UTC
Also, please provide output of:

rpm -qa | grep collectd
rpm -qfi /etc/collectd.d/libvirt.conf

What repos did you use for installation?

Thanks.

Comment 9 Sandro Bonazzola 2019-07-11 07:02:11 UTC
Re-targeting to 4.3.6 not being identified as blocker for 4.3.5.

Comment 10 Yedidyah Bar David 2019-07-25 06:58:58 UTC
Shirly, does this happen _always_ and is a real problem?

If it does not happen always but is a real problem, I suggest to try to find the root cause and fix that one.

If it happens always and is a real problem, I suggest to try to add our own file before or after libvirt.conf so as to override it, not change/remove it.

In "always" I mean e.g. something like this: Perhaps our custom configuration for libvirt (e.g. to make it require a password) causes this plugin (which expects to work without a password) fail. If this is the case, I wonder how come we do not get more reports.

Did you manage to reproduce? If so, can I have a look there? Thanks.

Comment 11 Shirly Radco 2019-07-30 11:10:31 UTC
It always happens when the file exists.

Comment 14 Ivana Saranova 2019-08-26 11:58:41 UTC
Hi, what should be tested here? Thanks

Comment 15 Shirly Radco 2019-08-26 13:26:40 UTC
That collectd does not fail.

Comment 16 Daniel Gur 2019-08-28 13:12:17 UTC
sync2jira

Comment 17 Daniel Gur 2019-08-28 13:16:29 UTC
sync2jira

Comment 18 Ivana Saranova 2019-09-03 09:54:04 UTC
Steps:
1) Have clean engine and host with RHEL 7.7 and RHV 4.3.6 and working metrics store
2) Configure metrics according to the documentation
3) Check that collectd did not fail and data are successfully gathered in Kibana

Result:
Collectd did not fail, successfully connected to the engine database and data are successfully gathered in Kibana

Verified in:
collectd-5.8.1-3.el7ost.x86_64
ovirt-engine-metrics-1.3.4-1.el7ev.noarch
ovirt-engine-4.3.6.3-0.1.el7.noarch

Comment 21 errata-xmlrpc 2019-10-10 15:38:11 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/RHBA-2019:3018


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