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

crwctl 2.15.0 failed to deploy CRW on CheCluster creation step: "Cannot set property 'enable' of undefined"

XMLWordPrintable

    • False
    • False

      crwctl/2.15.0-CI-redhat.f90c63b linux-x64 node-v12.22.5

      crwctl bundle: https://github.com/redhat-developer/codeready-workspaces-chectl/releases/download/2.15.0-crwctl-CI-assets/codeready-workspaces-2.15.0-CI-crwctl-linux-x64.tar.gz

      CRW operator metadata:

      • codeready-workspaces-rhel8-operator-metadata-container-2.15-20
      • brew.registry.redhat.io/rh-osbs/iib:162736

      OCP 4.9 instance: https://console-openshift-console.apps.ocp49-dnochevn.crw-qe.com/k8s/cluster/projects

      server deploy command
      crwctl/bin/crwctl server:deploy --no-olm-suggested-namespace --catalog-source-name=crw-2-15-osbs-latest --catalog-source-namespace=openshift-marketplace --package-manifest-name=codeready-workspaces --olm-channel=latest --listr-renderer=verbose -n next-crw
      
      crwctl log
      › Installer type is set to: 'olm'
      [23:00:58] Verify Kubernetes API [started]
      › Current Kubernetes context: 'default/api-ocp49-dnochevn-crw-qe-com:6443/admin'
      [23:00:58] Verify Kubernetes API...OK [title changed]
      [23:01:00] Verify Kubernetes API...OK (it's OpenShift) [title changed]
      [23:01:00] Verify Kubernetes API...OK (it's OpenShift) [completed]
      [23:01:00]   Looking for an already existing CodeReady Workspaces instance [started]
      [23:01:00] Verify if CodeReady Workspaces is deployed into namespace "next-crw" [started]
      [23:01:01] Verify if CodeReady Workspaces is deployed into namespace "next-crw"...it is not [title changed]
      [23:01:01] Verify if CodeReady Workspaces is deployed into namespace "next-crw"...it is not [completed]
      [23:01:01]   Looking for an already existing CodeReady Workspaces instance [completed]
      [23:01:01]   Openshift preflight checklist [started]
      [23:01:01] Verify if oc is installed [started]
      [23:01:01] Verify if oc is installed...done. [title changed]
      [23:01:01] Verify if oc is installed...done. [completed]
      [23:01:01] Verify if openshift is running [started]
      [23:01:03] Verify if openshift is running...done. [title changed]
      [23:01:03] Verify if openshift is running...done. [completed]
      [23:01:03] Check OpenShift version [started]
      [23:01:07] Check OpenShift version: 4.x [title changed]
      [23:01:07] Check OpenShift version: 4.x [completed]
      [23:01:07] Check Kubernetes version [started]
      [23:01:07] Check Kubernetes version: Unknown. [title changed]
      [23:01:07] Check Kubernetes version: Unknown. [completed]
      [23:01:07]   Openshift preflight checklist [completed]
      [23:01:07] Following CodeReady Workspaces logs [started]
      [23:01:07] Start following Operator logs [started]
      [23:01:07] Start following Operator logs...done [title changed]
      [23:01:07] Start following Operator logs...done [completed]
      [23:01:07] Start following CodeReady Workspaces Server logs [started]
      [23:01:07] Start following CodeReady Workspaces Server logs...done [title changed]
      [23:01:07] Start following CodeReady Workspaces Server logs...done [completed]
      [23:01:07] Start following PostgreSQL logs [started]
      [23:01:07] Start following PostgreSQL logs...done [title changed]
      [23:01:07] Start following PostgreSQL logs...done [completed]
      [23:01:07] Start following Keycloak logs [started]
      [23:01:07] Start following Keycloak logs...done [title changed]
      [23:01:07] Start following Keycloak logs...done [completed]
      [23:01:07] Start following Plug-in Registry logs [started]
      [23:01:07] Start following Plug-in Registry logs...done [title changed]
      [23:01:07] Start following Plug-in Registry logs...done [completed]
      [23:01:07] Start following Devfile Registry logs [started]
      [23:01:07] Start following Devfile Registry logs...done [title changed]
      [23:01:07] Start following Devfile Registry logs...done [completed]
      [23:01:07] Start following CodeReady Workspaces Dashboard logs [started]
      [23:01:07] Start following CodeReady Workspaces Dashboard logs...done [title changed]
      [23:01:07] Start following CodeReady Workspaces Dashboard logs...done [completed]
      [23:01:07] Start following namespace events [started]
      [23:01:07] Start following namespace events...done [title changed]
      [23:01:07] Start following namespace events...done [completed]
      [23:01:07] Following CodeReady Workspaces logs [completed]
      [23:01:07] Create Namespace next-crw [started]
      [23:01:10] Create Namespace next-crw...[OK] [title changed]
      [23:01:10] Create Namespace next-crw...[OK] [completed]
      [23:01:10]   Running Olm installation CodeReady Workspaces [started]
      [23:01:10] Check if OLM is pre-installed on the platform [started]
      [23:01:10] Check if OLM is pre-installed on the platform...[OK] [title changed]
      [23:01:10] Check if OLM is pre-installed on the platform...[OK] [completed]
      [23:01:10] Configure context information [started]
      [23:01:10] Configure context information...[OK] [title changed]
      [23:01:10] Configure context information...[OK] [completed]
      [23:01:10] Check Dev Workspace operator installation [started]
      [23:01:11] Check Dev Workspace operator installation...[Not OperatorHub] [title changed]
      [23:01:11] Check Dev Workspace operator installation...[Not OperatorHub] [completed]
      [23:01:11] Create Dev Workspace operator CatalogSource [started]
      [23:01:13] Create Dev Workspace operator CatalogSource...[OK] [title changed]
      [23:01:13] Create Dev Workspace operator CatalogSource...[OK] [completed]
      [23:01:13] Create Dev Workspace operator Subscription [started]
      [23:01:15] Create Dev Workspace operator Subscription...[OK] [title changed]
      [23:01:15] Create Dev Workspace operator Subscription...[OK] [completed]
      [23:01:15] Wait Dev Workspace operator Subscription is ready [started]
      [23:01:28] Wait Dev Workspace operator Subscription is ready...[OK] [title changed]
      [23:01:28] Wait Dev Workspace operator Subscription is ready...[OK] [completed]
      [23:01:28] Wait Dev Workspace operator InstallPlan [started]
      [23:01:36] Wait Dev Workspace operator InstallPlan...[OK] [title changed]
      [23:01:36] Wait Dev Workspace operator InstallPlan...[OK] [completed]
      [23:01:36] Wait Dev Workspace CSV [started]
      [23:01:37] Wait Dev Workspace CSV...[OK] [title changed]
      [23:01:37] Wait Dev Workspace CSV...[OK] [completed]
      [23:01:37] Create operator subscription [started]
      [23:01:38] Create operator subscription...[OK] [title changed]
      [23:01:38] Create operator subscription...[OK] [completed]
      [23:01:38] Wait while subscription is ready [started]
      [23:01:40] Wait while subscription is ready...[OK] [title changed]
      [23:01:40] Wait while subscription is ready...[OK] [completed]
      [23:01:40] Wait operator install plan [started]
      [23:01:45] Wait operator install plan...[OK] [title changed]
      [23:01:45] Wait operator install plan...[OK] [completed]
      [23:01:45] Check cluster service version resource [started]
      [23:01:47] Check cluster service version resource...[OK] [title changed]
      [23:01:47] Check cluster service version resource...[OK] [completed]
      [23:01:47] Prepare CodeReady Workspaces cluster CR [started]
      [23:01:49] Prepare CodeReady Workspaces cluster CR...[OK] [title changed]
      [23:01:49] Prepare CodeReady Workspaces cluster CR...[OK] [completed]
      [23:01:49] Create the Custom Resource of type checlusters.org.eclipse.che [started]
      [23:01:49] Create the Custom Resource of type checlusters.org.eclipse.che in the namespace next-crw [title changed]
      [23:01:50] Create the Custom Resource of type checlusters.org.eclipse.che in the namespace next-crw [failed]
      [23:01:50]  Cannot set property 'enable' of undefined
      [23:01:50]   Running Olm installation CodeReady Workspaces [failed]
      [23:01:50]  Cannot set property 'enable' of undefined
          Error: Command server:deploy failed. Error log: /home/ndp/.cache/crwctl/error.log 
      error.log
      2022-01-20T21:01:50.727Z Error: Command server:deploy failed. Error log: /home/ndp/.cache/crwctl/error.log.
      2022-01-20T21:01:50.727Z     at newError (~/tmp/crwctl/lib/util.js:199:19)
      2022-01-20T21:01:50.727Z     at Object.wrapCommandError (~/tmp/crwctl/lib/util.js:195:12)
      2022-01-20T21:01:50.727Z     at Deploy.<anonymous> (~/tmp/crwctl/lib/commands/server/deploy.js:226:35)
      2022-01-20T21:01:50.727Z     at Generator.throw (<anonymous>)
      2022-01-20T21:01:50.727Z     at rejected (~/tmp/crwctl/node_modules/tslib/tslib.js:115:69)
      2022-01-20T21:01:50.727Z Cause: TypeError: Cannot set property 'enable' of undefined
      2022-01-20T21:01:50.727Z     at KubeHelper.<anonymous> (~/tmp/crwctl/lib/api/kube.js:1805:55)
      2022-01-20T21:01:50.727Z     at Generator.next (<anonymous>)
      2022-01-20T21:01:50.727Z     at ~/tmp/crwctl/node_modules/tslib/tslib.js:117:75
      2022-01-20T21:01:50.727Z     at new Promise (<anonymous>)
      2022-01-20T21:01:50.727Z     at Object.__awaiter (~/tmp/crwctl/node_modules/tslib/tslib.js:113:16)
      2022-01-20T21:01:50.727Z     at KubeHelper.createCheCluster (~/tmp/crwctl/lib/api/kube.js:1754:24)
      2022-01-20T21:01:50.727Z     at Object.<anonymous> (~/tmp/crwctl/lib/tasks/installers/common-tasks.js:133:35)
      2022-01-20T21:01:50.727Z     at Generator.next (<anonymous>)
      2022-01-20T21:01:50.727Z     at fulfilled (~/tmp/crwctl/node_modules/tslib/tslib.js:114:62)
      

      CRW project: https://console-openshift-console.apps.ocp49-dnochevn.crw-qe.com/k8s/cluster/projects/next-crw

      There were two operator subscriptions created:

      CRW pods are created inside the "openshift-operators" project: https://console-openshift-console.apps.ocp49-dnochevn.crw-qe.com/k8s/ns/openshift-operators/operators.coreos.com~v1alpha1~ClusterServiceVersion/crwoperator.v2.15.0/subscription

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

                Created:
                Updated:
                Resolved: