Bug 2217952 - "unable to send audit message" messages are logged during undercloud deployment for aodh_db_sync and neutron_db_sync
Summary: "unable to send audit message" messages are logged during undercloud deployme...
Keywords:
Status: MODIFIED
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z2
: 17.1
Assignee: Takashi Kajinami
QA Contact: Joe H. Rahme
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-27 15:30 UTC by Cédric Jeanneret
Modified: 2023-08-11 13:59 UTC (History)
3 users (show)

Fixed In Version: openstack-tripleo-heat-templates-14.3.1-17.1.20230706103744.3aca659.el8osttrunk
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 887061 0 None MERGED Enable CAP_AUDIT_WRITE for some containers/steps 2023-07-05 06:27:52 UTC
Red Hat Issue Tracker OSP-26172 0 None None None 2023-06-27 15:32:33 UTC
Red Hat Knowledge Base (Solution) 7022791 0 None None None 2023-07-03 09:39:26 UTC

Description Cédric Jeanneret 2023-06-27 15:30:20 UTC
This bug was initially created as a copy of Bug #2217889

I am copying this bug because: 
We need to get proper backport of the audit write capability patch.


Description of problem:

It looks like symptoms similar to upstream bugs https://bugs.launchpad.net/tripleo/+bug/1989247 and https://bugs.launchpad.net/tripleo/+bug/1942076 are reproduced in RHOSP 17.0:

Jun 19 20:03:24 director ansible-tripleo_container_manage[23525]: [WARNING] ERROR: Can't run container aodh_db_sync#012stderr: + sudo -E kolla_set_configs#012sudo: unable to send audit message: Operation not permitted
Jun 19 20:05:33 director ansible-tripleo_container_manage[23525]: [WARNING] ERROR: Can't run container neutron_db_sync#012stderr: + sudo -E kolla_set_configs#012sudo: unable to send audit message: Operation not permitted

From upstream's bug description it looks like it was a blocker for upstream. For customer's RHOSP 17.0 deployment it was cosmetic problem which didn't break anything. But it is misleading.


Version-Release number of selected component (if applicable):
python3-tripleoclient-16.5.1-0.20221207110335.23dbe54.el9ost.noarch


How reproducible:
Run undercloud deployment command for RHOSP 17.0


Actual results:
"sudo: unable to send audit message: Operation not permitted" errors are logged

Expected results:
"sudo: unable to send audit message: Operation not permitted" errors are not logged

Comment 1 Takashi Kajinami 2023-07-03 09:19:18 UTC
We later noticed podman 3.0 in CentOS8/RHEL8 does not contain https://github.com/containers/podman/pull/13744/commits/1cd529b22d40205c1f3246ed49f07e3615cf8292
thus does not allow using both privileged and cap add at the same time.

Because of this nova_migration_target container is not able to start in CentOS 8.
As a quick fix we decided to exclude this specific container.

If anyone find actual problems caused by the warning coming from nova_migration_target,
that needs further investigation mainly from nova's perspective. (We probably need to
check whether the container requires requires priviledge or not, first)


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