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

Fail to start workspaces using a factory link (DevWorkspace engine enabled) #19322

Closed
l0rd opened this issue Mar 18, 2021 · 4 comments
Closed
Labels
kind/bug Outline of a bug - must adhere to the bug report template.

Comments

@l0rd
Copy link
Contributor

l0rd commented Mar 18, 2021

Describe the bug

image

When I try to start a workspace using a factory link it fails with "Getting workspace detail data failed. Error: Failed to update. Could not retrieve devworkspace status information from spring-petclinic in namespace l0rd-che."

Che version

Nightly

Steps to reproduce

Deploy Che, on OpenShift, with devworkspace support enabled

$ cat patch.yaml
spec:
  devWorkspace:
    enable: true
$ chectl server:deploy --che-operator-cr-patch-yaml=patch.yaml \
                     -p openshift --no-olm-suggested-namespace \
                     -n workspaces-server

Open a factory link

open ${CHE_URL}/#https://github.com/l0rd/spring-petclinic/tree/devfile2  # <== devfile v2.0.0 

Runtime

OpenShift 4.7.1

Installation method

$ chectl version
chectl/0.0.20210317-next.8a10103 darwin-x64 node-v12.21.0

Environment

OpenShift dev cluster

Other information

$ k get dw
NAME               WORKSPACE ID                PHASE      INFO
spring-petclinic   workspace541792f585994771   Starting   Waiting for workspace routing objects

$ k get devworkspaceroutings
NAME                                AGE
routing-workspace541792f585994771   3m13s

$ k describe devworkspaceroutings
Name:         routing-workspace541792f585994771
Namespace:    l0rd-che
Labels:       controller.devfile.io/workspace_id=workspace541792f585994771
Annotations:  <none>
API Version:  controller.devfile.io/v1alpha1
Kind:         DevWorkspaceRouting
Metadata:
  Creation Timestamp:  2021-03-18T11:05:31Z
  Generation:          1
  Managed Fields:
    API Version:  controller.devfile.io/v1alpha1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:labels:
          .:
          f:controller.devfile.io/workspace_id:
        f:ownerReferences:
      f:spec:
        .:
        f:endpoints:
          .:
          f:che-machine-exec:
          f:theia-ide:
        f:podSelector:
          .:
          f:controller.devfile.io/workspace_id:
        f:routingClass:
        f:routingSuffix:
        f:workspaceId:
      f:status:
    Manager:    devworkspace-controller
    Operation:  Update
    Time:       2021-03-18T11:05:31Z
  Owner References:
    API Version:           workspace.devfile.io/v1alpha2
    Block Owner Deletion:  true
    Controller:            true
    Kind:                  DevWorkspace
    Name:                  spring-petclinic
    UID:                   541792f5-8599-4771-b93b-152b21331bb3
  Resource Version:        104542
  Self Link:               /apis/controller.devfile.io/v1alpha1/namespaces/l0rd-che/devworkspaceroutings/routing-workspace541792f585994771
  UID:                     ff315721-6b04-4f4c-9649-01c98ebdf9ab
Spec:
  Endpoints:
    Che - Machine - Exec:
      Attributes:
        Cookies Auth Enabled:  true
        Discoverable:          false
        Type:                  terminal
      Exposure:                public
      Name:                    che-machine-exec
      Protocol:                ws
      Target Port:             4444
    Theia - Ide:
      Attributes:
        Cookies Auth Enabled:  true
        Discoverable:          false
        Type:                  ide
      Exposure:                public
      Name:                    theia
      Protocol:                http
      Target Port:             3100
      Attributes:
        Cookies Auth Enabled:  true
        Discoverable:          false
        Type:                  webview
        Unique:                true
      Exposure:                public
      Name:                    webviews
      Protocol:                http
      Target Port:             3100
      Attributes:
        Cookies Auth Enabled:  true
        Discoverable:          false
        Type:                  mini-browser
        Unique:                true
      Exposure:                public
      Name:                    mini-browser
      Protocol:                http
      Target Port:             3100
      Attributes:
        Discoverable:  false
        Type:          ide-dev
      Exposure:        public
      Name:            theia-dev
      Protocol:        http
      Target Port:     3130
      Attributes:
        Discoverable:  false
      Exposure:        public
      Name:            theia-redirect-1
      Protocol:        http
      Target Port:     13131
      Attributes:
        Discoverable:  false
      Exposure:        public
      Name:            theia-redirect-2
      Protocol:        http
      Target Port:     13132
      Attributes:
        Discoverable:  false
      Exposure:        public
      Name:            theia-redirect-3
      Protocol:        http
      Target Port:     13133
      Attributes:
        Cookies Auth Enabled:  true
        Discoverable:          false
        Type:                  collocated-terminal
      Exposure:                public
      Name:                    terminal
      Protocol:                ws
      Target Port:             3333
  Pod Selector:
    controller.devfile.io/workspace_id:  workspace541792f585994771
  Routing Class:                         che
  Routing Suffix:                        apps.mloriedo-che-devex.devcluster.openshift.com
  Workspace Id:                          workspace541792f585994771
Events:                                  <none>
@l0rd l0rd added the kind/bug Outline of a bug - must adhere to the bug report template. label Mar 18, 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 Mar 18, 2021
@sleshchenko
Copy link
Member

It should be fixed after eclipse-che/che-theia#1037 and then the adaptation PR on Che Server side

@sleshchenko
Copy link
Member

Another issue is created to make the failure more clearer #19325

@l0rd
Copy link
Contributor Author

l0rd commented Mar 19, 2021

I confirm that it got fixed. I found another issue with endpoints not retrieved by Theia but I will create a separate issue for that.

@l0rd l0rd closed this as completed Mar 19, 2021
@l0rd
Copy link
Contributor Author

l0rd commented Mar 19, 2021

Here is my new issue #19347

@amisevsk amisevsk removed the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

No branches or pull requests

4 participants