-
Bug
-
Resolution: Done
-
Critical
-
CRW 2.8.0
-
devex docs #203 Jun 17-Jul 8
-
5
-
Undefined
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.