podman/libpod/events
Paul Holzinger 99a14332ef
healthcheck: make sure to always show health_status events
This fixes a regression caused by commit 7e6e267329, unfortunately this
was not caught during review as for some reason this works fine rootless
and only fails as root.

Because we set the systemd log level to notice in order to hide the unit
started/stopped messages to prevent spamming the journal the issue is
that this now also causes systemd to ignore the events we write to
journald as we also send them as info level.

To fix this we simply send health_status events now on notice level. I
decided against sending all events on notice as I think info is fine for
them. Whenever the notice level is right is of course debatable but
given it may contain the unhealthy message I think having this a notice
should be ok.

The main reason this made it through testing is because we do not rely
on the systemd unit to fire healthchecks in the tests as this is flaky.
There is one test were we rely on it though and I added a check there
to make sure events are displayed correctly when trigger via systemd.

Fixes #20342

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-10-12 15:02:32 +02:00
..
config.go Fix language, typos and markdown layout 2023-07-24 11:18:25 +02:00
events.go Events for containers in pods now include the pod's ID 2022-09-22 14:18:56 -04:00
events_freebsd.go events: Fix spelling of newNullEventer 2022-09-13 08:38:13 +01:00
events_linux.go event backend none: return an error when reading events 2022-09-12 18:05:17 +02:00
events_unsupported.go events: Add freebsd support for libpod/event 2022-08-22 10:14:12 +01:00
filters.go fix: podman event --filter volume=vol-name should compare the event name with volume name 2023-05-22 19:11:15 +05:30
journal_linux.go healthcheck: make sure to always show health_status events 2023-10-12 15:02:32 +02:00
journal_unsupported.go
logfile.go events: no duplicates when streaming during a log rotation 2023-03-15 10:28:16 +01:00
logfile_test.go events: no duplicates when streaming during a log rotation 2023-03-15 10:28:16 +01:00
memory.go Add podman machine events 2022-05-03 13:49:01 -07:00
nullout.go Fix typos. Improve language. 2023-02-09 21:56:27 +01:00