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

Logs are not displayed correctly under podman and conmon #2281

Open
yihuaf opened this issue Aug 20, 2023 · 0 comments
Open

Logs are not displayed correctly under podman and conmon #2281

yihuaf opened this issue Aug 20, 2023 · 0 comments

Comments

@yihuaf
Copy link
Collaborator

yihuaf commented Aug 20, 2023

Summary:


A side note that I noticed while making this : not all logs and errors that we are generating are actually getting displayed when using youki. For example, as of now, we verify the binary before running the container, and error if it does not exist. However, the podman log simply errors out, not showing anything, whereas with runc proper log of
missing executable is shown :

Youki
podman run --runtime $PWD/youki busybox /bin/bash
DEBUG youki: started by user 0 with ArgsOs { inner: ["...../youki/youki", "delete", "--force", "9c937d43d590695b71556382fd6d9f4baa51c9780c7969b94e7c7753ad542487"] }
DEBUG youki::commands::delete: start deleting 9c937d43d590695b71556382fd6d9f4baa51c9780c7969b94e7c7753ad542487
Error: container create failed (no logs from conmon): EOF

runc
podman run --runtime runc busybox /bin/bash
Error: runc create failed: unable to start container process: exec: "/bin/bash": stat /bin/bash: no such file or directory: OCI runtime attempted to invoke a command that was not found
I'm pretty sure that we are generating similar error and propagating that upwards. This is similarly observed in actual journalctl logs (after always enabling them for debug in this PR) , that not all of tracing logs are shown. cCan this be because with namespace change that we do in intermediate/init process, those logs are not getting forwarded properly?

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

No branches or pull requests

1 participant