-
Notifications
You must be signed in to change notification settings - Fork 178
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
Configure podman to log to journald instead of files #3763
Conversation
/azp run ci |
Azure Pipelines successfully started running 1 pipeline(s). |
LGTM as long as testing in INT goes well. |
Modified one of the INT VMSS instances with the change:
No more log files. This means that our components now log twice to the journal: once directly and once via stdout.
Also confirmed components still log to Geneva in ARORPLogs / ServiceLogs as expected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the direction here regardless of how the Jira is groomed. My only question is if we can take this a step further and stop -v
on journal as well in RP components.
[containers] | ||
log_driver = "journald" | ||
EOF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: elsewhere in this file, container systemd units are configured with:
-v /run/systemd/journal:/run/systemd/journal
does this change make that irrelevant, or would we need additional changes to our logger configuration at a golang level to stop "double logging" to journal (or, at the very least, implement principal of least privilege for host mounting of system files)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh lol, you already left a comment about this elsewhere haha - I think this is worth fixing, if for nothing else, kusto query performance.
Please rebase pull request. |
Which issue this PR addresses:
Fixes ARO-8920
This PR will be superseded by #3741.
What this PR does / why we need it:
Switch podman's log driver to
journald
to avoid writing to per-container log files and subsequently filling the disk. Mdsd already ships the journal, so there should be no change in log availability in Kusto.Test plan for issue:
Deploy to INT and verify containers are using the correct log driver. Verify container logs show up in Kusto.
Is there any documentation that needs to be updated for this PR?
https://msazure.visualstudio.com/AzureRedHatOpenShift/_wiki/wikis/ARO.wiki/64663/Current-known-and-outstanding-issues?anchor=gateway-log-rotate-not-functioning is no longer needed.
How do you know this will function as expected in production?
Deployed
containers.conf
onto a VMSS instance in INT and confirmed logging changed as desired and that there was no impact on ServiceLogs.