Uploaded image for project: 'Docs for Red Hat Developers'
  1. Docs for Red Hat Developers
  2. RHDEVDOCS-2972

Documentation doesn't describe how to install CRW on OCP3

XMLWordPrintable

      Documentation doesn't describe how to install CRW on OCP3, although OCP3 is supported according to the RN.

      Installation guide -> "3.3.2. Installing CodeReady Workspaces on OpenShift 3 using the Operator"

      This chapter contains this prerequisite:

      To apply settings that the main crwctl command-line parameters cannot set, prepare a configuration file operator-cr-patch.yaml that will override the default values in the CheCluster Custom Resource used by the Operator. See Chapter 2, Configuring the CodeReady Workspaces installation.

      Chapter 2 contains some minimal yaml definition of CheCluster, but:

      • it's not clear which parameters needs to be set in that yaml file
      • Yaml file can be also applied on existing namespace, but the namespace is created by crwctl installer. The yaml file contains "patch" in it's name. But the installation procedure is not clear from the documentation.

      The procedure in Chapter 3.3.2 contains "crwctl server:deploy -n openshift-workspaces -p openshift" command. I tried several attempts how to start installer by this command with various configurations, but I still see this error:

      [mkopecky@localhost bin]$ ./crwctl server:deploy -p openshift
      β€Ί Installer type is set to: 'operator'
      β€Ί Current Kubernetes context: 'openshift-workspaces/master-multinode-nfs-029-eapqe-psi-redhat-com:8443/admin'
        βœ” Verify Kubernetes API...OK (it's OpenShift)
        βœ” πŸ‘€  Looking for an already existing CodeReady Workspaces instance
          βœ” Verify if CodeReady Workspaces is deployed into namespace "openshift-workspaces"...it is not
        βœ” ✈️  Openshift preflight checklist
          βœ” Verify if oc is installed...done.
          βœ” Verify if openshift is running...done.
          βœ” Check OpenShift version: v3.11.272.
          βœ” Check Kubernetes version: Found v1.11.0+d4cacc0.
        βœ” Following CodeReady Workspaces logs
          βœ” Start following Operator logs...done
          βœ” Start following CodeReady Workspaces server logs...done
          βœ” Start following Postgres logs...done
          βœ” Start following Keycloak logs...done
          βœ” Start following Plugin registry logs...done
          βœ” Start following Devfile registry logs...done
          βœ” Start following namespace events...done
       β€Ί   Warning: Consider using the more reliable 'OLM' installer when deploying a stable release of CodeReady Workspaces (--installer=olm).
        ❯ πŸƒβ€  Running the CodeReady Workspaces operator
          βœ” Create Namespace (openshift-workspaces)...Done.
          βœ” Create ServiceAccount codeready-operator in namespace openshift-workspaces...done.
          βœ” Read Roles and Bindings...done.
          βœ” Creating Roles and Bindings...done.
          βœ” Create CRD checlusters.org.eclipse.che...It already exists.
          βœ” Waiting 5 seconds for the new Kubernetes resources to get flushed...done.
          βœ” Create deployment codeready-operator in namespace openshift-workspaces...done.
          ❯ Operator pod bootstrap
            βœ” Scheduling...done
            βœ– Downloading images...failed
              β†’ Failed to download image, reason: ErrImagePull, message: rpc error: code = Unknown desc = Get https://registry.redhat.io/v2/codeready-workspaces/crw-2-rhel8-operator/manifests/2.8: unauthorized: Please login to the Red Hat Regis
      ...
              Starting
            Prepare CodeReady Workspaces cluster CR
       β€Ί   Error: Error: Failed to download image, reason: ErrImagePull, message: rpc error: code = Unknown desc = Get https://registry.redhat.io/v2/codeready-workspaces/crw-2-rhel8-operator/manifests/2.8: unauthorized: Please login to the Red 
       β€Ί   Hat Registry using your Customer Portal credentials. Further instructions can be found here: https://access.redhat.com/RegistryAuthentication.
       β€Ί   Command server:deploy failed. Error log: /home/mkopecky/.cache/crwctl/error.log
      [mkopecky@localhost bin]$ cat /home/mkopecky/.cache/crwctl/error.log
      2021-05-04T11:56:15.629Z Warning: Consider using the more reliable 'OLM' installer when deploying a stable release of CodeReady Workspaces (--installer=olm).
      2021-05-04T11:56:15.629Z     at Object.warn (/home/mkopecky/erase3/codeready-workspaces-2.8.0-GA-crwctl-linux-x64/crwctl/node_modules/@oclif/errors/lib/index.js:33:15)
      2021-05-04T11:56:15.629Z     at Deploy.warn (/home/mkopecky/erase3/codeready-workspaces-2.8.0-GA-crwctl-linux-x64/crwctl/node_modules/@oclif/command/lib/command.js:55:26)
      2021-05-04T11:56:15.629Z     at OperatorTasks.deployTasks (/home/mkopecky/erase3/codeready-workspaces-2.8.0-GA-crwctl-linux-x64/crwctl/lib/tasks/installers/operator.js:138:21)
      2021-05-04T11:56:15.629Z     at Task.task (/home/mkopecky/erase3/codeready-workspaces-2.8.0-GA-crwctl-linux-x64/crwctl/lib/tasks/installers/installer.js:83:38)
      2021-05-04T11:56:15.629Z     at /home/mkopecky/erase3/codeready-workspaces-2.8.0-GA-crwctl-linux-x64/crwctl/node_modules/listr/lib/task.js:167:30
      2021-05-04T11:56:15.629Z     at processTicksAndRejections (internal/process/task_queues.js:97:5)
      2021-05-04T11:56:47.470Z Error: Error: Failed to download image, reason: ErrImagePull, message: rpc error: code = Unknown desc = Get https://registry.redhat.io/v2/codeready-workspaces/crw-2-rhel8-operator/manifests/2.8: unauthorized: Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here: https://access.redhat.com/RegistryAuthentication.
      2021-05-04T11:56:47.470Z Command server:deploy failed. Error log: /home/mkopecky/.cache/crwctl/error.log
      2021-05-04T11:56:47.470Z     at Object.error (~/erase3/codeready-workspaces-2.8.0-GA-crwctl-linux-x64/crwctl/node_modules/@oclif/errors/lib/index.js:22:17)
      2021-05-04T11:56:47.470Z     at Deploy.error (~/erase3/codeready-workspaces-2.8.0-GA-crwctl-linux-x64/crwctl/node_modules/@oclif/command/lib/command.js:57:23)
      2021-05-04T11:56:47.470Z     at Deploy.<anonymous> (~/erase3/codeready-workspaces-2.8.0-GA-crwctl-linux-x64/crwctl/lib/commands/server/deploy.js:245:22)
      2021-05-04T11:56:47.470Z     at Generator.throw (<anonymous>)
      2021-05-04T11:56:47.470Z     at rejected (~/erase3/codeready-workspaces-2.8.0-GA-crwctl-linux-x64/crwctl/node_modules/tslib/tslib.js:115:69)
      [mkopecky@localhost bin]$
      

      Btw, logs suggest to use "--installer=olm" parameter, but this parameter doesn't help.

              mmaler@redhat.com Michal MalΓ©Ε™
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: