-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
flake: podman logs: sometimes emits wrong output #8879
Comments
Update: it's looking likely that the |
Forgot to update here: the job without |
Can you paste the content of the log file please? It could be that podman logs works correct and the file is wrong. |
Good idea. $ ./bin/podman logs test | cat -vET
1^M$
^M$
$ cat -vET ~/.local/share/containers/storage/overlay-containers/<sha>/userdata/ctr.log
2021-01-05T09:30:48.745347870-07:00 stdout F 1^M$
2021-01-05T09:30:48.745347870-07:00 stdout P 2$
2021-01-05T09:30:48.745582542-07:00 stdout F ^M$ On a good container: $ cat -vET ~/.local/share/containers/storage/overlay-containers/<sha>/userdata/ctr.log
2021-01-06T13:53:05.349022525-07:00 stdout F 1^M$
2021-01-06T13:53:05.349022525-07:00 stdout F 2^M$ |
OK |
If a partial log line has the length 1 it was ignored by podman logs. Fixes containers#8879 Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
podman logs
is sometimes returning the wrong result. It actually seems to be a problem with the stored output, notpodman logs
itself; i.e. once a container gets in this bad state, all futurepodman logs
commands will fail.Simpleminded overview (not a reproducer):
Sample failed results:
Context: seeing this kind of regularly in integration tests:
Podman logs [It] Make sure logs match expected length
Reproducer [podman-logs-flake.sh.txt]:
It takes several hours to fail on my laptop. Once it fails, the container is left in place, and all subsequent
podman log test
commands will remain consistent with the first failure.master @ 23f25b8. Seems to happen both root and rootless, f32 and f33; even once on ubuntu 19.
The text was updated successfully, but these errors were encountered: