Skip to content

Commit

Permalink
test: workaround a systemd issue in el10 restarting journald
Browse files Browse the repository at this point in the history
Due to systemd/systemd#33874
we need to clear the SubState=dead-resources-pinned of journald
when restarting it after the test.

Signed-off-by: Rich Megginson <[email protected]>
  • Loading branch information
richm committed Jul 30, 2024
1 parent cee7f8a commit b8af0cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/tests_imuxsock_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,17 @@
# odd idiosyncrasies
- name: Restart journald units
shell: |
set -euxo pipefail
exec 1>&2
for service in {{ __journald_units | join(" ") }}; do
if systemctl is-active "$service"; then
systemctl stop "$service" || :
sleep 1
fi
done
if [ "$(systemctl show -p SubState systemd-journald.service)" = SubState=dead-resources-pinned ]; then
systemctl clean --what fdstore systemd-journald.service
fi
for service in {{ __journald_units | join(" ") }}; do
if ! systemctl is-active "$service"; then
systemctl start "$service"
Expand Down

0 comments on commit b8af0cd

Please sign in to comment.