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

"the namespace of the provided object does not match the namespace sent on the request" error when deploy DS 3.1.0 using 'dsc server:deploy' command

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      dsc/3.1.0-CI-07e6-redhat.2cdbe94

      https://github.com/redhat-developer/devspaces-chectl/releases/download/3.1.0-CI-dsc-assets/devspaces-3.1.0-dsc-linux-x64.tar.gz

      DS 3.1.0 metadata:

      • registry-proxy.engineering.redhat.com/rh-osbs/devspaces-operator-bundle:3.1-126
      • registry-proxy.engineering.redhat.com/rh-osbs/iib:254558'

      Build failure:
      https://main-jenkins-csb-crwqe.apps.ocp-c1.prod.psi.redhat.com/job/Testing/job/e2e/job/basic/job/install-ds/303/console

      bin/dsc server:deploy --che-operator-cr-patch-yaml=custom-resource-patch.yaml --package-manifest-name=devspaces --catalog-source-name=ds-3-1-osbs-stable --olm-channel=stable --catalog-source-namespace=openshift-marketplace --listr-renderer=verbose
      
       › Installer type is set to: 'olm'
       [07:01:27] Verify Kubernetes API [started]
       › Current Kubernetes context: 'openshift-devspaces/api-ocp410-bmakam-crw-qe-com:6443/admin'
       [07:01:27] Verify Kubernetes API...[OK] [title changed]
       [07:01:27] Verify Kubernetes API...[OK] [OpenShift] [title changed]
       [07:01:27] Verify Kubernetes API...[OK] [OpenShift] [completed]
       [07:01:27]   Looking for an already existing Red Hat OpenShift Dev Spaces instance [started]
       [07:01:27] Verify if Red Hat OpenShift Dev Spaces is deployed into namespace "openshift-devspaces" [started]
       [07:01:27] Verify if Red Hat OpenShift Dev Spaces is deployed into namespace "openshift-devspaces"...[Not Found] [title changed]
       [07:01:27] Verify if Red Hat OpenShift Dev Spaces is deployed into namespace "openshift-devspaces"...[Not Found] [completed]
       [07:01:27]   Looking for an already existing Red Hat OpenShift Dev Spaces instance [completed]
       [07:01:27]   Openshift preflight checklist [started]
       [07:01:27] Verify if oc is installed [started]
       [07:01:27] Verify if oc is installed...[OK] [title changed]
       [07:01:27] Verify if oc is installed...[OK] [completed]
       [07:01:27] Verify if openshift is running [started]
       [07:01:28] Verify if openshift is running...[OK] [title changed]
       [07:01:28] Verify if openshift is running...[OK] [completed]
       [07:01:28] Check OpenShift version [started]
       [07:01:28] Check OpenShift version: [4.x] [title changed]
       [07:01:28] Check OpenShift version: [4.x] [completed]
       [07:01:28] Check Kubernetes version [started]
       [07:01:29] Check Kubernetes version: [Unknown] [title changed]
       [07:01:29] Check Kubernetes version: [Unknown] [completed]
       [07:01:29]   Openshift preflight checklist [completed]
       [07:01:29] Following Red Hat OpenShift Dev Spaces logs [started]
       [07:01:29] Start following logs [started]
       [07:01:29] Start following logs...[OK] [title changed]
       [07:01:29] Start following logs...[OK] [completed]
       [07:01:29] Following Red Hat OpenShift Dev Spaces logs [completed]
       [07:01:29] Create Namespace openshift-devspaces [started]
       [07:01:29] Create Namespace openshift-devspaces...[Exists] [title changed]
       [07:01:29] Create Namespace openshift-devspaces...[Exists] [completed]
       [07:01:29]   Running Olm installation Red Hat OpenShift Dev Spaces [started]
       [07:01:29] Check if OLM is pre-installed on the platform [started]
       [07:01:30] Check if OLM is pre-installed on the platform...[OK] [title changed]
       [07:01:30] Check if OLM is pre-installed on the platform...[OK] [completed]
       [07:01:30] Configure context information [started]
       [07:01:30] Configure context information...[OK] [title changed]
       [07:01:30] Configure context information...[OK] [completed]
       [07:01:30] Create operator subscription [started]
       [07:01:30] Create operator subscription...[OK] [title changed]
       [07:01:30] Create operator subscription...[OK] [completed]
       [07:01:30] Wait while subscription is ready [started]
       [07:01:33] Wait while subscription is ready...[OK] [title changed]
       [07:01:33] Wait while subscription is ready...[OK] [completed]
       [07:01:33] Wait operator install plan [started]
       [07:01:45] Wait operator install plan...[OK] [title changed]
       [07:01:45] Wait operator install plan...[OK] [completed]
       [07:01:45] Check cluster service version resource [started]
       [07:01:47] Check cluster service version resource...[OK] [title changed]
       [07:01:47] Check cluster service version resource...[OK] [completed]
       [07:01:47] Prepare Red Hat OpenShift Dev Spaces cluster CR [started]
       [07:01:48] Prepare Red Hat OpenShift Dev Spaces cluster CR...[OK] [title changed]
       [07:01:48] Prepare Red Hat OpenShift Dev Spaces cluster CR...[OK] [completed]
       [07:01:48] Create CheCluster Custom Resource [started]
       [07:01:49] Create CheCluster Custom Resource [failed]
       [07:01:49]  the namespace of the provided object does not match the namespace sent on the request
       [07:01:49]   Running Olm installation Red Hat OpenShift Dev Spaces [failed]
       [07:01:49]  the namespace of the provided object does not match the namespace sent on the request
           Error: Command server:deploy failed. Error log: 
           /home/hudson/.cache/dsc/error.log.
      

      where custom-resource-patch.yaml:

      spec:
        devWorkspace:
          runningLimit: '10000'
      
      error.log
      2022-06-20T11:01:49.272Z Error: Command server:deploy failed. Error log: /home/hudson/.cache/dsc/error.log.
      2022-06-20T11:01:49.272Z     at newError (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/lib/util.js:199:19)
      2022-06-20T11:01:49.272Z     at Object.wrapCommandError (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/lib/util.js:195:12)
      2022-06-20T11:01:49.272Z     at Deploy.<anonymous> (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/lib/commands/server/deploy.js:173:35)
      2022-06-20T11:01:49.272Z     at Generator.throw (<anonymous>)
      2022-06-20T11:01:49.272Z     at rejected (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/node_modules/tslib/tslib.js:115:69)
      2022-06-20T11:01:49.272Z Cause: Error: the namespace of the provided object does not match the namespace sent on the request
      2022-06-20T11:01:49.272Z     at Object.newError (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/lib/util.js:199:19)
      2022-06-20T11:01:49.272Z     at KubeHelper.wrapK8sClientError (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/lib/api/kube.js:2240:31)
      2022-06-20T11:01:49.272Z     at KubeHelper.<anonymous> (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/lib/api/kube.js:1187:47)
      2022-06-20T11:01:49.272Z     at Generator.throw (<anonymous>)
      2022-06-20T11:01:49.272Z     at rejected (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/node_modules/tslib/tslib.js:115:69)
      2022-06-20T11:01:49.272Z Cause: HttpError: HTTP request failed
      2022-06-20T11:01:49.272Z     at Request._callback (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/node_modules/@kubernetes/client-node/dist/gen/api/customObjectsApi.js:271:40)
      2022-06-20T11:01:49.272Z     at Request.self.callback (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/node_modules/request/request.js:185:22)
      2022-06-20T11:01:49.272Z     at Request.emit (node:events:390:28)
      2022-06-20T11:01:49.272Z     at Request.<anonymous> (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/node_modules/request/request.js:1154:10)
      2022-06-20T11:01:49.272Z     at Request.emit (node:events:390:28)
      2022-06-20T11:01:49.272Z     at IncomingMessage.<anonymous> (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/node_modules/request/request.js:1076:12)
      2022-06-20T11:01:49.272Z     at Object.onceWrapper (node:events:509:28)
      2022-06-20T11:01:49.273Z     at IncomingMessage.emit (node:events:402:35)
      

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

                Created:
                Updated:
                Resolved: