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-templatesAssignee: 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: betaKeywords: 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
https://review.opendev.org/c/openstack/tripleo-heat-templates/+/805559

Merged in wallaby.

Comment 5 Matthias Runge 2021-10-12 16:43:18 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.

Comment 8 Leonid Natapov 2022-06-21 13:17:15 UTC
[2022-06-20 10:42:26] plugin_load: plugin "smart" successfully loaded.

No  "CAP_SYS_RAWIO capability is missing" error messages observed.

Comment 9 Leif Madsen 2022-08-29 18:11:54 UTC
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.

Comment 13 errata-xmlrpc 2022-09-21 12:16:04 UTC
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