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

Login to cluster does not work #2693

Closed
lgrossma opened this issue Dec 2, 2022 · 17 comments · Fixed by #2699
Closed

Login to cluster does not work #2693

lgrossma opened this issue Dec 2, 2022 · 17 comments · Fixed by #2699

Comments

@lgrossma
Copy link
Contributor

lgrossma commented Dec 2, 2022

On MacOS when trying to login to a cluster I get this message
Failed to login to cluster 'https://api.ocp2.adapters-crs.ccitredhat.com:6443' with 'Command failed: "/Users/lgrossma/.vscode/extensions/redhat.vscode-openshift-connector-1.0.1/out/tools/darwin/odo-darwin-amd64" login https://api.ocp2.adapters-crs.ccitredhat.com:6443 -u='developer' -p='developer' --insecure-skip-tls-verify ✗ x509: “kube-apiserver-lb-signer” certificate is not trusted '!

This is probably cause by same issue as here: https://bugzilla.redhat.com/show_bug.cgi?id=2097830 and thus MacOS specific issues. However, when testing for the 1.0.0 release, login worked without problems. Maybe it is also caused by MacOS 13

@dgolovin
Copy link
Collaborator

dgolovin commented Dec 3, 2022

@lgrossma could you try if
/Users/lgrossma/.vscode/extensions/redhat.vscode-openshift-connector-1.0.1/out/tools/darwin/oc" login https://api.ocp2.adapters-crs.ccitredhat.com:6443/ -u='developer' -p='developer' --insecure-skip-tls-verify
works as expected for you?

@dgolovin dgolovin self-assigned this Dec 3, 2022
@dgolovin dgolovin added this to the 1.1.0 milestone Dec 3, 2022
@dgolovin
Copy link
Collaborator

dgolovin commented Dec 3, 2022

@lgrossma The only thing changed is odo binary. Could you also download latest release from here and see if that works?

@lgrossma
Copy link
Contributor Author

lgrossma commented Dec 5, 2022

@lgrossma could you try if
/Users/lgrossma/.vscode/extensions/redhat.vscode-openshift-connector-1.0.1/out/tools/darwin/oc" login https://api.ocp2.adapters-crs.ccitredhat.com:6443/ -u='developer' -p='developer' --insecure-skip-tls-verify
works as expected for you?

This works for me as it uses oc version 4.9.5 which souldn't be affected by the error.

@lgrossma The only thing changed is odo binary. Could you also download latest release from here and see if that works?

could you please provide me with macos executable?

@mohitsuman
Copy link
Collaborator

@lgrossma The extension uses this version of odo for macOS https://github.com/redhat-developer/vscode-openshift-tools/blob/main/src/tools.json#L19

@lgrossma
Copy link
Contributor Author

lgrossma commented Dec 5, 2022

So the version for MacOS does not work. Seems like it is the same issue as it is with the oc..

@mohitsuman
Copy link
Collaborator

We are moving to odo 3.3.0 for the next iteration. This is the macOS binary for it https://developers.redhat.com/content-gateway/file/pub/openshift-v4/clients/odo/v3.3.0/odo-darwin-amd64.tar.gz

Can you check if this macOS binary works for you ? So that we understand if the issue is with binary or something else.

@lgrossma
Copy link
Contributor Author

lgrossma commented Dec 5, 2022

Still having the same error. Look at this: https://bugzilla.redhat.com/show_bug.cgi?id=2097830 seems that the problem that is happening in the OC is caused by golang and have not beed fixed yet. Not sure how odo is implemented, but I guess the cause will be probably the same..

@kadel
Copy link
Member

kadel commented Dec 6, 2022

Yes, odo is in the same situation as oc. I'm afraid that there is not much we can do :-/

What I do on my system is I export OpenShift certificate and mark it as trusted on my system. This is described in one of the comments at https://bugzilla.redhat.com/show_bug.cgi?id=2097830#c27

@lgrossma
Copy link
Contributor Author

lgrossma commented Dec 6, 2022

Yes, odo is in the same situation as oc. I'm afraid that there is not much we can do :-/

What I do on my system is I export OpenShift certificate and mark it as trusted on my system. This is described in one of the comments at https://bugzilla.redhat.com/show_bug.cgi?id=2097830#c27

That is true. However, that workaround only works for login with token if I am not mistaken so the issue for other login method still remains.

@mohitsuman
Copy link
Collaborator

If this is macOS 13 issue, we can just mark it as known issue and pin it. Hopefully by next release, the oc and odo issue will get resolved.

@lgrossma
Copy link
Contributor Author

lgrossma commented Dec 6, 2022

If this is macOS 13 issue, we can just mark it as known issue and pin it. Hopefully by next release, the oc and odo issue will get resolved.

I'm afraid that this is macOS general issue

@mohitsuman
Copy link
Collaborator

@lgrossma So let's say we use the 1.0 release and use odo 3.0 there, then it works on macOS perfectly? But when we move to 3.3.0, then the login fails on macOS (any version). If yes, then this is a blocker for the release.

@lgrossma
Copy link
Contributor Author

lgrossma commented Dec 6, 2022

@mohitsuman exactly as you say

@dgolovin
Copy link
Collaborator

dgolovin commented Dec 7, 2022

@lgrossma @mohitsuman @kadel on vscode side we can use oc to login, we keep oc 4.9 and this should let us to do release. WDYT?

dgolovin added a commit to dgolovin/vscode-openshift-tools that referenced this issue Dec 7, 2022
@dgolovin
Copy link
Collaborator

dgolovin commented Dec 7, 2022

I am going to push it master, to get new nightly build available for testing.

@odockal
Copy link
Contributor

odockal commented Dec 7, 2022

@dgolovin @lgrossma @mohitsuman Guys, I do not have a mac to verify this. If someone could do that, please.

@dgolovin
Copy link
Collaborator

dgolovin commented Dec 7, 2022

@odockal works on my old MacOS 10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants