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 create workspace from sample on K8s due wrong URLs reported by devfile registry #20100

Closed
1 of 23 tasks
sleshchenko opened this issue Jul 8, 2021 · 11 comments
Closed
1 of 23 tasks
Assignees
Labels
area/devfile-registry kind/bug Outline of a bug - must adhere to the bug report template. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code.
Milestone

Comments

@sleshchenko
Copy link
Member

sleshchenko commented Jul 8, 2021

Describe the bug

Unable to create workspace from sample on K8s due wrong URLs reported by devfile registry:
Screenshot_20210708_105729

^ see the cluster internal IP is reported.

Che version

  • latest
  • nightly
  • other: please specify

Steps to reproduce

  1. Deploy Che on K8s with helm chart (chectl server:deploy --installer=helm --platform=minikube --multiuser)
  2. Open dashboard and check if samples have icons displayed.
  3. Try to create a workspace with sample.

Expected behavior

Icons are displayed and it's possible to create a workspace with sample.

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version)
  • minikube (include output of minikube version and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

see avove

Installation method

  • chectl
    • provide a full command that was used to deploy Eclipse Che (including the output)
    • provide an output of chectl version command
  • OperatorHub
  • I don't know

Environment

  • my computer
    • Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • other (please specify)
  • Dev Sandbox (workspaces.openshift.com)
  • other: please specify

Eclipse Che Logs

Additional context

@sleshchenko sleshchenko added kind/bug Outline of a bug - must adhere to the bug report template. area/devfile-registry labels Jul 8, 2021
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Jul 8, 2021
@sleshchenko sleshchenko changed the title Wrong devfile sample icon url when deploying on K8s with helm chart Unable to create workspace from sample on K8s due wrong URLs reported by devfile registry Jul 8, 2021
@sleshchenko sleshchenko added the severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code. label Jul 8, 2021
@svor
Copy link
Contributor

svor commented Jul 8, 2021

I don't see such problem with --installer=operator, only reproducible if use helm. @tolusha @mmorhun any idea what could be wrong?

@tolusha
Copy link
Contributor

tolusha commented Jul 8, 2021

I see that che-server returns correct settings:

{
  "supportedRecipeTypes": "kubernetes,no-environment",
  "che.workspace.auto_start": "true",
  "cheWorkspacePluginRegistryUrl": "https://plugin-registry-eclipse-che.192.168.99.100.nip.io/v3",
  "cheWorkspacePluginRegistryInternalUrl": "http://plugin-registry.eclipse-che.svc:8080/v3",
  "cheWorkspaceDevfileRegistryUrl": "https://devfile-registry-eclipse-che.192.168.99.100.nip.io",
  "cheWorkspaceDevfileRegistryInternalUrl": "http://devfile-registry.eclipse-che.svc:8080",
  "che.factory.default_plugins": "redhat/vscode-commons/latest",
  "che.factory.default_editor": "eclipse/che-theia/next",
  "che.workspace.storage.available_types": "persistent,ephemeral,async",
  "che.workspace.storage.preferred_type": "persistent",
  "che.devworkspaces.enabled": "false"
}

Is that dashboard who adjust url ?

@svor
Copy link
Contributor

svor commented Jul 8, 2021

@tolusha probably che-devfile-registry configmap should contain env variable with URL like here

@vitaliy-guliy
Copy link
Contributor

linking with #19084

@sleshchenko sleshchenko removed the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Jul 12, 2021
@tolusha
Copy link
Contributor

tolusha commented Jul 12, 2021

@sleshchenko @svor
Everything was working in 7.32.0
The problem can't be with helm templates.
eclipse-che/che-server#48 is not relevant.

@svor
Copy link
Contributor

svor commented Jul 12, 2021

@vitaliy-guliy Could you please check if the problem can be related to these changes eclipse-che/che-devfile-registry#420

@vitaliy-guliy
Copy link
Contributor

@vitaliy-guliy Could you please check if the problem can be related to these changes eclipse-che/che-devfile-registry#420

Yes, checking it..

@vitaliy-guliy
Copy link
Contributor

@sleshchenko @svor
Everything was working in 7.32.0
The problem can't be with helm templates.
eclipse-che/che-server#48 is not relevant.

Links to the devfiles were wrong for single-host deployments.
We form links, based on CHE_DEVFILE_REGISTRY_URL and it must be set into devfile registry container.

When deploying Che with helm, the variable is not set.

You could also open the conrainer logs and scroll to top.
There is a message, indicating missing variable.

WARNING: environment variable 'CHE_DEVFILE_REGISTRY_URL' not configured for an offline build of this registry. This may cause issues with importing projects in a workspace.

@tolusha
Copy link
Contributor

tolusha commented Jul 13, 2021

I've just deployed 7.32.0
I see the very same message

WARNING: environment variable 'CHE_DEVFILE_REGISTRY_URL' not configured for an offline build of this registry. This may cause issues with importing projects in a workspace.

But I can create a workspace.

@svor
Copy link
Contributor

svor commented Jul 13, 2021

It means that CHE_DEVFILE_REGISTRY_URL environment variable wasn't set for che-devfile-registry pod, probably the message should be improved. For my understanding CHE_DEVFILE_REGISTRY_URL should be defined in any case. If to compare configmap deployed via operator and helm we can see that env was set in operator deployment:
screenshot-127 0 0 1_34883-2021 07 13-09_56_36
but it is absent in the helm deplpoyment (also in 7.32.0 version):
screenshot-127 0 0 1_34883-2021 07 13-10_13_49

@tolusha
Copy link
Contributor

tolusha commented Jul 13, 2021

@svor @vitaliy-guliy
We've decided to revert changes in devfile registry not to take into account CHE_DEVFILE_REGISTRY_URL if it isn't set into a container and not to update helmcharts (basically it keeps 7.32.x version behavior)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devfile-registry kind/bug Outline of a bug - must adhere to the bug report template. severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code.
Projects
None yet
Development

No branches or pull requests

5 participants