Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-2478

GKE Operator Nightly Build Failure: Timed out waiting for Kaniko pod

XMLWordPrintable

    • 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."

              rh-ee-asoro Armel Soro
              skhileri Subhash Khileri
              RHDH Install
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: