-
Notifications
You must be signed in to change notification settings - Fork 318
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
crun does not wait for tty to receive error message for short lived process #1524
Comments
Does it happen on exec or create/start? I am trying to understand where the race could happen, in both cases, but I don't see where it could be |
Only on create wrt this issue. |
hm.. the
With these steps there is no way for a race, since the container payload itself is not running. Is conmon-rs doing anything differently? |
@giuseppe the issue is that it works neither with conmon nor conmon-rs. We would expect to get an error from the runtime like:
runc sends the terminal file descriptor and then the error message over it. crun does not send the file descriptor and reports the error using the CLI. |
Working on a fix now. |
This CRI-O test fails: https://github.com/cri-o/cri-o/blob/73b6f0dbc6d/test/ctr.bats#L790-L799
With the error (conmon):
From: https://github.com/cri-o/cri-o/blob/73b6f0dbc6da5c349aacb8393f0b33143325a694/internal/oci/runtime_oci.go#L298
journal:
Something similar happens when using conmon-rs:
journal:
The text was updated successfully, but these errors were encountered: