-
Bug
-
Resolution: Done
-
Blocker
-
1.9.0
-
1
-
False
-
-
False
-
Release Note Not Required
-
-
-
RHDH Install 3285
Issue Description: The build failed during the installation of the RHDH operator on a GKE cluster.
Failure Details: The script timed out waiting for the `kaniko-build-1767853177` pod to be created. The following error was observed: `error: error executing jsonpath "
{.items[0].metadata.name}": Error executing template: array index out of bounds: index 0, length 0.`
Root Cause Analysis: The root cause of the failure is a timing issue during the execution of the RHDH operator installation script. The script attempts to retrieve the name of the Kaniko pod immediately after creating the job, but the pod has not yet been scheduled and created. This results in an empty list of pods, causing the `jsonpath` expression to fail with an "index out of bounds" error.
Actionable Recommendations:
1. Implement a polling mechanism with a timeout in the script to wait for the Kaniko pod to be in a "Running" state before attempting to retrieve its name.
2. Add more robust error handling to the script to catch the `jsonpath` error and provide a more informative message, such as "Timed out waiting for Kaniko pod to start."
- links to