Uploaded image for project: 'Red Hat CodeReady Workspaces'
  1. Red Hat CodeReady Workspaces
  2. CRW-2253

DevWorkspace fails to start when use factory link from upstream java-spring sample

    XMLWordPrintable

Details

    • Workaround Exists
    • Hide

      Instead of using Che devfiles (community support), use CRW devfiles (product support).

      Show
      Instead of using Che devfiles (community support), use CRW devfiles (product support).
    • Hide
      = Upstream sample devfiles are not supported

      Upstream sample devfiles are designed for Eclipse Che. {prod-short} doesn't support these samples. A workspace running with the {devworkspace} engine might fail to start when using an upstream sample devfile.

      .Workaround

      * Use supported {prod} sample devfiles.
      Show
      = Upstream sample devfiles are not supported Upstream sample devfiles are designed for Eclipse Che. {prod-short} doesn't support these samples. A workspace running with the {devworkspace} engine might fail to start when using an upstream sample devfile. .Workaround * Use supported {prod} sample devfiles.
    • Documented as Known Issue

    Description

      • Launch the OCP 4.8 or 4.6 with enabled workspace-engine properly mirroring and install CRW usingĀ  crwctl command. For example:
        ./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
        
      • Do not import certificate into a browser

      Content of the patch.yaml:

      spec:
        server:
          customCheProperties:
            CHE_LIMITS_USER_WORKSPACES_RUN_COUNT: '-1'
            CHE_LIMITS_WORKSPACE_IDLE_TIMEOUT: '900000'
            CHE_INFRA_KUBERNETES_WORKSPACE__UNRECOVERABLE__EVENTS: 'Failed Scheduling,Failed to pull image'
            CHE_INFRA_KUBERNETES_WORKSPACE_START_TIMEOUT_MIN: '10'
        auth:
          updateAdminPassword: false
        storage:
          pvcClaimSize: 2Gi
          pvcStrategy: per-workspace
      

      Go to the user dashboard and apply the factory like: your_host/#https://github.com/che-samples/java-spring-petclinic/tree/devfilev2

      Expected result: The workspace should be created
      Actual result: The workspace is not created. We have message:

      Could not rewrite container  volume mounts: container tools undefine volumes for gradle.

      See screenshots.

      Attachments

        Issue Links

          Activity

            People

              amisevsk Angel Misevski
              mmusiien Maksym Musienko
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: