Skip to content
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

unable to use private docker image repository #967

Closed
arroo opened this Issue Mar 28, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@arroo
Copy link

arroo commented Mar 28, 2019

What were you trying to do?

run telepresence using an image from an internally-hosted image repository

export TELEPRESENCE_REGISTRY=<internal repo url>:5000/public/datawire
telepresence --expose 3000 --swap-deployment todo-api --run go run main.go

What did you expect to happen?

it would run as normal

What happened instead?

it crashed

Automatically included information

Command line: ['/usr/bin/telepresence', '--expose', '3000', '--swap-deployment', 'todo-api', '--run', 'go', 'run', 'main.go']
Version: 0.97
Python version: 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0]
kubectl version: Client Version: v1.12.3 // Server Version: v1.9.5
oc version: (error: [Errno 2] No such file or directory: 'oc': 'oc')
OS: Linux midge 4.18.0-041800-lowlatency #201808122131 SMP PREEMPT Sun Aug 12 21:36:03 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Traceback (most recent call last):
  File "/usr/bin/telepresence/telepresence/cli.py", line 130, in crash_reporting
    yield
  File "/usr/bin/telepresence/telepresence/main.py", line 60, in main
    remote_info = start_proxy(runner)
  File "/usr/bin/telepresence/telepresence/proxy/__init__.py", line 104, in start_proxy
    run_id=run_id,
  File "/usr/bin/telepresence/telepresence/proxy/remote.py", line 195, in get_remote_info
    remote_version = remote_info.remote_telepresence_version()
  File "/usr/bin/telepresence/telepresence/proxy/remote.py", line 60, in remote_telepresence_version
    name, version = self.container_config["image"].split(":")
ValueError: too many values to unpack (expected 2)

Logs:

D SPAN deployment.py:150(supplant_deployment)   10.1s
  15.2 TEL | BEGIN SPAN remote.py:154(get_remote_info)
  15.2 TEL | BEGIN SPAN remote.py:78(get_deployment_json)
  15.2 TEL | [13] Capturing: kubectl --context lw2 --namespace default get deployment -o json --export --selector=telepresence=c40269ad1bd747c48ee541609bb28e85
  17.3 TEL | [13] captured in 2.07 secs.
  17.3 TEL | END SPAN remote.py:78(get_deployment_json)    2.1s
  17.3 TEL | Searching for Telepresence pod:
  17.3 TEL |   with name todo-api-c40269ad1bd747c48ee541609bb28e85-*
  17.3 TEL |   with labels {'app': 'todo', 'component': 'api', 'release': 'todo', 'telepresence': 'c40269ad1bd747c48ee541609bb28e85'}
  17.3 TEL | [14] Capturing: kubectl --context lw2 --namespace default get pod -o json --export --selector=telepresence=c40269ad1bd747c48ee541609bb28e85
  19.3 TEL | [14] captured in 1.99 secs.
  19.3 TEL | Checking todo-api-c40269ad1bd747c48ee541609bb28e85-5cb687959b-9dtnb
  19.3 TEL | Looks like we've found our pod!

@ark3 ark3 closed this in 3922845 Apr 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.