-
-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Processes plugin configuration file not been deployed #851
Comments
So this is actually a funny one. I've reproduced the same conditions as the original reporter. It only affects systems that have class RedHat because voxpopuli collectd happens to have created the process-config.conf with same name as the name being purged later on. The race is always rigged because collectd::plugin is set to happen after collectd::plugin::processes so your execution state ends up with the concat first
and the effective action of absent=>true
I just started debugging this so don't have a conclusive patch to send. I suspect the easiest change would be renaming what collectd::plugin::processes create to it doesn't match the OS vendor filename. |
This stopped working awhile back for us as well. It took me awhile to troubleshoot, but I believe I have found the root cause and a solution. After testing various configs I noticed that the concat file was never being created if collectd::plugin { 'processes': is called. I added ordering to concat { "${collectd::plugin_conf_dir}/processes-config.conf": as such:
and received this error: (Concat_file[/etc/collectd.d/processes-config.conf] => File[package_processes.load] => Collectd::Plugin[processes] => Concat[/etc/collectd.d/processes-config.conf] => Concat_file[/etc/collectd.d/processes-config.conf])\nTry the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz Following the error message into collectd::plugin we see this:
On RedHat/CentOS systems this /${collectd::package_configs[$plugin] references on collectd::params
Conclusion, collectd::plugin { 'processes': is deleting the file /etc/collect.d/processes-config.conf which it's then later trying to create with concat. Proposed Solution: Add the replace parameter (along with the previously added require) to concat on processes.
|
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Configuring any process through the Processes plugin
What are you seeing
No configuration file is created in the configuration directory
What behaviour did you expect instead
A configuration file with the name processes-config.conf to be created in the configuration folder.
Output log
Nothing
Any additional information you'd like to impart
Seems this line of configuration here https://github.com/voxpupuli/puppet-collectd/blob/master/manifests/params.pp#L79 is making Puppet not to deploy the file (in a very silent way). A possible fix will be to drop that line, but I guess something like specifying execution orders makes more sense.
The text was updated successfully, but these errors were encountered: