Bug 1984556
| Summary: | [RHOSP17] Smart plugin doesn't work for CAP_SYS_RAWIO capability missing. | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Matthias Runge <mrunge> |
| Component: | openstack-tripleo-heat-templates | Assignee: | Matthias Runge <mrunge> |
| Status: | CLOSED ERRATA | QA Contact: | Leonid Natapov <lnatapov> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 17.0 (Wallaby) | CC: | augol, jamsmith, jbadiapa, jhakimra, joflynn, lars, lmadsen, ltamagno, mburns, mmagr, mrunge, rhos-maint |
| Target Milestone: | beta | Keywords: | Triaged |
| Target Release: | 17.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-tripleo-heat-templates-14.3.1-0.20210929004400.782ba09.el8ost | Doc Type: | Bug Fix |
| Doc Text: |
The collectd smart plugin requires the CAP_SYS_RAWIO capability.
CAP_SYS_RAWIO is not present by default in the configuration, and before this update, you could not add it.
With this update, you can use the CollectdContainerAdditionalCapAdd parameter to add CAP_SYS_RAWIO.
Enter the following parameter value assignment in an environment file.
.Example
----
parameter_defaults:
CollectdExtraPlugins:
- smart
CollectdContainerAdditionalCapAdd: "CAP_SYS_RAWIO"
----
|
Story Points: | --- |
| Clone Of: | 1984555 | Environment: | |
| Last Closed: | 2022-09-21 12:16:04 UTC | Type: | --- |
| 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: | 1984095, 1984555 | ||
| Bug Blocks: | 1984544 | ||
|
Comment 4
Matthias Runge
2021-09-17 14:08:37 UTC
How to test
$ podman inspect collectd
see "CapAdd", there should be
"CapAdd": [
"CAP_IPC_LOCK"
],
Then, add to a deployment yaml file:
CollectdContainerAdditionalCapAdd:
- "CAP_SYS_RAWIO"
and redeploy. It should get added to collectd Capabilites
That was not possible before this change.
[2022-06-20 10:42:26] plugin_load: plugin "smart" successfully loaded. No "CAP_SYS_RAWIO capability is missing" error messages observed. I have also verified that the documentation at https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.2/html/operational_measurements/collectd-plugins_assembly under the _collectd::plugin::smart_ section does refer to this capability. 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 (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), 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/RHEA-2022:6543 |