OSP 16.1 | Overcloud deployment fails when trying to deploy with collectd. Bug occurs on OSP16.1. OSP16.0 same scenario can be deployed without issues. Overcloud deployment fails on collectd. I have tried two scenarios that involved collectd. 1.with enable-stf.yaml 2. with qdr-edge-only.yaml and collectd-write-qdr.yaml Both failed with the same error: May 5 01:06:35 controller-0 puppet-user[43101]: Error: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Package[collectd-python] is already declared at (file: /etc/puppet/modules/collectd/manifests/pl ugin/python.pp, line: 38); cannot redeclare (file: /etc/puppet/modules/tripleo/manifests/profile/base/metrics/collectd.pp, line: 285) (file: /etc/puppet/modules/tripleo/manifests/profile/base/metrics/collectd.pp, line: 285, column: 5) on node controller-0.redhat.local
Wonder if the default plugin list is not in sync between versions, and now `python` plugin is effectively being declared twice.
Package[collectd-python] resource has been added with [1]. We need to ass collectd::manage_package: false hiera to THT of collectd composable service. [1] https://github.com/voxpupuli/puppet-collectd/commit/672452018abefde44f18de9cb75a3102e0745f61#diff-72cdbba755da633a565633bae5731220
Whoops ... s/ass/add/
After the investigation today, https://bugzilla.redhat.com/show_bug.cgi?id=1831376#c3 is not the fix. puppet-collectd needs to be patched/fixed to not use requires, if manage_package is set to false.
Even when setting manage_package: true I am getting: May 14 15:23:59 puppet-user: Warning: ModuleLoader: module 'collectd' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\\n (file & line not available)", "<13>May 14 15:23:59 puppet-user: Warning: ModuleLoader: module 'concat' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules\\n (file & line not available)", "<13>May 14 15:24:00 puppet-user: Error: Could not find resource 'Package[collectd]' in parameter 'require' on node compute-0.redhat.local", "+ rc=1", "+ '[' False = false ']'", "+ set -e", "+ '[' 1 -ne 2 -a 1 -ne 0 ']'", "+ exit 1", " attempt(s): 1", "2020-05-14 15:24:03,930 WARNING: 120678 -- Retrying running container: collectd", basically, that is unchanged between manage_package set to true or false.
connected to this: https://github.com/openstack/puppet-tripleo/commit/4cefed3c01311a79079434e74150db838d7a9950
Apparently, this is probably a duplicate of 1834985 *** This bug has been marked as a duplicate of bug 1834985 ***