Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use journalctl -t fapolicyd to get fapolicyd log messages #41

Merged

Conversation

richm
Copy link
Contributor

@richm richm commented Aug 28, 2024

Cause: On EL10, using journalctl -u fapolicyd does not work - sometime
during fapolicyd startup, the UNIT field is dropped from the journald
log entries, which is what -u uses.

Consequence: The fapolicyd role never sees the journald log message that
says fapolicyd is listening for connections. The role fails saying that
the trustdb could not be updated.

Fix: Use journalctl -t fapolicyd instead. This uses the journald field
SYSLOG_IDENTIFIER which is stable and works on all supported platforms.

Result: The role can tell when fapolicyd is up and listening. The role
can successfully update the trust db.

Signed-off-by: Rich Megginson [email protected]

Cause: On EL10, using `journalctl -u fapolicyd` does not work - sometime
during fapolicyd startup, the `UNIT` field is dropped from the journald
log entries, which is what `-u` uses.

Consequence: The fapolicyd role never sees the journald log message that
says fapolicyd is listening for connections.  The role fails saying that
the trustdb could not be updated.

Fix: Use `journalctl -t fapolicyd` instead.  This uses the journald field
SYSLOG_IDENTIFIER which is stable and works on all supported platforms.

Result: The role can tell when fapolicyd is up and listening.  The role
can successfully update the trust db.

Signed-off-by: Rich Megginson <[email protected]>
@richm richm requested a review from spetrosi as a code owner August 28, 2024 16:58
@richm
Copy link
Contributor Author

richm commented Aug 28, 2024

[citest]

@spetrosi
Copy link
Contributor

[citest bad]

@richm richm merged commit 0b991dc into linux-system-roles:main Aug 29, 2024
16 checks passed
@richm richm deleted the fix-el10-wait-for-fapolicyd-listen branch August 29, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants