Description of problem: Smart plugin could be configured via TripleO but doesn't work because CAP_SYS_RAWIO capability missing. Version-Release number of selected component (if applicable): Red Hat Openstack Platform 16.1 (RHOSP16.1) How reproducible: 1. Configure YAML to have collecd with smart plugin ~~~ parameter_defaults: ExtraConfig: ceilometer::agent::polling::polling_interval: 5 collectd::plugin::smart::disks: ['sda', 'sdb', 'sdc', 'sdd', 'sde'] collectd::plugin::smart::ignoreselected: true EventPipelinePublishers: - gnocchi://?archive_policy=high - panko:// CeilometerQdrPublishEvents: true CeilometerEnablePanko: true CollectdEnableLibpodstats: false PankoEventTTL: 604800 MetricsQdrConnectors: - host: default-interconnect-5671-service-telemetry.apps.openshift-dev.ugent.be port: 443 role: edge sslProfile: sslProfile verifyHostname: false CollectdExtraPlugins: - cgroups - smart ~~~ 2. Deploy Openstack Actual results: The smart plugin is configured but through error for missing capability[1] Expected results: The smart plugin is configured Additional info: [1] collectd.log: [2021-07-14 13:35:08] smart plugin: Running collectd as root, but the CAP_SYS_RAWIO capability is missing. The plugin's read function will probably fail. Is your init system dropping capabilities? [2021-07-14 13:35:08] smart plugin: unable to open /dev/sda.
https://review.opendev.org/c/openstack/tripleo-heat-templates/+/801511
*** Bug 1984544 has been marked as a duplicate of this bug. ***
https://review.opendev.org/c/openstack/tripleo-heat-templates/+/809138 is merged in train now.
To test this: parameter_defaults: CollectdContainerAdditionalCapAdd: "CAP_SYS_RAWIO"
smart plugin successfully loaded [2022-03-15 17:49:20] plugin_load: plugin "smart" successfully loaded.
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 (Red Hat OpenStack Platform 16.1.8 bug fix and enhancement 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-2022:0986