Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1495500 - Global collectd configurations that are set in collectd.d/ will not apply to plugins that are loaded in collectd.conf
Global collectd configurations that are set in collectd.d/ will not apply to ...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: collectd (Show other bugs)
4.2.0
Unspecified Unspecified
medium Severity medium
: ovirt-4.2.0
: ---
Assigned To: Yedidyah Bar David
Lukas Svaty
:
Depends On:
Blocks: 1478695
  Show dependency treegraph
 
Reported: 2017-09-26 04:10 EDT by Shirly Radco
Modified: 2018-06-04 23:46 EDT (History)
4 users (show)

See Also:
Fixed In Version: collectd-5.7.2-3.el7
Doc Type: Bug Fix
Doc Text:
collectd's default configuration file /etc/collectd.conf is no longer used to load any plugins. Each plugin is now loaded from its own separate file which is included in the rpm. For example: - /etc/collectd.d/90-default-plugins-cpu.conf - /etc/collectd.d/90-default-plugins-interface.conf - /etc/collectd.d/90-default-plugins-load.conf - /etc/collectd.d/90-default-plugins-memory.conf If a 3rd-party wants to affect the configuration of one or more plugins, it needs its own file to be loaded before those provided by the plugins.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-05-15 13:54:18 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Integration
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
RDO 10335 None None None 2017-10-31 06:02 EDT
RDO 9802 None None None 2017-10-02 03:26 EDT
Red Hat Product Errata RHBA-2018:1490 None None None 2018-05-15 13:54 EDT

  None (edit)
Description Shirly Radco 2017-09-26 04:10:38 EDT
Description of problem:

Global collectd configurations that are set in collectd.d/ will not apply to plugins that are loaded in collectd.conf.

For example, if we add a file to collectd.d/ that sets collectd Interval to one that is different from the default 10 sec, It will not affect the plugins that are loaded in collectd.conf.

All plugins in collectd.conf should be commented out and they should be loaded from a file in collecd.d/ instead.

Version-Release number of selected component (if applicable):
5.7.2

How reproducible:
100%

Steps to Reproduce:
1. Add like 00-global_collectd.conf and set Interval 60
2. Restart collectd
3. Review result for plugins that are loaded from the collectd.conf like cpu, memory, interface.

Actual results:
The plugins that are loaded from collectd.conf stay with the same configs as set in the collectd.conf.

Expected results:
Should be able to update all plugin configurations from collectd.d/

Additional info:
Comment 3 Shirly Radco 2017-10-30 02:02:47 EDT
Didi has fixed the issue in centos-opstools.
https://review.rdoproject.org/r/#/c/9802/

Packages needs to be built before this bug can be built before this bug can be fixed and tested.
Comment 4 Shirly Radco 2017-10-30 02:04:16 EDT
Can we change to modified?
Comment 7 Lukas Svaty 2017-11-03 11:08:05 EDT
What parameter should be taken instead of conflict? First defined? sub-dir?
Comment 8 Lukas Svaty 2017-12-14 10:42:02 EST
Shirly - ping
Comment 9 Yedidyah Bar David 2017-12-17 01:40:07 EST
(In reply to Lukas Svaty from comment #7)
> What parameter should be taken instead of conflict? First defined? sub-dir?

Not sure what's the question here, but to clarify - nothing in collectd's behavior/functionality was changed.

The only change is in the default collectd.conf. It's now doing nothing except for Include collectd.d.

In principle, verification of bug 1478695 should be enough also for current bug.
Comment 10 Lukas Svaty 2018-01-23 11:37:31 EST
verified in collectd-5.7.2-3.el7.x86_64
Comment 12 Yedidyah Bar David 2018-05-08 06:15:49 EDT
Byron, I do not think the new doc text means what I wanted to imply in the previous one. Tried suggesting a different text, but can't get it right and still much shorter than previous. So instead I'll write in much more detail how we solved the problem. See comment 0 for an explanation of the problem itself. Feel free to update the doc text accordingly.

With the fixed version (5.7.2-3), the collectd rpm, when installed, provides a file /etc/collectd.conf which is different from previous versions - it does not load any plugins there anymore. Instead, each of the plugins we want to load by default is loaded from its own separate file, and these files are also now included in the rpm (so you get them if you install it):

/etc/collectd.d/90-default-plugins-cpu.conf
/etc/collectd.d/90-default-plugins-interface.conf
/etc/collectd.d/90-default-plugins-load.conf
/etc/collectd.d/90-default-plugins-memory.conf
/etc/collectd.d/90-default-plugins-syslog.conf

So the default behavior, of loading these plugins by default, did not change at all.

In addition, now, if a 3rd-party (such as the ovirt-engine-metrics project) wants to affect the configuration of one or more of these plugins, such a 3rd party can add its own file, to be loaded before these ones, with the needed options. This is much simpler than having to edit /etc/collectd.conf and add the needed options _before_ the relevant LoadPlugin commands.

This bug, although is in Product RHV, is regarded as a general "collectd" bug. See bug 1478695 for what we actually wanted. Also, if we decide that current bug needs doc text, perhaps bug 1478695 does too.
Comment 14 errata-xmlrpc 2018-05-15 13:54:18 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/RHBA-2018:1490

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