-
Bug
-
Resolution: Done
-
Blocker
-
3.0.0.GA
-
None
-
False
-
False
-
"crwclt server:deploy" command has failed because of error:
Subscription.operators.coreos.com "codeready-subscription" is invalid: spec.name: Required value
crwctl version: crwctl/2.16.0-CI-redhat.329e398 linux-x64 node-v16.13.2
crwctl bundle: https://github.com/redhat-developer/codeready-workspaces-chectl/releases/download/2.16.0-crwctl-CI-assets/codeready-workspaces-2.16.0-CI-crwctl-linux-x64.tar.gz
Metadata:
- registry-proxy.engineering.redhat.com/rh-osbs/codeready-workspaces-operator-bundle:2.16-42
- registry-proxy.engineering.redhat.com/rh-osbs/iib:177923
crwctl server:deploy --no-olm-suggested-namespace --catalog-source-name=crw-2-16-osbs-stable --catalog-source-namespace=openshift-marketplace --olm-channel=stable --listr-renderer=verbose -n openshift-operators
02:20:59 › Installer type is set to: 'olm' 02:20:59 [19:20:58] Verify Kubernetes API [started] 02:20:59 › Current Kubernetes context: 'default/api-ocp49-dnochevn-crw-qe-com:6443/admin' 02:20:59 [19:20:58] Verify Kubernetes API...OK [title changed] 02:20:59 [19:20:58] Verify Kubernetes API...OK (it's OpenShift) [title changed] 02:20:59 [19:20:58] Verify Kubernetes API...OK (it's OpenShift) [completed] 02:20:59 [19:20:58] Looking for an already existing CodeReady Workspaces instance [started] 02:20:59 [19:20:58] Verify if CodeReady Workspaces is deployed into namespace "openshift-operators" [started] 02:20:59 [19:20:58] Verify if CodeReady Workspaces is deployed into namespace "openshift-operators"...it is not [title changed] 02:20:59 [19:20:58] Verify if CodeReady Workspaces is deployed into namespace "openshift-operators"...it is not [completed] 02:20:59 [19:20:58] Looking for an already existing CodeReady Workspaces instance [completed] 02:20:59 [19:20:58] Openshift preflight checklist [started] 02:20:59 [19:20:58] Verify if oc is installed [started] 02:20:59 [19:20:58] Verify if oc is installed...done. [title changed] 02:20:59 [19:20:58] Verify if oc is installed...done. [completed] 02:20:59 [19:20:58] Verify if openshift is running [started] 02:20:59 [19:20:58] Verify if openshift is running...done. [title changed] 02:20:59 [19:20:58] Verify if openshift is running...done. [completed] 02:20:59 [19:20:58] Check OpenShift version [started] 02:20:59 [19:20:58] Check OpenShift version: 4.x [title changed] 02:20:59 [19:20:58] Check OpenShift version: 4.x [completed] 02:20:59 [19:20:58] Check Kubernetes version [started] 02:20:59 [19:20:58] Check Kubernetes version: Unknown. [title changed] 02:20:59 [19:20:58] Check Kubernetes version: Unknown. [completed] 02:20:59 [19:20:58] Openshift preflight checklist [completed] 02:20:59 [19:20:58] Following CodeReady Workspaces logs [started] 02:20:59 [19:20:58] Start following Operator logs [started] 02:20:59 [19:20:58] Start following Operator logs...done [title changed] 02:20:59 [19:20:58] Start following Operator logs...done [completed] 02:20:59 [19:20:58] Start following CodeReady Workspaces Server logs [started] 02:20:59 [19:20:58] Start following CodeReady Workspaces Server logs...done [title changed] 02:20:59 [19:20:58] Start following CodeReady Workspaces Server logs...done [completed] 02:20:59 [19:20:58] Start following PostgreSQL logs [started] 02:20:59 [19:20:58] Start following PostgreSQL logs...done [title changed] 02:20:59 [19:20:58] Start following PostgreSQL logs...done [completed] 02:20:59 [19:20:58] Start following Keycloak logs [started] 02:20:59 [19:20:58] Start following Keycloak logs...done [title changed] 02:20:59 [19:20:58] Start following Keycloak logs...done [completed] 02:20:59 [19:20:58] Start following Plug-in Registry logs [started] 02:20:59 [19:20:58] Start following Plug-in Registry logs...done [title changed] 02:20:59 [19:20:58] Start following Plug-in Registry logs...done [completed] 02:20:59 [19:20:58] Start following Devfile Registry logs [started] 02:20:59 [19:20:58] Start following Devfile Registry logs...done [title changed] 02:20:59 [19:20:58] Start following Devfile Registry logs...done [completed] 02:20:59 [19:20:58] Start following CodeReady Workspaces Dashboard logs [started] 02:20:59 [19:20:58] Start following CodeReady Workspaces Dashboard logs...done [title changed] 02:20:59 [19:20:58] Start following CodeReady Workspaces Dashboard logs...done [completed] 02:20:59 [19:20:58] Start following namespace events [started] 02:20:59 [19:20:58] Start following namespace events...done [title changed] 02:20:59 [19:20:58] Start following namespace events...done [completed] 02:20:59 [19:20:58] Following CodeReady Workspaces logs [completed] 02:20:59 [19:20:58] Create Namespace openshift-operators [started] 02:20:59 [19:20:58] Create Namespace openshift-operators...[Exists] [title changed] 02:20:59 [19:20:58] Create Namespace openshift-operators...[Exists] [completed] 02:20:59 [19:20:58] Running Olm installation CodeReady Workspaces [started] 02:20:59 [19:20:58] Check if OLM is pre-installed on the platform [started] 02:20:59 [19:20:58] Check if OLM is pre-installed on the platform...[OK] [title changed] 02:20:59 [19:20:58] Check if OLM is pre-installed on the platform...[OK] [completed] 02:20:59 [19:20:58] Configure context information [started] 02:20:59 [19:20:58] Configure context information...[OK] [title changed] 02:20:59 [19:20:58] Configure context information...[OK] [completed] 02:20:59 [19:20:58] Create operator subscription [started] 02:20:59 [19:20:58] Create operator subscription [failed] 02:20:59 [19:20:58] Subscription.operators.coreos.com "codeready-subscription" is invalid: spec.name: Required value 02:20:59 [19:20:58] Running Olm installation CodeReady Workspaces [failed] 02:20:59 [19:20:58] Subscription.operators.coreos.com "codeready-subscription" is invalid: spec.name: Required value 02:20:59 Error: Command server:deploy failed. Error log: 02:20:59 /home/hudson/.cache/crwctl/error.log.
2022-02-17T00:20:58.811Z Error: Command server:deploy failed. Error log: /home/hudson/.cache/crwctl/error.log. 2022-02-17T00:20:58.811Z at newError (/mnt/hudson_workspace/workspace/CodereadyWorkspaces/e2e/basic/install-crw-using-crwctl/crwctl/lib/util.js:199:19) 2022-02-17T00:20:58.811Z at Object.wrapCommandError (/mnt/hudson_workspace/workspace/CodereadyWorkspaces/e2e/basic/install-crw-using-crwctl/crwctl/lib/util.js:195:12) 2022-02-17T00:20:58.811Z at Deploy.<anonymous> (/mnt/hudson_workspace/workspace/CodereadyWorkspaces/e2e/basic/install-crw-using-crwctl/crwctl/lib/commands/server/deploy.js:226:35) 2022-02-17T00:20:58.811Z at Generator.throw (<anonymous>) 2022-02-17T00:20:58.811Z at rejected (/mnt/hudson_workspace/workspace/CodereadyWorkspaces/e2e/basic/install-crw-using-crwctl/crwctl/node_modules/tslib/tslib.js:115:69) 2022-02-17T00:20:58.811Z Cause: Error: Subscription.operators.coreos.com "codeready-subscription" is invalid: spec.name: Required value 2022-02-17T00:20:58.811Z at Object.newError (/mnt/hudson_workspace/workspace/CodereadyWorkspaces/e2e/basic/install-crw-using-crwctl/crwctl/lib/util.js:199:19) 2022-02-17T00:20:58.811Z at KubeHelper.wrapK8sClientError (/mnt/hudson_workspace/workspace/CodereadyWorkspaces/e2e/basic/install-crw-using-crwctl/crwctl/lib/api/kube.js:3190:31) 2022-02-17T00:20:58.811Z at KubeHelper.<anonymous> (/mnt/hudson_workspace/workspace/CodereadyWorkspaces/e2e/basic/install-crw-using-crwctl/crwctl/lib/api/kube.js:2301:28) 2022-02-17T00:20:58.811Z at Generator.throw (<anonymous>) 2022-02-17T00:20:58.811Z at rejected (/mnt/hudson_workspace/workspace/CodereadyWorkspaces/e2e/basic/install-crw-using-crwctl/crwctl/node_modules/tslib/tslib.js:115:69) 2022-02-17T00:20:58.811Z Cause: HttpError: HTTP request failed 2022-02-17T00:20:58.811Z at Request._callback (/mnt/hudson_workspace/workspace/CodereadyWorkspaces/e2e/basic/install-crw-using-crwctl/crwctl/node_modules/@kubernetes/client-node/dist/gen/api/customObjectsApi.js:271:40) 2022-02-17T00:20:58.811Z at Request.self.callback (/mnt/hudson_workspace/workspace/CodereadyWorkspaces/e2e/basic/install-crw-using-crwctl/crwctl/node_modules/request/request.js:185:22) 2022-02-17T00:20:58.811Z at Request.emit (node:events:390:28) 2022-02-17T00:20:58.811Z at Request.<anonymous> (/mnt/hudson_workspace/workspace/CodereadyWorkspaces/e2e/basic/install-crw-using-crwctl/crwctl/node_modules/request/request.js:1154:10) 2022-02-17T00:20:58.811Z at Request.emit (node:events:390:28) 2022-02-17T00:20:58.811Z at IncomingMessage.<anonymous> (/mnt/hudson_workspace/workspace/CodereadyWorkspaces/e2e/basic/install-crw-using-crwctl/crwctl/node_modules/request/request.js:1076:12) 2022-02-17T00:20:58.811Z at Object.onceWrapper (node:events:509:28) 2022-02-17T00:20:58.811Z at IncomingMessage.emit (node:events:402:35)
Note: there was no `--package-manifest-name` parameter in server:deploy command.
PackageManifest name was "devworkspace-operator-fast-crw-2-16-osbs-stable-openshift-marketplace" in installed from OperatorHub instance: https://console-openshift-console.apps.ocp49-dnochevn.crw-qe.com/k8s/ns/openshift-operators/operators.coreos.com~v1alpha1~InstallPlan/install-shtpr/yaml