-
Notifications
You must be signed in to change notification settings - Fork 119
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
Container.exec hangs unexpectedly #760
Comments
Interesting, thanks for the report. Hmm, no, no real sense without digging in. However, I did just run into a very similar issue with |
@rwcarlsen have you run into this issue since? Do we have a path forward to maybe addressing and fixing this? |
It's still a problem as far as I know although I haven't checked it recently. It was a very reproduceable/persistent problem that seems unlikely to just go away without someone coming up with a direct fix. I just haven't made it a priority to investigate further. |
We run a bunch of automated exec tests against real Pebble in CI and don't have any issues there. Closing this for now unless and until we have a recent, specific repro case. |
I have a k8s charm I've been tinkering with (github.com/rwcarlsen/icecream-k8s-operator). In it, I call
process = container.exec(['apt', 'install', '-y', 'foo'])
to install a couple packages viaapt
on the workload container. When I do thisprocess.wait()
unexpectedly hangs indefinitely. The charm/ops traceback info when things are hung is:I still don't understand exactly what is causing the hang. But when I do
container.exec(['apt', 'install', '-y', 'foo'], stderr=sys.stderr, stdout=sys.stdout)
(adding the stdout/err kwargs), it doesn't hang and works as expected. @benhoyt - any sense for what/where the culprit might be?The text was updated successfully, but these errors were encountered: