Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-7522

PAC Controller restarts frequently due to "index out of range" error

XMLWordPrintable

    • Pipelines Sprint Crookshank 27

      Description of problem:

      Customer is seeing that the Tekton PAC Controller regularly crashes with the following being printed:

      1745393194456658112,2025-04-23T07:26:33.480499435Z,pac-controller,openshift-pipelines,osu-465gh-worker-1a-dsgqf,pipelines-as-code-controller-6894ddf4b6-svgzq,registry.redhat.io/openshift-pipelines/pipelines-pipelines-as-code-controller-rhel9@sha256:e8a5ba839496323bf5709b0f5b0167dd82cec4c9077c9ad1cd8c72d062e71061,registry.redhat.io/openshift-pipelines/pipelines-pipelines-as-code-controller-rhel9@sha256:bd0d7cf1243ddde8ec249cf97e11bdf5e17053bc44d6c880fb2a3796e4a3f61f,stderr,pac-controller,pac-controller,osu-465gh-worker-1a-dsgqf,pipelines-as-code-controller,controller,default,controller,pipelines-as-code,v0.33.0,de1d1448dc00d28dcc6880f6501ed16b,6894ddf4b6,resolvers,default,tekton-pipelines,openshift-pipelines,,true,true,tektoncd-pipelines,true,restricted,openshift-pipelines,openshift-pipelines,8175489a-30da-4d88-ab35-b2280273a14e,10.252.0.109,pipelines-as-code-controller-6894ddf4b6-svgzq,pipelines-as-code-controller-6894ddf4b6-svgzq,ReplicaSet/pipelines-as-code-controller-6894ddf4b6,default,container,infrastructure,infrastructure,panic: runtime error: index out of range [0] with length 0,infrastructure,"{""@timestamp"":""2025-04-23T07:26:33.480499435Z"",""kubernetes"":{""container_image"":""registry.redhat.io/openshift-pipelines/pipelines-pipelines-as-code-controller-rhel9@sha256:e8a5ba839496323bf5709b0f5b0167dd82cec4c9077c9ad1cd8c72d062e71061"",""container_image_id"":""registry.redhat.io/openshift-pipelines/pipelines-pipelines-as-code-controller-rhel9@sha256:bd0d7cf1243ddde8ec249cf97e11bdf5e17053bc44d6c880fb2a3796e4a3f61f"",""container_iostream"":""stderr"",""container_name"":""pac-controller"",""labels"":{""app"":""pipelines-as-code-controller"",""app_kubernetes_io_component"":""controller"",""app_kubernetes_io_instance"":""default"",""app_kubernetes_io_name"":""controller"",""app_kubernetes_io_part-of"":""pipelines-as-code"",""app_kubernetes_io_version"":""v0.33.0"",""operator_tekton_dev_deployment-spec-applied-hash"":""de1d1448dc00d28dcc6880f6501ed16b"",""pod-template-hash"":""6894ddf4b6""},""namespace_labels"":{""app_kubernetes_io_component"":""resolvers"",""app_kubernetes_io_instance"":""default"",""app_kubernetes_io_part-of"":""tekton-pipelines"",""kubernetes_io_metadata_name"":""openshift-pipelines"",""olm_operatorgroup_uid_a6742a32-5e2e-46a2-bf2c-b847235a0719"":"""",""openshift_io_cluster-monitoring"":""true"",""operator_tekton_dev_disable-proxy"":""true"",""operator_tekton_dev_operand-name"":""tektoncd-pipelines"",""operator_tekton_dev_targetNamespace"":""true"",""pod-security_kubernetes_io_enforce"":""restricted""},""namespace_name"":""openshift-pipelines"",""pod_id"":""8175489a-30da-4d88-ab35-b2280273a14e"",""pod_ip"":""10.252.0.109"",""pod_name"":""pipelines-as-code-controller-6894ddf4b6-svgzq"",""pod_owner"":""ReplicaSet/pipelines-as-code-controller-6894ddf4b6""},""level"":""default"",""log_source"":""container"",""log_type"":""infrastructure"",""message"":""panic: runtime error: index out of range [0] with length 0""}",

      It gets in running state for sometime and later again restarts with same issue.

      Prerequisites (if any, like setup, operators/versions): v1.18.0

      Steps to Reproduce

      • Use OpenShift Pipelines 1.18.0
      • work with PAC

      Actual results: PAC Controller restarts frequently due to error:

       

       

      panic: runtime error: index out of range [0] with length 0

       

      Expected results: PAC Controller doesn't restart 

      Reproducibility (Always/Intermittent/Only Once): None

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

       

       *

              rh-ee-zashaikh Zaki Shaikh
              rhn-support-sburhade Satyam Burhade
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: