Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-2057

Could not start a workspace via factory using devfile 2.0

    XMLWordPrintable

Details

    • False
    • False
    • Hide
      = Could not start a workspace with factory using devfile 2.0 specification

      {prod-short} fails to start a workspace with a factory when the workspace is defined using the devfile 2.0 (DevWorkspace) specification. Then, {prod-short} displays the following error message:

      ----
      Getting workspace detail data failed. Failed to fetch the workspace sprin-petclinic, reason: Could not retrieve the main URL for the running workspace.
      ----

      .Workaround

      . Navigate to the DevWorkspace details
      . Edit the DevWorkspace YAML to set the endpoints attributes type to `main`.
      +
      ----
      endpoints:
        - attributes:
            type: main
      ----
      . Restart the DevWorkspace.
      Show
      = Could not start a workspace with factory using devfile 2.0 specification {prod-short} fails to start a workspace with a factory when the workspace is defined using the devfile 2.0 (DevWorkspace) specification. Then, {prod-short} displays the following error message: ---- Getting workspace detail data failed. Failed to fetch the workspace sprin-petclinic, reason: Could not retrieve the main URL for the running workspace. ---- .Workaround . Navigate to the DevWorkspace details . Edit the DevWorkspace YAML to set the endpoints attributes type to `main`. + ---- endpoints:   - attributes:       type: main ---- . Restart the DevWorkspace.

    Description

      Preconditions: 

      Launch the OCP v. 4.6 with properly mirroring and install CRW using  crwctl command. For exaple:

      ./crwctl server:deploy --no-olm-suggested-namespace --catalog-source-name=osbs-catalog-source --catalog-source-namespace=openshift-marketplace --package-manifest-name=codeready-workspaces --olm-channel=latest -n crw-dev-ws --che-operator-cr-patch-yaml=/tmp/che-cr-patch.yaml --workspace-engine=dev-workspace
      

      Go to the dashboard and paste the URL like: {{[your_host]/#
      https://gist.githubusercontent.com/l0rd/71a04dd0d8c8e921b16ba2690f7d5a47/raw/d520086e148c359b18c229328824dfefcf85e5ef/spring-petclinic-devfile-v2.0.0.yaml}}

      Expected result: the factory should be consume and related workspace should start
      Actual result: the workspace fails on the Open IDE phase

      Additional info: If we looks at the DevWorkspace details yaml for the current DW we can figure out that:

      ....
      endpoints: 
      
        - attributes: 
      
            type: ide
      

      But should be: type: main
      Looks like the changes from the PR: https://github.com/eclipse-che/che-plugin-registry/pull/963 have not been applied to the current assembly of CRW.
      If we change it on main and restart the DW - it will work

      Attachments

        Activity

          People

            nickboldt Nick Boldt
            mmusiien Maksym Musienko
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: