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

Cannot start workspace from java devfiles in CRW 2.14.0 on RHPDS cluster

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 2.14.0.GA
    • 2.14.0.GA
    • testing
    • None
    • False
    • False
    • Hide
      = Some sample devfiles require more CPU or RAM than is available to RHPDS clusters

      Currently, the available CPU or RAM resources on a RHPDS cluster may not be sufficient for a devfile.

      .Workaround

      * In the *Administrator* perspective of the OpenShift Container Platform web console, choose the correct project, go to *Administration* > *LimitRanges*, and delete the *LimitRange* object for the CRW deployment.

      * Alternatively, the RHPDS administrator can grant users more resources by providing a customized instance with higher limits for CPU or RAM.
      Show
      = Some sample devfiles require more CPU or RAM than is available to RHPDS clusters Currently, the available CPU or RAM resources on a RHPDS cluster may not be sufficient for a devfile. .Workaround * In the *Administrator* perspective of the OpenShift Container Platform web console, choose the correct project, go to *Administration* > *LimitRanges*, and delete the *LimitRange* object for the CRW deployment. * Alternatively, the RHPDS administrator can grant users more resources by providing a customized instance with higher limits for CPU or RAM.
    • Workaround Exists
    • Hide

       Remove "LimitRanges" object from CRW namespace.

      Show
       Remove "LimitRanges" object from CRW namespace.
    • Hide
      1. Create cluster on RHPDS.
      2. Deploy CRW 2.14.0 (GA version using che server; NOT 2.14.100 tech preview with devworkspace support)
      3. Start workspace from any Java deviles(for example Java with JBoss EAP XP 3.0 Microprofile).
      Show
      Create cluster on RHPDS. Deploy CRW 2.14.0 (GA version using che server; NOT 2.14.100 tech preview with devworkspace support) Start workspace from any Java deviles(for example Java with JBoss EAP XP 3.0 Microprofile).

      Cannot start workspace from java devfiles in CRW 2.14.0 on RHPDS cluster. Maven pod cannot starts because of limits error -> "Error creating: pods "workspaced4k21j9tmb454val.maven-7c57f58bf4-n9jz5" is forbidden: maximum cpu usage per Pod is 4, but limit is 4300m". 

      When admin-codeready project is created it has next limits in LimitRanges:

      spec:
        limits:
          - type: Container
            max:
              cpu: '4'
              memory: 6Gi
            default:
              cpu: 500m
              memory: 1536Mi
            defaultRequest:
              cpu: 50m
              memory: 256Mi
          - type: Pod
            max:
              cpu: '4'
              memory: 12Gi 

       
      It has max cpu 4 but maven pod wants 4300m. After increase cpu property workspace starts sucessfully.

      This issue doesn't reproduce with CRW 2.13.0 on RHPDS.

        1. Selection_024-1.png
          Selection_024-1.png
          111 kB
        2. Selection_026-1.png
          Selection_026-1.png
          113 kB
        3. Selection_027.png
          Selection_027.png
          152 kB
        4. image-2022-01-04-16-22-18-741.png
          image-2022-01-04-16-22-18-741.png
          28 kB

              sskoryk Serhii Skoryk
              sskoryk Serhii Skoryk
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: