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

Ike expects a version of Telepresence you cannot get (easily) #1156

Open
cvicens opened this issue Feb 16, 2023 · 4 comments
Open

Ike expects a version of Telepresence you cannot get (easily) #1156

cvicens opened this issue Feb 16, 2023 · 4 comments
Labels
kind/bug Kind: Not working as expected

Comments

@cvicens
Copy link

cvicens commented Feb 16, 2023

Issue Overview

Unless you still have telepresence v1 you cannot run ike cli because v2 is not supported

Expected Behaviour

If I run:

$ oc get deploy
NAME                                     READY   UP-TO-DATE   AVAILABLE   AGE
fruit-gateway                            1/1     1            1           18h
fruit-service                            1/1     1            1           18h
fruit-service-db                         1/1     1            1           18h

And then I run:

$ ike develop  \
  --deployment fruit-gateway \
  --port 8080 \
  --watch \
  --run 'mvn quarkus:dev -f fruit-gateway/pom.xml' \
  --route header:end-user=alien-ike

This would work if I had telepresence v1 but I could only find v2 or at least fail for another reason...

Current Behaviour
failed executing command        {"error": "failed setting up session: failed obtaining telepresence version: you are using unsupported version of telepresence, please install v1.\nHead over to https://www.telepresence.io/docs/v1/reference/install/ for installation instructions.\n", "errorVerbose": "you are using unsupported version of telepresence, please install v1.\nHead over to https://www.telepresence.io/docs/v1/reference/install/ for installation instructions.\n\nfailed obtaining telepresence version\ngithub.com/maistra/istio-workspace/pkg/cmd/internal/session.ToOptions\n\t/home/circleci/.go_workspace/src/github.com/maistra/istio-workspace/pkg/cmd/internal/session/session_func.go:92\ngithub.com/maistra/istio-workspace/pkg/cmd/internal/session.Sessions\n\t/home/circleci/.go_workspace/src/github.com/maistra/istio-workspace/pkg/cmd/internal/session/session_func.go:18\ngithub.com/maistra/istio-workspace/pkg/cmd/develop.NewCmd.func2\n\t/home/circleci/.go_workspace/src/github.com/maistra/istio-workspace/pkg/cmd/develop/cmd.go:57\ngithub.com/spf13/cobra.(*Command).execute\n\t/home/circleci/.go_workspace/src/github.com/maistra/istio-workspace/vendor/github.com/spf13/cobra/command.go:916\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/home/circleci/.go_workspace/src/github.com/maistra/istio-workspace/vendor/github.com/spf13/cobra/command.go:1044\ngithub.com/spf13/cobra.(*Command).Execute\n\t/home/circleci/.go_workspace/src/github.com/maistra/istio-workspace/vendor/github.com/spf13/cobra/command.go:968\nmain.main\n\t/home/circleci/.go_workspace/src/github.com/maistra/istio-workspace/cmd/ike/main.go:48\nruntime.main\n\t/snap/go/current/src/runtime/proc.go:250\nruntime.goexit\n\t/snap/go/current/src/runtime/asm_amd64.s:1594\nfailed setting up session\ngithub.com/maistra/istio-workspace/pkg/cmd/develop.NewCmd.func2\n\t/home/circleci/.go_workspace/src/github.com/maistra/istio-workspace/pkg/cmd/develop/cmd.go:62\ngithub.com/spf13/cobra.(*Command).execute\n\t/home/circleci/.go_workspace/src/github.com/maistra/istio-workspace/vendor/github.com/spf13/cobra/command.go:916\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\t/home/circleci/.go_workspace/src/github.com/maistra/istio-workspace/vendor/github.com/spf13/cobra/command.go:1044\ngithub.com/spf13/cobra.(*Command).Execute\n\t/home/circleci/.go_workspace/src/github.com/maistra/istio-workspace/vendor/github.com/spf13/cobra/command.go:968\nmain.main\n\t/home/circleci/.go_workspace/src/github.com/maistra/istio-workspace/cmd/ike/main.go:48\nruntime.main\n\t/snap/go/current/src/runtime/proc.go:250\nruntime.goexit\n\t/snap/go/current/src/runtime/asm_amd64.s:1594"}
Steps To Reproduce

Already explained above

Additional Information

OpenShift 4.11

Istio Workspace
0.5.3 provided by Red Hat, Inc

@cvicens cvicens added the kind/bug Kind: Not working as expected label Feb 16, 2023
@bartoszmajsak
Copy link
Contributor

bartoszmajsak commented Feb 16, 2023

Hi @cvicens, sorry for the trouble.

This would work if I had telepresence v1 but I could only find v2 or at least fail for another reason...

I think they (datawire) try to get everyone on v2 as v1 is no longer supported (and both tools are entirely different in the way they work). We can't use v2 easily (if at all) though.

Here's what you can do (assuming you are on Fedora):

curl -sL https://packagecloud.io/install/repositories/datawireio/telepresence/script.rpm.sh | sudo bash
sudo dnf install telepresence

For deb package you can use script.deb.sh script instead.

I will put this in our docs for everyone else.

HTH

@cvicens
Copy link
Author

cvicens commented Apr 18, 2023

Sorry for the late reply! It's a pity I used to like telepresence a lot and even recommend it to customers... Are there any solutions planned?

@bartoszmajsak
Copy link
Contributor

Are there any solutions planned?

@cvicens what do you mean by planned? There are other tools out there that you can use.

@cvicens
Copy link
Author

cvicens commented Jul 25, 2023

Hi! and is Ike going to rely on one of those? BTW if kubefwd one of those?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Kind: Not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants