-
-
Notifications
You must be signed in to change notification settings - Fork 525
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
Exiting second container breaks first opened container (MacOS) #735
Comments
Thanks for the bug report! This problem is specific to the MacOS implementation of the container method. The shutdown process of any container method session removes the magic loopback IP. This causes all other container method sessions to fail as soon as anything in the container tries to talk to anything in the cluster, starting with
This is prompted by We can fix this by addressing #224. We can avoid this and similar issues entirely by fixing #726. We can also work around this, sort of, by creating but not removing the magic loopback IP, in essence leaking it. Having an extra loopback IP address doesn't really cause any harm unless the user is running other weird, network-tweaking tools besides Telepresence. It will get cleaned up by a reboot. |
Thanks for insight, I appreciate the fullness of the answer. For now, I'll just take things one container at a time :) |
Telepresence 0.95 includes #726, which I believe fixes this issue. Can you please give it a try? |
I believe this is fixed. If you run into it again, please re-open. Thanks! |
What were you trying to do?
Attempting to follow the docker tutorial.
What did you expect to happen?
Expected the curl requests to go back to the qotm running older, cluster version.
What happened instead?
Something crashed and the alpine image started behaving very oddly (like not showing every other key stroke? Maybe the interactive prompt got overlaid weirdly or something.)
Steps
Started the pre-baked
qotm
k8s service:Then in terminal 1 ran the alpine container and curled:
In terminal 2, started the override deployment for qotm (note, I've already changed just the version number in the python source):
And back on terminal 1, curl it:
Perfect. As seen in terminal 2:
Now, when I
ctrl-c
the terminal 2 window:No other output -- clean exit as far as I can see; terminal 1 also shows nothing. Then I issue another curl on terminal 2:
And then the trace gets wrapped all kinds of weird around the screen.
Automatically included information
Command line:
['/usr/local/bin/telepresence', '--docker-run', '-i', '-t', 'alpine', '/bin/sh']
Version:
0.90
Python version:
3.7.0 (default, Jul 23 2018, 20:22:55) [Clang 9.1.0 (clang-902.0.39.2)]
kubectl version:
Client Version: v1.11.1 // Server Version: v1.9.2
oc version:
(error: [Errno 2] No such file or directory: 'oc': 'oc')
OS:
Darwin Jmina-mp 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64
Traceback:
Full log:
telepresence.log
The text was updated successfully, but these errors were encountered: