telepresenceio / telepresence

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

port forward didn't happen with k8s cluster pod #1333

Closed splnanthakumar closed 2 months ago

splnanthakumar commented 4 years ago

What were you trying to do?

i am trying to do port forwarding my pod from kubernetes cluster to my local machine (macOS)

What did you expect to happen?

expecting that debugging will be enabled with the k8s pod

What happened instead?

(please tell us - the traceback is automatically included, see below. use https://gist.github.com to pass along full telepresence.log)

Automatically included information

Command line: ['/usr/local/bin/telepresence', '--swap-deployment', 'test_deployment', '--namespace', 'test', '--also-proxy', '10.2.0.0/16', '--also-proxy', '192.168.0.0/16', '--expose', '5555:5555'] Version: 0.99 Python version: 3.7.3 (default, Mar 27 2019, 09:23:39) [Clang 10.0.0 (clang-1000.11.45.5)] kubectl version: Client Version: v1.11.2 // Server Version: v1.14.10 oc version: (error: [Errno 2] No such file or directory: 'oc': 'oc') OS: Darwin Nanthakumar.local 17.7.0 Darwin Kernel Version 17.7.0: Thu Jan 23 07:05:23 PST 2020; root:xnu-4570.71.69~1/RELEASE_X86_64 x86_64

Traceback (most recent call last):
  File "/usr/local/bin/telepresence/telepresence/cli.py", line 136, in crash_reporting
    yield
  File "/usr/local/bin/telepresence/telepresence/main.py", line 77, in main
    runner, remote_info, env, socks_port, ssh, mount_dir, pod_info
  File "/usr/local/bin/telepresence/telepresence/outbound/setup.py", line 73, in launch
    runner_, remote_info, command, args.also_proxy, env, ssh
  File "/usr/local/bin/telepresence/telepresence/outbound/local.py", line 121, in launch_vpn
    connect_sshuttle(runner, remote_info, also_proxy, ssh)
  File "/usr/local/bin/telepresence/telepresence/outbound/vpn.py", line 311, in connect_sshuttle
    raise RuntimeError("vpn-tcp tunnel did not connect")
RuntimeError: vpn-tcp tunnel did not connect

Logs:

81.6 TEL | [62] Capturing: python3 -c 'import socket; socket.gethostbyname("hellotelepresence-7.a.sanity.check.telepresence.io")'
  81.7  45 | c : DNS request from ('2409:4072:631a:4cd2:fc48:c233:492a:99b1', 55429, 0, 0) to None: 68 bytes
  82.2  17 | 2020-05-01T10:54:20+0000 [stdout#info] Sanity check: b'hellotelepresence-7.a.sanity.check.telepresence.io'
  82.2 TEL | [62] exit 1 in 0.60 secs.
  82.3 TEL | Wait for vpn-tcp connection: hellotelepresence-8
  82.3 TEL | [63] Capturing: python3 -c 'import socket; socket.gethostbyname("hellotelepresence-8")'
  84.8 TEL | [63] exit 1 in 2.42 secs.
  84.8 TEL | [64] Capturing: python3 -c 'import socket; socket.gethostbyname("hellotelepresence-8.a.sanity.check.telepresence.io")'
  84.8  45 | c : DNS request from ('2409:4072:631a:4cd2:fc48:c233:492a:99b1', 63334, 0, 0) to None: 68 bytes
  85.5  17 | 2020-05-01T10:54:23+0000 [stdout#info] Sanity check: b'hellotelepresence-8.a.sanity.check.telepresence.io'
  85.5 TEL | [64] exit 1 in 0.76 secs.
github-actions[bot] commented 2 months 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 2 months ago

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