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

"dsc server:deploy" command didn't respect "perUserStrategyPvcConfig > claimSize" property in "--che-operator-cr-patch-yaml" parameter

XMLWordPrintable

    • False
    • None
    • False

      dsc 3.2.0 "server:deploy" command didn't respect "perUserStrategyPvcConfig > claimSize" property in "--che-operator-cr-patch-yaml" parameter:
      https://main-jenkins-csb-crwqe.apps.ocp-c1.prod.psi.redhat.com/job/Testing/job/e2e/job/basic/job/install-ds/1014/consoleFull

       + dsc server:deploy --che-operator-cr-patch-yaml=custom-resource-patch.yaml --package-manifest-name=devspaces --catalog-source-name=devspaces-operator-3-2-osbs-stable --olm-channel=stable --catalog-source-namespace=openshift-marketplace --listr-renderer=verbose
      

      where custom-resource-patch.yaml content:

      apiVersion: org.eclipse.che/v2
      spec:
        components:
          devEnvironments: 
            storage: 
              perUserStrategyPvcConfig: 
                claimSize: "8Gi"
      
      dsc log
       [18:02:13] Verify Kubernetes API [started]
       › Current Kubernetes context: 'admin-devspaces/api-ocp410-crw-qe-com:6443/admin'
       [18:02:13] Verify Kubernetes API...[OK] [title changed]
       [18:02:13] Verify Kubernetes API...[OK] [OpenShift] [title changed]
       [18:02:13] Verify Kubernetes API...[OK] [OpenShift] [completed]
       [18:02:13] 👀  Looking for an already existing Red Hat OpenShift Dev Spaces instance [started]
       [18:02:13] Verify if Red Hat OpenShift Dev Spaces is deployed into namespace "openshift-devspaces" [started]
       [18:02:13] Verify if Red Hat OpenShift Dev Spaces is deployed into namespace "openshift-devspaces"...[Not Found] [title changed]
       [18:02:13] Verify if Red Hat OpenShift Dev Spaces is deployed into namespace "openshift-devspaces"...[Not Found] [completed]
       [18:02:13] 👀  Looking for an already existing Red Hat OpenShift Dev Spaces instance [completed]
       [18:02:13] ✈️  Openshift preflight checklist [started]
       [18:02:13] Verify if oc is installed [started]
       [18:02:13] Verify if oc is installed...[OK] [title changed]
       [18:02:13] Verify if oc is installed...[OK] [completed]
       [18:02:13] Verify if openshift is running [started]
       [18:02:13] Verify if openshift is running...[OK] [title changed]
       [18:02:13] Verify if openshift is running...[OK] [completed]
       [18:02:13] Check OpenShift version [started]
       [18:02:13] Check OpenShift version: [4.x] [title changed]
       [18:02:13] Check OpenShift version: [4.x] [completed]
       [18:02:13] Check Kubernetes version [started]
       [18:02:13] Check Kubernetes version: [Unknown] [title changed]
       [18:02:13] Check Kubernetes version: [Unknown] [completed]
       [18:02:13] ✈️  Openshift preflight checklist [completed]
       [18:02:13] Following Red Hat OpenShift Dev Spaces logs [started]
       [18:02:13] Start following logs [started]
       [18:02:13] Start following logs...[OK] [title changed]
       [18:02:13] Start following logs...[OK] [completed]
       [18:02:13] Following Red Hat OpenShift Dev Spaces logs [completed]
       [18:02:13] Create Namespace openshift-devspaces [started]
       [18:02:13] Create Namespace openshift-devspaces...[Exists] [title changed]
       [18:02:13] Create Namespace openshift-devspaces...[Exists] [completed]
       [18:02:13] Deploy Red Hat OpenShift Dev Spaces [started]
       [18:02:13] Check if OLM is pre-installed on the platform [started]
       [18:02:13] Check if OLM is pre-installed on the platform...[OK] [title changed]
       [18:02:13] Check if OLM is pre-installed on the platform...[OK] [completed]
       [18:02:13] Set context [started]
       [18:02:13] Set context...[OK] [title changed]
       [18:02:13] Set context...[OK] [completed]
       [18:02:13] Create Subscription devspaces-subscription [started]
       [18:02:13] Create Subscription devspaces-subscription...[OK] [title changed]
       [18:02:13] Create Subscription devspaces-subscription...[OK] [completed]
       [18:02:13] Wait for Subscription [started]
       [18:02:14] Wait for Subscription...[OK] [title changed]
       [18:02:14] Wait for Subscription...[OK] [completed]
       [18:02:14] Wait for ClusterServiceVersion [started]
       [18:02:26] Wait for ClusterServiceVersion...[OK] [title changed]
       [18:02:26] Wait for ClusterServiceVersion...[OK] [completed]
       [18:02:26] Prepare CheCluster CR [started]
       [18:02:26] Prepare CheCluster CR...[OK] [title changed]
       [18:02:26] Prepare CheCluster CR...[OK] [completed]
       [18:02:26] Create CheCluster Custom Resource [started]
       [18:02:47] Create CheCluster Custom Resource...[Created] [title changed]
       [18:02:47] Create CheCluster Custom Resource...[Created] [completed]
       [18:02:47] Deploy Red Hat OpenShift Dev Spaces [completed]
       [18:02:47] ✅  Post installation checklist [started]
       [18:02:47] PostgreSQL pod bootstrap [started]
       [18:02:47] Scheduling [started]
       [18:03:43] Scheduling...[OK] [title changed]
       [18:03:43] Scheduling...[OK] [completed]
       [18:03:43] Downloading images [started]
       [18:04:00] Downloading images...[OK] [title changed]
       [18:04:00] Downloading images...[OK] [completed]
       [18:04:00] Starting [started]
       [18:04:23] Starting...[OK] [title changed]
       [18:04:23] Starting...[OK] [completed]
       [18:04:23] PostgreSQL pod bootstrap [completed]
       [18:04:23] Devfile Registry pod bootstrap [started]
       [18:04:23] Scheduling [started]
       [18:04:29] Scheduling...[OK] [title changed]
       [18:04:29] Scheduling...[OK] [completed]
       [18:04:29] Downloading images [started]
       [18:04:32] Downloading images...[OK] [title changed]
       [18:04:32] Downloading images...[OK] [completed]
       [18:04:32] Starting [started]
       [18:04:39] Starting...[OK] [title changed]
       [18:04:39] Starting...[OK] [completed]
       [18:04:39] Devfile Registry pod bootstrap [completed]
       [18:04:39] Plug-in Registry pod bootstrap [started]
       [18:04:39] Scheduling [started]
       [18:04:40] Scheduling...[OK] [title changed]
       [18:04:40] Scheduling...[OK] [completed]
       [18:04:40] Downloading images [started]
       [18:04:42] Downloading images...[OK] [title changed]
       [18:04:42] Downloading images...[OK] [completed]
       [18:04:42] Starting [started]
       [18:04:49] Starting...[OK] [title changed]
       [18:04:49] Starting...[OK] [completed]
       [18:04:49] Plug-in Registry pod bootstrap [completed]
       [18:04:49] Red Hat OpenShift Dev Spaces Dashboard pod bootstrap [started]
       [18:04:49] Scheduling [started]
       [18:04:50] Scheduling...[OK] [title changed]
       [18:04:50] Scheduling...[OK] [completed]
       [18:04:50] Downloading images [started]
       [18:04:53] Downloading images...[OK] [title changed]
       [18:04:53] Downloading images...[OK] [completed]
       [18:04:53] Starting [started]
       [18:05:00] Starting...[OK] [title changed]
       [18:05:00] Starting...[OK] [completed]
       [18:05:00] Red Hat OpenShift Dev Spaces Dashboard pod bootstrap [completed]
       [18:05:00] Red Hat OpenShift Dev Spaces Server pod bootstrap [started]
       [18:05:00] Scheduling [started]
       [18:05:01] Scheduling...[OK] [title changed]
       [18:05:01] Scheduling...[OK] [completed]
       [18:05:01] Downloading images [started]
       [18:05:04] Downloading images...[OK] [title changed]
       [18:05:04] Downloading images...[OK] [completed]
       [18:05:04] Starting [started]
       [18:05:41] Starting...[OK] [title changed]
       [18:05:41] Starting...[OK] [completed]
       [18:05:41] Red Hat OpenShift Dev Spaces Server pod bootstrap [completed]
       [18:05:41] Red Hat OpenShift Dev Spaces status check [started]
       [18:05:41] Red Hat OpenShift Dev Spaces status check...[OK] [title changed]
       [18:05:41] Red Hat OpenShift Dev Spaces status check...[OK] [completed]
       [18:05:41] ✅  Post installation checklist [completed]
       [18:05:41] Retrieving Che self-signed CA certificate [started]
       [18:05:41] Retrieving Che self-signed CA certificate...[OK] [title changed]
       [18:05:41] Retrieving Che self-signed CA certificate...[OK] [completed]
       [18:05:41] Prepare post installation output [started]
       [18:05:47] Prepare post installation output...[OK] [title changed]
       [18:05:47] Prepare post installation output...[OK] [completed]
       [18:05:47] Show important messages [started]
       [18:05:47] Red Hat OpenShift Dev Spaces '3.2.0' has been successfully deployed. [started]
       [18:05:47] Red Hat OpenShift Dev Spaces '3.2.0' has been successfully deployed. [completed]
       [18:05:47] Documentation             : https://access.redhat.com/documentation/en-us/red_hat_openshift_dev_spaces/3.2/ [started]
       [18:05:47] Documentation             : https://access.redhat.com/documentation/en-us/red_hat_openshift_dev_spaces/3.2/ [completed]
       [18:05:47] Release Notes           : https://access.redhat.com/documentation/en-us/red_hat_openshift_dev_spaces/3.2/html/release_notes_and_known_issues/index [started]
       [18:05:47] Release Notes           : https://access.redhat.com/documentation/en-us/red_hat_openshift_dev_spaces/3.2/html/release_notes_and_known_issues/index [completed]
       [18:05:47] ------------------------------------------------------------------------------- [started]
       [18:05:47] ------------------------------------------------------------------------------- [completed]
       [18:05:47] Users Dashboard           : https://devspaces.apps.ocp410.crw-qe.com/dashboard/ [started]
       [18:05:47] Users Dashboard           : https://devspaces.apps.ocp410.crw-qe.com/dashboard/ [completed]
       [18:05:47] ------------------------------------------------------------------------------- [started]
       [18:05:47] ------------------------------------------------------------------------------- [completed]
       [18:05:47] Plug-in Registry          : https://devspaces.apps.ocp410.crw-qe.com/plugin-registry/v3/ [started]
       [18:05:47] Plug-in Registry          : https://devspaces.apps.ocp410.crw-qe.com/plugin-registry/v3/ [completed]
       [18:05:47] Devfile Registry          : https://devspaces.apps.ocp410.crw-qe.com/devfile-registry/ [started]
       [18:05:47] Devfile Registry          : https://devspaces.apps.ocp410.crw-qe.com/devfile-registry/ [completed]
       [18:05:47] ------------------------------------------------------------------------------- [started]
       [18:05:47] ------------------------------------------------------------------------------- [completed]
       [18:05:47] Show important messages [completed]
       Command server:deploy has completed successfully in 03:34.
      

      Resulted devspaces CheCluster didn't have "perUserStrategyPvcConfig: claimSize: 8Gi" property:

      apiVersion: org.eclipse.che/v2
      kind: CheCluster
      metadata:
        creationTimestamp: '2022-10-05T22:02:44Z'
        finalizers:
          - checluster.che.eclipse.org
          - cheGateway.clusterpermissions.finalizers.che.eclipse.org
          - cheWorkspaces.clusterpermissions.finalizers.che.eclipse.org
          - namespaces-editor.permissions.finalizers.che.eclipse.org
          - devWorkspace.permissions.finalizers.che.eclipse.org
          - oauthclients.finalizers.che.eclipse.org
          - dashboard.clusterpermissions.finalizers.che.eclipse.org
          - consolelink.finalizers.che.eclipse.org
        generation: 2
        managedFields:
          - apiVersion: org.eclipse.che/v2
            fieldsType: FieldsV1
            fieldsV1:
              'f:spec':
                .: {}
                'f:components':
                  .: {}
                  'f:cheServer':
                    .: {}
                    'f:debug': {}
                    'f:logLevel': {}
                  'f:database':
                    .: {}
                    'f:credentialsSecretName': {}
                    'f:externalDb': {}
                    'f:postgresDb': {}
                    'f:postgresHostName': {}
                    'f:postgresPort': {}
                    'f:pvc':
                      .: {}
                      'f:claimSize': {}
                  'f:metrics':
                    .: {}
                    'f:enable': {}
                'f:containerRegistry': {}
                'f:devEnvironments':
                  .: {}
                  'f:defaultNamespace':
                    .: {}
                    'f:template': {}
                  'f:secondsOfInactivityBeforeIdling': {}
                  'f:secondsOfRunBeforeIdling': {}
                  'f:storage':
                    .: {}
                    'f:pvcStrategy': {}
                'f:networking':
                  .: {}
                  'f:auth':
                    .: {}
                    'f:gateway':
                      .: {}
                      'f:configLabels':
                        .: {}
                        'f:app': {}
                        'f:component': {}
            manager: unknown
            operation: Update
            time: '2022-10-05T22:02:44Z'
          - apiVersion: org.eclipse.che/v2
            fieldsType: FieldsV1
            fieldsV1:
              'f:metadata':
                'f:finalizers':
                  'v:"consolelink.finalizers.che.eclipse.org"': {}
              'f:status':
                'f:chePhase': {}
                'f:cheURL': {}
                'f:cheVersion': {}
                'f:gatewayPhase': {}
                'f:workspaceBaseDomain': {}
            manager: manager
            operation: Update
            time: '2022-10-05T22:05:49Z'
        name: devspaces
        namespace: openshift-devspaces
        resourceVersion: '40127851'
        uid: 25670832-1f73-4940-9645-3769e6cf15ed
      spec:
        components:
          cheServer:
            debug: false
            logLevel: INFO
          dashboard: {}
          database:
            credentialsSecretName: postgres-credentials
            externalDb: false
            postgresDb: dbche
            postgresHostName: postgres
            postgresPort: '5432'
            pvc:
              claimSize: 1Gi
          devWorkspace: {}
          devfileRegistry: {}
          imagePuller:
            enable: false
            spec: {}
          metrics:
            enable: true
          pluginRegistry: {}
        containerRegistry: {}
        devEnvironments:
          defaultNamespace:
            template: <username>-devspaces
          secondsOfInactivityBeforeIdling: 1800
          secondsOfRunBeforeIdling: -1
          storage:
            pvcStrategy: per-user
        networking:
          auth:
            gateway:
              configLabels:
                app: che
                component: che-gateway-config
      status:
        chePhase: Active
        cheURL: 'https://devspaces.apps.ocp410.crw-qe.com'
        cheVersion: 3.2.0
        devfileRegistryURL: 'https://devspaces.apps.ocp410.crw-qe.com/devfile-registry'
        gatewayPhase: Established
        pluginRegistryURL: 'https://devspaces.apps.ocp410.crw-qe.com/plugin-registry/v3'
        postgresVersion: '13.7'
        workspaceBaseDomain: apps.ocp410.crw-qe.com
      

      Test environment:

      • OCP 4.10
      • devspaces-operator-bundle:3.2-158
      • registry-proxy.engineering.redhat.com/rh-osbs/iib:333193
      • dsc/3.2.0-CI-9c7a-redhat.bb3ebc0 linux-x64 node-v16.13.2

      An update: it was a correct behavior, because the correct patch shouldn't include "components:"

      apiVersion: org.eclipse.che/v2
      spec:
        devEnvironments: 
          storage: 
            perUserStrategyPvcConfig: 
              claimSize: "8Gi"
      

      https://issues.redhat.com/browse/CRW-3415?focusedCommentId=21054640&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-21054640

              abazko Anatolii Bazko
              dnochevn Dmytro Nochevnov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: