Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-12802

Remediate reconciler non-zero result and non-nil error warning for MCE

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor Minor
    • MCE 2.7.0
    • MCE 2.7.0
    • Installer
    • None
    • Installer Sprint 2024-42, Installer Sprint 2024-43
    • None

       In the MCE operator, when an error occurs there is a chance that a similar error message will display in the logs:

      2024-07-17T16:19:17.163Z
      	INFO	Warning: Reconciler returned both a non-zero result and a non-nil 
      error. The result will always be ignored if the error is non-nil and the
       non-nil error causes reqeueuing with exponential backoff. For more 
      details, see: 
      https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/reconcile#Reconciler
      	{"controller": "multiclusterengine", "controllerGroup": 
      "multicluster.openshift.io", "controllerKind": "MultiClusterEngine", 
      "MultiClusterEngine": {"name":"multiclusterengine"}, "namespace": "", 
      "name": "multiclusterengine", "reconcileID": 
      "40ed1484-fe1d-4074-a1cb-0ca401ef331b"}

      This is occurring because we are returning both a non-zero and non-nil result during runtime. To fix this, we should return only one of the option and leave the other one as nil to avoid this warning.

            cwall@redhat.com Cameron Wall
            dbennett@redhat.com Disaiah Bennett
            Thuy Nguyen Thuy Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: