Bug 1967878 - [16.2] Make podman events log to the journal and not to a file
Summary: [16.2] Make podman events log to the journal and not to a file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: tripleo-ansible
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: 16.2 (Train on RHEL 8.4)
Assignee: Michele Baldessari
QA Contact: Joe H. Rahme
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-04 09:47 UTC by Michele Baldessari
Modified: 2021-09-15 07:16 UTC (History)
7 users (show)

Fixed In Version: tripleo-ansible-0.7.1-2.20210603175836.el8ost.5 openstack-tripleo-heat-templates-11.5.1-2.20210603174816.el8ost.4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-15 07:15:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1923607 0 None None None 2021-06-04 09:52:37 UTC
OpenStack gerrit 794633 0 None MERGED Add podman's events_logger option by default set to journald 2021-06-10 06:44:21 UTC
OpenStack gerrit 794634 0 None MERGED Allow customizing podman's [engine]/events_logger 2021-06-10 11:33:58 UTC
Red Hat Product Errata RHEA-2021:3483 0 None None None 2021-09-15 07:16:07 UTC

Comment 10 David Rosenfeld 2021-06-30 22:37:01 UTC
1. In default deployment:

[heat-admin@controller-0 ~]$ more /etc/containers/containers.conf

[containers]
pids_limit = 4096
[engine]
events_logger = "journald"

[heat-admin@controller-0 ~]$ sudo ls -lrt /run/libpod/events
total 0

In standard deployment events.log is no longer being filled with podman events.


2. In a deployment where podman-baremetal-ansible.yaml updated to log to a file:

heat-admin@controller-0 ~]$ more /etc/containers/containers.conf

[containers]
pids_limit = 4096
[engine]
events_logger = "file"


sudo ls -lrt /run/libpod/events
total 1288
-rw-r--r--. 1 root root       0 Jun 30 18:45 events.log.lock
-rwx------. 1 root root 1317168 Jun 30 19:09 events.log

a few minutes later:

sudo ls -lrt /run/libpod/events
total 1644
-rw-r--r--. 1 root root       0 Jun 30 18:45 events.log.lock
-rwx------. 1 root root 1683401 Jun 30 19:15 events.log

Logging to a file may be enabled if needed.

Comment 13 errata-xmlrpc 2021-09-15 07:15:41 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 (Red Hat OpenStack Platform (RHOSP) 16.2 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/RHEA-2021:3483


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