With this update the `CollectdContainerAdditionalCapAdd` variable is added to the deployment tool. This variable is a comma separated list of additional collectd container capabilities.
DescriptionLuigi Tamagnone
2021-07-20 16:41:39 UTC
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.
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
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.