-
Bug
-
Resolution: Done
-
Major
-
2.6.0.GA
-
False
-
False
-
Undefined
-
Workaround Exists
-
-
Upgrade from CRW 2.4.0 / 2.5.1 to CRW 2.6.0.RC-01-29 by crwctl failed on OCP 3.11 because crwctl couldn't find "templates/codeready-workspaces-operator/":
CRW 2.4.0 > 2.6.0
CRW 2.5.1 > 2.6.0
+ /mnt/hudson_workspace/workspace/CodereadyWorkspaces/e2e/basic/update-crw-using-crwctl/crwctl/bin/crwctl server:update --che-operator-image=registry-proxy.engineering.redhat.com/rh-osbs/codeready-workspaces-operator:latest --listr-renderer=verbose --skip-version-check --yes -n update-crw-crwctl › Current Kubernetes context: 'update-crw-crwctl/console-ocp311-crw-qe-com:8443/admin' (node:9916) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification. › Installer type is set to: 'operator' [17:41:13] Verify Kubernetes API [started] [17:41:13] Verify Kubernetes API...OK [title changed] [17:41:13] Verify Kubernetes API...OK (it's OpenShift) [title changed] [17:41:13] Verify Kubernetes API...OK (it's OpenShift) [completed] [17:41:13] Running the CodeReady Workspaces operator Update [started] [17:41:13] Checking versions compatibility before updating [started] [17:41:13] Checking versions compatibility before updating [completed] [17:41:13] Running the CodeReady Workspaces operator Update [completed] Existed CodeReady Workspaces operator: registry.redhat.io/codeready-workspaces/crw-2-rhel8-operator:2.5-10. New CodeReady Workspaces operator : registry-proxy.engineering.redhat.com/rh-osbs/codeready-workspaces-operator:latest. › Warning: CodeReady Workspaces operator deployment will be updated with the › provided image, › but other CodeReady Workspaces components will be updated to the 2.6 › version. › Consider removing '--che-operator-image' to update CodeReady Workspaces › operator to the same version. [17:41:13] Updating... [started] [17:41:13] Running the CodeReady Workspaces operator Update [started] [17:41:13] Copying operator resources [started] [17:41:13] Copying operator resources [failed] [17:41:13] ENOENT: no such file or directory, stat 'templates/codeready-workspaces-operator/' [17:41:13] Running the CodeReady Workspaces operator Update [failed] [17:41:13] ENOENT: no such file or directory, stat 'templates/codeready-workspaces-operator/' [17:41:13] Updating... [failed] [17:41:13] ENOENT: no such file or directory, stat 'templates/codeready-workspaces-operator/' Error: Error: ENOENT: no such file or directory, stat 'templates/codeready-workspaces-operator/' Command server:update failed. Error log: /home/hudson/.cache/crwctl/error.log CodeReady Workspaces logs: /tmp/crwctl-logs/1612219272963
crwctl/error.log
2021-02-01T22:41:13.111Z Warning: CodeReady Workspaces operator deployment will be updated with the provided image, 2021-02-01T22:41:13.111Z but other CodeReady Workspaces components will be updated to the 2.6 version. 2021-02-01T22:41:13.111Z Consider removing '--che-operator-image' to update CodeReady Workspaces operator to the same version. 2021-02-01T22:41:13.111Z at Object.warn (/mnt/hudson_workspace/workspace/CodereadyWorkspaces/e2e/basic/update-crw-using-crwctl/crwctl/node_modules/@oclif/errors/lib/index.js:33:15) 2021-02-01T22:41:13.111Z at Update.<anonymous> (/mnt/hudson_workspace/workspace/CodereadyWorkspaces/e2e/basic/update-crw-using-crwctl/crwctl/lib/commands/server/update.js:111:34) 2021-02-01T22:41:13.111Z at Generator.next (<anonymous>) 2021-02-01T22:41:13.111Z at fulfilled (/mnt/hudson_workspace/workspace/CodereadyWorkspaces/e2e/basic/update-crw-using-crwctl/crwctl/node_modules/tslib/tslib.js:107:62) 2021-02-01T22:41:13.111Z at processTicksAndRejections (internal/process/task_queues.js:97:5) 2021-02-01T22:41:13.195Z Error: Error: ENOENT: no such file or directory, stat 'templates/codeready-workspaces-operator/' 2021-02-01T22:41:13.195Z Command server:update failed. Error log: /home/hudson/.cache/crwctl/error.log CodeReady Workspaces logs: /tmp/crwctl-logs/1612219272963 2021-02-01T22:41:13.195Z at Object.error (/mnt/hudson_workspace/workspace/CodereadyWorkspaces/e2e/basic/update-crw-using-crwctl/crwctl/node_modules/@oclif/errors/lib/index.js:22:17) 2021-02-01T22:41:13.195Z at Update.error (/mnt/hudson_workspace/workspace/CodereadyWorkspaces/e2e/basic/update-crw-using-crwctl/crwctl/node_modules/@oclif/command/lib/command.js:57:23) 2021-02-01T22:41:13.195Z at Update.<anonymous> (/mnt/hudson_workspace/workspace/CodereadyWorkspaces/e2e/basic/update-crw-using-crwctl/crwctl/lib/commands/server/update.js:175:22) 2021-02-01T22:41:13.195Z at Generator.throw (<anonymous>) 2021-02-01T22:41:13.195Z at rejected (/mnt/hudson_workspace/workspace/CodereadyWorkspaces/e2e/basic/update-crw-using-crwctl/crwctl/node_modules/tslib/tslib.js:108:69)
crwctl/2.6.0-RC-01-25-quay.3b9630d linux-x64 node-v12.18.2
https://github.com/redhat-developer/codeready-workspaces-chectl/releases/download/2.6.0-RC-01-25-dfd1/codeready-workspaces-2.6.0-RC-01-25-crwctl-linux-x64.tar.gz
templates/codeready-workspaces-operator directory does exist in crwctl binary
templates/codeready-workspaces-operator
[ndp@localhost codeready-workspaces-operator]$ pwd /home/ndp/Downloads/codeready-workspaces-2.6 (1).0-RC-01-25-crwctl-linux-x64/crwctl/templates/codeready-workspaces-operator [ndp@localhost codeready-workspaces-operator]$ ls -la total 52 drwxrwxr-x. 4 ndp ndp 4096 Jan 25 15:57 . drwxrwxr-x. 5 ndp ndp 4096 Jan 25 15:57 .. -rw-rw-r--. 1 ndp ndp 620 Jan 25 15:57 cluster_role_binding.yaml -rw-rw-r--. 1 ndp ndp 1223 Jan 25 15:57 cluster_role.yaml drwxrwxr-x. 2 ndp ndp 4096 Jan 25 15:57 crds -rw-rw-r--. 1 ndp ndp 640 Jan 25 15:57 namespaces_cluster_role_binding.yaml -rw-rw-r--. 1 ndp ndp 544 Jan 25 15:57 namespaces_cluster_role.yaml drwxrwxr-x. 4 ndp ndp 4096 Jan 25 15:57 olm-catalog -rw-rw-r--. 1 ndp ndp 3680 Jan 25 15:57 operator.yaml -rw-rw-r--. 1 ndp ndp 834 Jan 25 15:57 role_binding_oauth.yaml -rw-rw-r--. 1 ndp ndp 584 Jan 25 15:57 role_binding.yaml -rw-rw-r--. 1 ndp ndp 1842 Jan 25 15:57 role.yaml -rw-rw-r--. 1 ndp ndp 414 Jan 25 15:57 service_account.yaml
- is caused by
-
CRW-1516 Verify an update CRW 2.4.0 to CRW 2.6.0 on OCP 3.11
- Closed