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

VS Code OpenShift Toolkit extension does not detect connection on the cluster it is deployed on #4535

Open
vrubezhny opened this issue Oct 8, 2024 · 3 comments
Assignees
Labels
Milestone

Comments

@vrubezhny
Copy link
Contributor

VS Code OpenShift Toolkit extension does not detect connection on the cluster it is deployed on even if VS Code Kubernetes is able to detect it.

See the details and Steps to Reproduce at: eclipse-che/che#23183

@adietish
Copy link
Contributor

adietish commented Oct 9, 2024

I cannot reproduce this locally. I have the Red Hat Sandbox set as current cluster:

apiVersion: v1
clusters:
- cluster:
    server: https://api.sandbox-XXXXX.openshiftapps.com:6443
  name: api-sandbox-XXXXX-openshiftapps-com:6443
contexts:
- context:
    cluster: api-sandbox-XXXXX-openshiftapps-com:6443
    namespace: adietish-dev
    user: adietish/api-sandbox-XXXXX-openshiftapps-com:6443
  name: adietish-dev/api-sandbox-XXXXX-openshiftapps-com:6443/adietish
current-context: adietish-dev/api-sandbox-XXXXX-openshiftapps-com:6443/adietish
kind: Config
preferences: {}
users:
- name: adietish/api-sandbox-XXXXX-openshiftapps-com:6443
  user:
    token: sha256~XXXXXXXX

When launching the plugin I am logged in, I get the cluster listed.
It's only when my token is outdated that I get the "Login" button instead.

@vrubezhny vrubezhny self-assigned this Oct 9, 2024
@ibuziuk
Copy link
Member

ibuziuk commented Oct 16, 2024

@vrubezhny @adietish is it the same error - https://issues.redhat.com/browse/CRW-7526 ?

@adietish adietish moved this to 📋 Backlog in IDE Cloudaptors Oct 28, 2024
@vrubezhny vrubezhny moved this from 📋 Backlog to 📝 In Progress in IDE Cloudaptors Nov 21, 2024
@vrubezhny vrubezhny moved this from 📝 In Progress to 👀 In review in IDE Cloudaptors Feb 4, 2025
@vrubezhny
Copy link
Contributor Author

vrubezhny commented Feb 12, 2025

@vrubezhny @adietish is it the same error - https://issues.redhat.com/browse/CRW-7526 ?

@ibuziuk There actually could be a few issues:

  • The latest versions of GLIBC libs (required by the binaries we use, like oc and odo) aren't available on RHEL8-based workspace image.
  • No Kube config file available in user home nor KUBECONFIG env. variable is correctly set (should contain a list of one or more path to Kube config file(-s). This looks more like a workspace configuration issue, not of vscode-openshift-tools extension, but this still results to an activation failures in vscode-openshift-tools (the extension activation failures ate be fixed in 1.18.0, but still the cluster will not be available until Kube config gets available through the USER directory or the paths list in KUBECONFIG env. variable.

There might be some other problems but it's quite difficult to predict any without fixing the CHE-Workspace configuration (RHEL9-based image required + Kube config is to be correctly created and available for the extension) in advance.

When I was testing using the steps to reproduce provided in eclipse-che/che#23183 and UBI9-based Workspace image, the Kube config wasn't available, actually not even HOME env. variable was available, so the extension wasn't able to create an empty Kube config file (which could allow a user to manually connect to some cluster).

So, please, test the extension once again with VSCode Openshift Toolkit v.1.18.0 (released this week) and RHEL8-based CHE-Workspace image becomes finally available.

@vrubezhny vrubezhny modified the milestones: 1.18.0, 1.19.0 Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 👀 In review
Development

No branches or pull requests

3 participants