-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
When tty in use the short running exec can miss part of the output #8483
Comments
Thank you for the issue report @afazekas! Hm, so a
Unfortunately the issue not reproducible for me locally. If it's for you, do you think you could extract the CRI-O debug logs to see if there is anything unusual? The journal logs around that time may also provide some more insights. I also assume that you use |
Thanks for the quick replay. I am using the system defaults so The different on the strace, when used kubectl/oc. [core@master-0 ~]$ grep mytext_128 /tmp/crio_traces2 | cut -c 1-120
3178 13:40:29.288050 <... read resumed>"\0\0\4\10\0\1\3372\t\0\2\0\0\0\0\4\10\0\0\0\0\0\0\0021E\0\0\t\1\4\1\3372\r\203\
3182 13:40:30.542290 write(355, "{\"terminal\":true,\"user\":{\"uid\":0,\"gid\":0,\"additionalGids\":[0]},\"args\":[\"e
542532 13:40:31.670033 <... read resumed>"{\"terminal\":true,\"user\":{\"uid\":0,\"gid\":0,\"additionalGids\":[0]},\"arg
542744 13:40:32.738801 write(11, "{\"args\":[\"echo\",\"mytext_128\"],\"env\":[\"PATH=/usr/local/sbin:/usr/local/bin:/us
542754 13:40:33.124418 <... read resumed>"{\"args\":[\"echo\",\"mytext_128\"],\"env\":[\"PATH=/usr/local/sbin:/usr/local
542754 13:40:33.613695 execve("/usr/bin/echo", ["echo", "mytext_128"], ["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/
542754 13:40:33.674204 write(1, "mytext_128\n", 11 <unfinished ...>
542744 13:40:33.681543 <... read resumed>"mytext_128\n", 32768) = 11
542744 13:40:33.682206 write(1, "mytext_128\n", 11 <unfinished ...>
3178 13:40:33.683174 <... read resumed>"mytext_128\r\n", 32768) = 12
3178 13:40:33.687257 write(337, "mytext_128\r\n", 12 <unfinished ...> [core@master-0 ~]$ grep mytext_129 /tmp/crio_traces2 | cut -c 1-120
17804 13:40:33.983960 <... read resumed>"\0\0\t\1\4\1\3372S\203\206\370\354\353\352\351\350\347\0\0_\0\1\1\3372S\0\0\0\0
18206 13:40:34.928224 write(321, "{\"terminal\":true,\"user\":{\"uid\":0,\"gid\":0,\"additionalGids\":[0]},\"args\":[\"e
542976 13:40:35.921860 <... read resumed>"{\"terminal\":true,\"user\":{\"uid\":0,\"gid\":0,\"additionalGids\":[0]},\"arg
543055 13:40:36.886683 write(11, "{\"args\":[\"echo\",\"mytext_129\"],\"env\":[\"PATH=/usr/local/sbin:/usr/local/bin:/us
543114 13:40:37.308786 <... read resumed>"{\"args\":[\"echo\",\"mytext_129\"],\"env\":[\"PATH=/usr/local/sbin:/usr/local
543114 13:40:37.889139 execve("/usr/bin/echo", ["echo", "mytext_129"], ["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/
543114 13:40:37.962068 write(1, "mytext_129\n", 11 <unfinished ...>
543196 13:40:37.974473 <... read resumed>"mytext_129\n", 32768) = 11
543196 13:40:37.975805 write(1, "mytext_129\n", 11 <unfinished ...>
17976 13:40:37.977743 <... read resumed>"mytext_129\r\n", 32768) = 12 It is visible the |
log has something strange which sounds related. Probably not just from the bad cases.
|
Can you try in a "CRC VM for OpenShift 4.15.17", or can you suggest a crc version when it is not reproducible ? |
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
What happened?
e2e end testuite used
oc rsh
to verify parts of the running system,the expected standard output was missing ~ 1% of the time.
What did you expect to happen?
The full stdout/stderr of a command is visible even when
exec -it
used 100% percent of the time.How can we reproduce it (as minimally and precisely as possible)?
Have any container running for instance busybox/fedora/.. running the sleep infinity.
oc rsh mycontainer echo foobar
or
crictl exec -it mycontainer echo foobar
Did not had issue:
without -i or without -t
oc exec mycontainer -- echo foobar
waiting at the end
kubectl exec -it mycontainer -- sh -c "echo mytext_$i; sleep 1"`
Anything else we need to know?
Simple script:
Bumped cri-o version did not solved the issue.
podman with crun/runc did not had similar issue.
CRI-O and Kubernetes version
OS version
Additional environment details (AWS, VirtualBox, physical, etc.)
The text was updated successfully, but these errors were encountered: