Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2142917

Summary: STF | Collectd deployed by tripleo-ansible fails to start because of the wrong path in collectd.conf file
Product: Red Hat OpenStack Reporter: Leonid Natapov <lnatapov>
Component: tripleo-ansibleAssignee: Chris Sibbitt <csibbitt>
Status: CLOSED UPSTREAM QA Contact: Leonid Natapov <lnatapov>
Severity: high Docs Contact:
Priority: low    
Version: 17.1 (Wallaby)CC: csibbitt, lmadsen, mmagr, mrunge
Target Milestone: gaKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2143331 (view as bug list) Environment:
Last Closed: 2023-01-23 20:28:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1872351, 2143331    

Description Leonid Natapov 2022-11-15 13:41:31 UTC
STF | Collectd deployed by tripleo-ansible fails to start because of the wrong path in include command in collectd.conf file

Error message:
configfile: stat (/var/lib/config-data/ansible-generated/collectd/etc/collectd.d) failed: No such file or directory
[2022-11-14 23:22:24] plugin_load: plugin "logfile" successfully loaded.
[2022-11-14 23:22:24] Initialization complete, entering read-loop.


The issue is that in the collectd.conf we include

<Include "/var/lib/config-data/ansible-generated/collectd/etc/collectd.d" >
  Filter "*.conf"
</Include>

and the path should be  <Include "/etc/collectd.d" >


After manually adjusting the path collectd was able to start and load plugins.

Comment 6 Chris Sibbitt 2022-11-22 17:03:33 UTC
I think this bug should already be fixed in OSP 18.

Here is the code in Wallaby (where the fix was never backported): https://opendev.org/openstack/tripleo-ansible/src/branch/stable/wallaby/tripleo_ansible/roles/tripleo_collectd/tasks/configure_collectd.yml#L225

Here it is in Zed: https://opendev.org/openstack/tripleo-ansible/src/branch/stable/zed/tripleo_ansible/roles/tripleo_collectd/tasks/configure_collectd.yml#L225

The difference is the '/' after collectd_conf_output_dir

Comment 7 Leif Madsen 2023-01-23 20:28:00 UTC
Closing this ticket as UPSTREAM. The fixes has landed upstream and will flow downstream appropriately. However, priority of this item is very low as it will not be recommended for production use, and thus will not work through the QE testing process.