-
Task
-
Resolution: Obsolete
-
Major
-
2.8.0.GA
-
False
-
False
-
Undefined
-
From time to time, the test fails to get the CRW URL from the cluster using 'oc' command. Currently, it's not clear why it happens. We may want to add some check and retry and post some debugging info to the console output.
Example of the current console log output:
02:44:51 + oc login --token=**** https://api.sandbox.x8i5.p1.openshiftapps.com:6443 02:44:51 Logged into "https://api.sandbox.x8i5.p1.openshiftapps.com:6443" as "system:serviceaccount:sandbox-sre-host:crw-test-bot" using the token provided. 02:44:51 02:44:51 You have one project on this server: "toolchain-host-operator" 02:44:51 02:44:51 Using project "toolchain-host-operator". 02:44:51 Welcome! See 'oc help' to get started. 02:44:51 ++ oc get mur/**** -o json 02:44:51 ++ jq -r '.status.userAccounts[].cluster.apiEndpoint' 02:44:51 error: error loading config file "/home/hudson/.kube/config": yaml: line 17: could not find expected ':' 02:44:51 + URL= 02:44:51 ++ oc get mur/**** -o json 02:44:51 ++ jq -r '.status.userAccounts[].cluster.cheDashboardURL' 02:44:51 error: error loading config file "/home/hudson/.kube/config": yaml: line 17: could not find expected ':' 02:44:51 + CRW_URL= 02:44:51 ++ curl -ssLo- https://gitlab.cee.redhat.com/service/managed-tenants/-/raw/main/addons/codeready-workspaces-operator/metadata/production/addon.yaml 02:44:51 ++ grep currentCSV 02:44:51 + version_line='- currentCSV: crwoperator.v2.8.0' 02:44:51 + version=2.8.0 02:44:51 + mkdir -p /mnt/hudson_workspace/workspace/DevSandbox/periodic-sandbox/report/**** 02:44:51 + mkdir -p /mnt/hudson_workspace/workspace/DevSandbox/periodic-sandbox/video/**** 02:44:51 + oc login -u **** -p **** 02:44:52 error: error loading config file "/home/hudson/.kube/config": yaml: line 17: could not find expected ':'