-
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
podman-remote exec -i, with stdin redirection, hangs #7360
Comments
info, images, run, networking tests: remove some skip_if_remote()s that were added in the varlink days. All of these tests now seem to work with APIv2. help test: check that first output line from 'podman --help' is the program description (regression check for containers#7273). load test: clean up stray images, rewrite test to make it conform to existing convention. In the process, discover and file containers#7337 exec test (and networking): file containers#7360, and add FIXME comment to skip()s suggesting evaluating those tests once that is fixed. pod test: now that containers#6328 is fixed, use 'podman pod inspect --format' instead of relying on jq Various other tests: add an explanation of why test is disabled so we can more easily distinguish "this will never be meaningful under remote" vs "hey, doesn't work for now, but maybe someday". Signed-off-by: Ed Santiago <[email protected]>
@mheon, do you have cycles to tackle it? My guts tell me you'll know where to punch :) |
Maybe? I'll self-assign, and we'll see how much I can get done this week. |
@mheon Any movement on this? |
Not yet. |
A friendly reminder that this issue had no activity for 30 days. |
Still present in ab1d3a5; removing stale-issue label. |
A friendly reminder that this issue had no activity for 30 days. |
@mheon Reminder. |
I will try and get to this in January. |
A friendly reminder that this issue had no activity for 30 days. |
Issue still present in master @ a475150 |
I wonder if Conmon 2.0.26 has resolved this - will re-test with it. |
A friendly reminder that this issue had no activity for 30 days. |
I am assuming this is fixed in Main, reopen if I am mistaken. |
also seems to happen when using the
docker cli: 20.10.5, build 55c4c88, macOS 11.2.3 x86_64 (server symlinks |
A friendly reminder that this issue had no activity for 30 days. |
Still present in master @ a67aec7, conmon-2.0.27-2.fc33 One more data point I hadn't noticed before: the |
A friendly reminder that this issue had no activity for 30 days. |
Still present in 6df37ab |
A friendly reminder that this issue had no activity for 30 days. |
@mheon This is the great albatross around podman's neck. ... |
The core problem: EOF on the client isn't being handled properly. We need to get an EOF to the server, without actually closing the connection - we're not done until the server finished streaming output. |
Seeing this is blocking vscode, it becomes more important. |
Alright, I know generally what needs to be done here. We need to do a one-sided close on the hijacked connection (client needs to close the write side of the conn, while the read side is left open). Unfortunately, that's not enough - the backend is still not terminating, so I need to get into the HTTP attach code and figure out why it's not terminating. |
Apparently it was a very simple fix. PR in progress. |
On EOF of STDIN, we need to perform a one-sided close of the attach connection on the client side, to ensure that STDIN finishing will also cause the exec session to terminate, instead of hang. Fixes containers#7360 Signed-off-by: Matthew Heon <[email protected]>
@mheon beast! |
In window 1:
$ ./bin/podman system service --timeout=0
In window 2:
Without
-i
there is no hang, but there is no output either.Regular (non-remote) podman works fine: output is as expected, and the
exec
returns immediately.master @ 748e882, root & rootless
The text was updated successfully, but these errors were encountered: