Bug 1984556 - [RHOSP17] Smart plugin doesn't work for CAP_SYS_RAWIO capability missing.
Summary: [RHOSP17] Smart plugin doesn't work for CAP_SYS_RAWIO capability missing.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 17.0 (Wallaby)
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: beta
: 17.0
Assignee: Matthias Runge
QA Contact: Leonid Natapov
URL:
Whiteboard:
Depends On: 1984095 1984555
Blocks: 1984544
TreeView+ depends on / blocked
 
Reported: 2021-07-21 15:36 UTC by Matthias Runge
Modified: 2022-10-11 14:10 UTC (History)
12 users (show)

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" ----
Clone Of: 1984555
Environment:
Last Closed: 2022-09-21 12:16:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-6363 0 None None None 2021-11-15 13:05:23 UTC
Red Hat Product Errata RHEA-2022:6543 0 None None None 2022-09-21 12:16:45 UTC

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


Note You need to log in before you can comment on or make changes to this bug.