Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-4205

Index out of range on batch timeout

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Normal
    • None
    • 4.12
    • TALM Operator
    • None
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      TALM stopped running due to an index out of range error

      Version-Release number of selected component (if applicable):

      4.12

      How reproducible:

      tbd

      Steps to Reproduce:

      1. tbd
      2.
      3.
      

      Actual results:

      TALM panic'd with an index out of range exception on batch timeout

      Expected results:

      TALM processes the timeout and continues running

      Additional info:

      panic: runtime error: index out of range [0] with length 0goroutine 542 [running]:
      github.com/openshift-kni/cluster-group-upgrades-operator/controllers.(*ClusterGroupUpgradeReconciler).getNextRemediationPoliciesForBatch(0xfbc8994?, {0x1884978?, 0xc00068a1e0?}, 0xc0d964ba4fbc8994?)
          /home/sskeard/git/github/cluster-group-upgrades-operator/controllers/clustergroupupgrade_controller.go:716 +0x64e
      github.com/openshift-kni/cluster-group-upgrades-operator/controllers.(*ClusterGroupUpgradeReconciler).isUpgradeComplete(0x0?, {0x1884978, 0xc00068a1e0}, 0xc000ade700)
          /home/sskeard/git/github/cluster-group-upgrades-operator/controllers/clustergroupupgrade_controller.go:1308 +0x48
      github.com/openshift-kni/cluster-group-upgrades-operator/controllers.(*ClusterGroupUpgradeReconciler).Reconcile(0xc000548080, {0x1884978, 0xc00068a1e0}, {{{0xc0004d2ae0, 0x9}, {0xc00046e660, 0x20}}})
          /home/sskeard/git/github/cluster-group-upgrades-operator/controllers/clustergroupupgrade_controller.go:590 +0x15a7
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc0001e45a0, {0x18848d0, 0xc0008694c0}, {0x14e0660?, 0xc000888f60?})
          /home/sskeard/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.3-0.20210709165254-650ea59f19cc/pkg/internal/controller/controller.go:298 +0x303
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc0001e45a0, {0x18848d0, 0xc0008694c0})
          /home/sskeard/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.3-0.20210709165254-650ea59f19cc/pkg/internal/controller/controller.go:253 +0x1d9
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2()
          /home/sskeard/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.3-0.20210709165254-650ea59f19cc/pkg/internal/controller/controller.go:214 +0x85
      created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2
          /home/sskeard/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.3-0.20210709165254-650ea59f19cc/pkg/internal/controller/controller.go:210 +0x307
      exit status 2
      make: *** [Makefile:223: run] Error 1
      

      Attachments

        Issue Links

          Activity

            People

              jche@redhat.com Jun Chen
              sskeard@redhat.com Steven Skeard
              Yang Liu Yang Liu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: