telepresenceio / telepresence

Local development against a remote Kubernetes or OpenShift cluster
https://www.telepresence.io
Other
6.53k stars 515 forks source link

Telepresence crashes while swapping deployment under OSX + minikube + virtualbox #1472

Closed rickr-pax closed 1 month ago

rickr-pax commented 3 years ago

What were you trying to do?

OSX: 10.15.6 minikube: 1.15.1 (--driver virtualbox) virtualbox: 6.1.16

debug using --swap-deployment

What did you expect to happen?

not to crash

What happened instead?

crash (also crashes with "old behaviour" env var set to 1)

T: Using a Pod instead of a Deployment for the Telepresence proxy. If you experience problems, please file an issue! T: Set the environment variable TELEPRESENCE_USE_DEPLOYMENT to any non-empty value to force the old behavior, e.g., T: env TELEPRESENCE_USE_DEPLOYMENT=1 telepresence --run curl hello

T: Starting proxy with method 'vpn-tcp', which has the following limitations: All processes are affected, only one telepresence can run per machine, and you can't use other VPNs. You may need to add cloud hosts and headless services with T: --also-proxy. For a full list of method limitations see https://telepresence.io/reference/methods.html T: Volumes are rooted at $TELEPRESENCE_ROOT. See https://telepresence.io/howto/volumes.html for details. T: Starting network proxy to cluster by swapping out Deployment taskmgr-controller with a proxy Pod T: Forwarding remote port 8585 to local port 8585.

Looks like there's a bug in our code. Sorry about that! ...

Automatically included information

Command line: ['/usr/local/bin/telepresence', '--swap-deployment', 'taskmgr-controller', '--namespace', 'dmesh', '--env-json', 'a.json'] Version: 0.108 Python version: 3.8.6 (default, Oct 26 2020, 12:28:13) [Clang 11.0.0 (clang-1100.0.33.17)] kubectl version: Client Version: v1.19.4 // Server Version: v1.19.0 oc version: (error: [Errno 2] No such file or directory: 'oc') OS: Darwin datarobot-rickr 19.6.0 Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64 x86_64

Traceback (most recent call last):
  File "/usr/local/bin/telepresence/telepresence/cli.py", line 135, in crash_reporting
    yield
  File "/usr/local/bin/telepresence/telepresence/main.py", line 81, in main
    user_process = launch(
  File "/usr/local/bin/telepresence/telepresence/outbound/setup.py", line 111, in launch
    return launch_vpn(
  File "/usr/local/bin/telepresence/telepresence/outbound/local.py", line 126, in launch_vpn
    connect_sshuttle(runner, remote_info, also_proxy, ssh)
  File "/usr/local/bin/telepresence/telepresence/outbound/vpn.py", line 110, in connect_sshuttle
    raise RuntimeError("vpn-tcp tunnel did not connect")
RuntimeError: vpn-tcp tunnel did not connect

Logs:

uest from ('10.20.241.81', 50852) to None: 41 bytes
  44.9  13 | 2020-11-18T06:46:39+0000 [stdout#info] A query: b'datarobot.jamfcloud.com'
  44.9  13 | 2020-11-18T06:46:39+0000 [DNSDatagramProtocol (UDP)] DNSDatagramProtocol starting on 6464
  44.9  13 | 2020-11-18T06:46:39+0000 [DNSDatagramProtocol (UDP)] Starting protocol <twisted.names.dns.DNSDatagramProtocol object at 0x7f34f1676e10>
  45.0  13 | 2020-11-18T06:46:39+0000 [-] (UDP Port 6464 Closed)
  45.0  13 | 2020-11-18T06:46:39+0000 [-] Stopping protocol <twisted.names.dns.DNSDatagramProtocol object at 0x7f34f1676e10>
  46.4 TEL | [42] timed out after 5.01 secs.
  46.4 TEL | [43] Capturing: python3 -c 'import socket; socket.gethostbyname("hellotelepresence-8.a.sanity.check.telepresence.io")'
  46.4  24 | c : DNS request from ('10.20.241.81', 62287) to None: 68 bytes
  46.4  13 | 2020-11-18T06:46:40+0000 [stdout#info] Sanity check: b'hellotelepresence-8.a.sanity.check.telepresence.io'
  47.4 TEL | [43] timed out after 1.01 secs.
github-actions[bot] commented 1 month ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in 7 days.

github-actions[bot] commented 1 month ago

This issue was closed because it has been stalled for 7 days with no activity.