-
Bug
-
Resolution: Not a Bug
-
Blocker
-
None
-
3.1.0.GA
-
None
-
False
-
-
False
"dsc server:deploy" command failed to deploy DS 3.1.0 on CheCluster creation step
dsc version: dsc/3.1.0-CI-57098-redhat.08309db
dsc bundle: 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-148
- registry-proxy.engineering.redhat.com/rh-osbs/iib:267571
"the namespace of the provided object does not match the namespace sent on the request" error when deploy without CheCluster custom resource patch
dsc/bin/dsc server:deploy --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' [05:45:59] Verify Kubernetes API [started] › Current Kubernetes context: 'openshift-devspaces/api-ocp410-ltst-ds-crw-qe-com:6443/admin' [05:45:59] Verify Kubernetes API...[OK] [title changed] [05:45:59] Verify Kubernetes API...[OK] [OpenShift] [title changed] [05:45:59] Verify Kubernetes API...[OK] [OpenShift] [completed] [05:45:59] 👀 Looking for an already existing Red Hat OpenShift Dev Spaces instance [started] [05:45:59] Verify if Red Hat OpenShift Dev Spaces is deployed into namespace "openshift-devspaces" [started] [05:45:59] Verify if Red Hat OpenShift Dev Spaces is deployed into namespace "openshift-devspaces"...[Not Found] [title changed] [05:45:59] Verify if Red Hat OpenShift Dev Spaces is deployed into namespace "openshift-devspaces"...[Not Found] [completed] [05:45:59] 👀 Looking for an already existing Red Hat OpenShift Dev Spaces instance [completed] [05:45:59] ✈️ Openshift preflight checklist [started] [05:45:59] Verify if oc is installed [started] [05:45:59] Verify if oc is installed...[OK] [title changed] [05:45:59] Verify if oc is installed...[OK] [completed] [05:45:59] Verify if openshift is running [started] [05:45:59] Verify if openshift is running...[OK] [title changed] [05:45:59] Verify if openshift is running...[OK] [completed] [05:45:59] Check OpenShift version [started] [05:45:59] Check OpenShift version: [4.x] [title changed] [05:45:59] Check OpenShift version: [4.x] [completed] [05:45:59] Check Kubernetes version [started] [05:45:59] Check Kubernetes version: [Unknown] [title changed] [05:45:59] Check Kubernetes version: [Unknown] [completed] [05:45:59] ✈️ Openshift preflight checklist [completed] [05:45:59] Following Red Hat OpenShift Dev Spaces logs [started] [05:45:59] Start following logs [started] [05:45:59] Start following logs...[OK] [title changed] [05:45:59] Start following logs...[OK] [completed] [05:45:59] Following Red Hat OpenShift Dev Spaces logs [completed] [05:45:59] Create Namespace openshift-devspaces [started] [05:45:59] Create Namespace openshift-devspaces...[Exists] [title changed] [05:45:59] Create Namespace openshift-devspaces...[Exists] [completed] [05:45:59] 🏃 Running Olm installation Red Hat OpenShift Dev Spaces [started] [05:45:59] Check if OLM is pre-installed on the platform [started] [05:45:59] Check if OLM is pre-installed on the platform...[OK] [title changed] [05:45:59] Check if OLM is pre-installed on the platform...[OK] [completed] [05:45:59] Configure context information [started] [05:45:59] Configure context information...[OK] [title changed] [05:45:59] Configure context information...[OK] [completed] [05:45:59] Create operator subscription [started] [05:45:59] Create operator subscription...[OK] [title changed] [05:45:59] Create operator subscription...[OK] [completed] [05:45:59] Wait while subscription is ready [started] [05:46:00] Wait while subscription is ready...[OK] [title changed] [05:46:00] Wait while subscription is ready...[OK] [completed] [05:46:00] Wait operator install plan [started] [05:46:07] Wait operator install plan...[OK] [title changed] [05:46:07] Wait operator install plan...[OK] [completed] [05:46:07] Check cluster service version resource [started] [05:46:07] Check cluster service version resource...[OK] [title changed] [05:46:07] Check cluster service version resource...[OK] [completed] [05:46:07] Prepare Red Hat OpenShift Dev Spaces cluster CR [started] [05:46:07] Prepare Red Hat OpenShift Dev Spaces cluster CR...[OK] [title changed] [05:46:07] Prepare Red Hat OpenShift Dev Spaces cluster CR...[OK] [completed] [05:46:07] Create CheCluster Custom Resource [started] [05:46:07] Create CheCluster Custom Resource [failed] [05:46:07] → the namespace of the provided object does not match the namespace sent on the request [05:46:07] 🏃 Running Olm installation Red Hat OpenShift Dev Spaces [failed] [05:46:07] → 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.
dsc error.log
2022-07-06T09:46:07.759Z Error: Command server:deploy failed. Error log: /home/hudson/.cache/dsc/error.log. 2022-07-06T09:46:07.759Z at newError (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/lib/util.js:199:19) 2022-07-06T09:46:07.759Z at Object.wrapCommandError (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/lib/util.js:195:12) 2022-07-06T09:46:07.759Z at Deploy.<anonymous> (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/lib/commands/server/deploy.js:173:35) 2022-07-06T09:46:07.759Z at Generator.throw (<anonymous>) 2022-07-06T09:46:07.759Z at rejected (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/node_modules/tslib/tslib.js:115:69) 2022-07-06T09:46:07.759Z Cause: Error: the namespace of the provided object does not match the namespace sent on the request 2022-07-06T09:46:07.759Z at Object.newError (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/lib/util.js:199:19) 2022-07-06T09:46:07.759Z at KubeHelper.wrapK8sClientError (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/lib/api/kube.js:2437:31) 2022-07-06T09:46:07.759Z at KubeHelper.<anonymous> (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/lib/api/kube.js:1375:28) 2022-07-06T09:46:07.759Z at Generator.throw (<anonymous>) 2022-07-06T09:46:07.759Z at rejected (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/node_modules/tslib/tslib.js:115:69) 2022-07-06T09:46:07.759Z Cause: HttpError: HTTP request failed 2022-07-06T09:46:07.759Z 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-07-06T09:46:07.759Z at Request.self.callback (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/node_modules/request/request.js:185:22) 2022-07-06T09:46:07.759Z at Request.emit (node:events:390:28) 2022-07-06T09:46:07.759Z at Request.<anonymous> (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/node_modules/request/request.js:1154:10) 2022-07-06T09:46:07.759Z at Request.emit (node:events:390:28) 2022-07-06T09:46:07.759Z at IncomingMessage.<anonymous> (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/node_modules/request/request.js:1076:12) 2022-07-06T09:46:07.759Z at Object.onceWrapper (node:events:509:28) 2022-07-06T09:46:07.759Z at IncomingMessage.emit (node:events:402:35)
"the API version in the data (org.eclipse.che/v2) does not match the expected API version (org.eclipse.che/v1)" error when deploy with CheCluster custom resource patch
+ dsc/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' [04:03:06] Verify Kubernetes API [started] › Current Kubernetes context: 'openshift-devspaces/api-ocp410-ltst-ds-crw-qe-com:6443/admin' [04:03:06] Verify Kubernetes API...[OK] [title changed] [04:03:06] Verify Kubernetes API...[OK] [OpenShift] [title changed] [04:03:06] Verify Kubernetes API...[OK] [OpenShift] [completed] [04:03:06] 👀 Looking for an already existing Red Hat OpenShift Dev Spaces instance [started] [04:03:06] Verify if Red Hat OpenShift Dev Spaces is deployed into namespace "openshift-devspaces" [started] [04:03:06] Verify if Red Hat OpenShift Dev Spaces is deployed into namespace "openshift-devspaces"...[Not Found] [title changed] [04:03:06] Verify if Red Hat OpenShift Dev Spaces is deployed into namespace "openshift-devspaces"...[Not Found] [completed] [04:03:06] 👀 Looking for an already existing Red Hat OpenShift Dev Spaces instance [completed] [04:03:06] ✈️ Openshift preflight checklist [started] [04:03:06] Verify if oc is installed [started] [04:03:06] Verify if oc is installed...[OK] [title changed] [04:03:06] Verify if oc is installed...[OK] [completed] [04:03:06] Verify if openshift is running [started] [04:03:06] Verify if openshift is running...[OK] [title changed] [04:03:06] Verify if openshift is running...[OK] [completed] [04:03:06] Check OpenShift version [started] [04:03:06] Check OpenShift version: [4.x] [title changed] [04:03:06] Check OpenShift version: [4.x] [completed] [04:03:06] Check Kubernetes version [started] [04:03:06] Check Kubernetes version: [Unknown] [title changed] [04:03:06] Check Kubernetes version: [Unknown] [completed] [04:03:06] ✈️ Openshift preflight checklist [completed] [04:03:06] Following Red Hat OpenShift Dev Spaces logs [started] [04:03:06] Start following logs [started] [04:03:06] Start following logs...[OK] [title changed] [04:03:06] Start following logs...[OK] [completed] [04:03:06] Following Red Hat OpenShift Dev Spaces logs [completed] [04:03:06] Create Namespace openshift-devspaces [started] [04:03:06] Create Namespace openshift-devspaces...[Exists] [title changed] [04:03:06] Create Namespace openshift-devspaces...[Exists] [completed] [04:03:06] 🏃 Running Olm installation Red Hat OpenShift Dev Spaces [started] [04:03:06] Check if OLM is pre-installed on the platform [started] [04:03:06] Check if OLM is pre-installed on the platform...[OK] [title changed] [04:03:06] Check if OLM is pre-installed on the platform...[OK] [completed] [04:03:06] Configure context information [started] [04:03:06] Configure context information...[OK] [title changed] [04:03:06] Configure context information...[OK] [completed] [04:03:06] Create operator subscription [started] [04:03:06] Create operator subscription...[OK] [title changed] [04:03:06] Create operator subscription...[OK] [completed] [04:03:06] Wait while subscription is ready [started] [04:03:08] Wait while subscription is ready...[OK] [title changed] [04:03:08] Wait while subscription is ready...[OK] [completed] [04:03:08] Wait operator install plan [started] [04:03:12] Wait operator install plan...[OK] [title changed] [04:03:12] Wait operator install plan...[OK] [completed] [04:03:12] Check cluster service version resource [started] [04:03:12] Check cluster service version resource...[OK] [title changed] [04:03:12] Check cluster service version resource...[OK] [completed] [04:03:12] Prepare Red Hat OpenShift Dev Spaces cluster CR [started] [04:03:12] Prepare Red Hat OpenShift Dev Spaces cluster CR...[OK] [title changed] [04:03:12] Prepare Red Hat OpenShift Dev Spaces cluster CR...[OK] [completed] [04:03:12] Create CheCluster Custom Resource [started] [04:03:12] Create CheCluster Custom Resource [failed] [04:03:12] → the API version in the data (org.eclipse.che/v2) does not match the expected API version (org.eclipse.che/v1) [04:03:12] 🏃 Running Olm installation Red Hat OpenShift Dev Spaces [failed] [04:03:12] → the API version in the data (org.eclipse.che/v2) does not match the expected API version (org.eclipse.che/v1) Error: Command server:deploy failed. Error log: /home/hudson/.cache/dsc/error.log.
where custom-resource-patch.yaml
apiVersion: org.eclipse.che/v2
spec:
devWorkspace:
runningLimit: '10000'
dsc error.log
2022-07-06T08:03:12.620Z Error: Command server:deploy failed. Error log: /home/hudson/.cache/dsc/error.log. 2022-07-06T08:03:12.620Z at newError (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/lib/util.js:199:19) 2022-07-06T08:03:12.620Z at Object.wrapCommandError (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/lib/util.js:195:12) 2022-07-06T08:03:12.620Z at Deploy.<anonymous> (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/lib/commands/server/deploy.js:173:35) 2022-07-06T08:03:12.620Z at Generator.throw (<anonymous>) 2022-07-06T08:03:12.620Z at rejected (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/node_modules/tslib/tslib.js:115:69) 2022-07-06T08:03:12.620Z Cause: Error: the API version in the data (org.eclipse.che/v2) does not match the expected API version (org.eclipse.che/v1) 2022-07-06T08:03:12.620Z at Object.newError (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/lib/util.js:199:19) 2022-07-06T08:03:12.620Z at KubeHelper.wrapK8sClientError (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/lib/api/kube.js:2437:31) 2022-07-06T08:03:12.620Z at KubeHelper.<anonymous> (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/lib/api/kube.js:1375:28) 2022-07-06T08:03:12.620Z at Generator.throw (<anonymous>) 2022-07-06T08:03:12.620Z at rejected (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/node_modules/tslib/tslib.js:115:69) 2022-07-06T08:03:12.620Z Cause: HttpError: HTTP request failed 2022-07-06T08:03:12.620Z 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-07-06T08:03:12.620Z at Request.self.callback (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/node_modules/request/request.js:185:22) 2022-07-06T08:03:12.620Z at Request.emit (node:events:390:28) 2022-07-06T08:03:12.620Z at Request.<anonymous> (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/node_modules/request/request.js:1154:10) 2022-07-06T08:03:12.620Z at Request.emit (node:events:390:28) 2022-07-06T08:03:12.620Z at IncomingMessage.<anonymous> (/mnt/hudson_workspace/workspace/Testing/e2e/basic/install-ds/dsc/node_modules/request/request.js:1076:12) 2022-07-06T08:03:12.620Z at Object.onceWrapper (node:events:509:28) 2022-07-06T08:03:12.620Z at IncomingMessage.emit (node:events:402:35)
CheCluster CRD: customresourcedefinition-checlusters.org.eclipse.che (1).yaml
Installation of DS 3.1.0 using OperatorHub has finished successfully, including CheCluster creation.