-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
podman logs fails in the face of log file rotation #8733
Comments
@haircommander I would figure this is more of a conmon issue then a podman issue? |
well, sort of. when podman logs is following a file, and that file is removed and recreated underneath it, I think the stream will stop (it'll get EOF). If this happens, I suppose it should try to reopen the file. I actually think this is a podman problem |
A Given |
Ok so Podman is not talking to conmon when this happens but reading the file directly? |
@baude PTAL, |
when following container log files, if the file gets rotated due to something like size limit, re-open it and keep following. Fixes: containers#8733 Signed-off-by: baude <[email protected]>
/kind bug
Description
podman logs -f ${_contid}
does not work in the face of log rotation.Steps to reproduce the issue:
Describe the results you received:
podman logs -f ${_contid}
stops following output of container when log file is rotated.Describe the results you expected:
podman logs -f ${_contid}
follows output of container even when log file is rotated.Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: