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

ComplianceScan Controller has reconcile error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Critical Critical
    • None
    • 4.18
    • Compliance Operator
    • None

      Description of problem:

      Compliance Operator pod has errors for compliancescan-controller during e2e runs.
       
         {"level":"error","ts":"2025-02-13T12:36:26.843Z","msg":"Reconciler error","controller":"compliancescan-controller","controllerGroup":"compliance.openshift.io","controllerKind":"ComplianceScan","ComplianceScan":{"name":"audit-profile-set-test","namespace":"osdk-e2e-c7b629ac-14f7-48a6-a0d0-0e89295308c2"},"namespace":"osdk-e2e-c7b629ac-14f7-48a6-a0d0-0e89295308c2","name":"audit-profile-set-test","reconcileID":"5a834c8b-1cc5-4380-bf23-248e414a20d9","error":"Operation cannot be fulfilled on compliancescans.compliance.openshift.io \"audit-profile-set-test\": the object has been modified; please apply your changes to the latest version and try again","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:332\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:279\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:240"}

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

          Compliance Operator 1.6.1

      How reproducible:

          It has been observed in the compliance operator pod log during e2e runs

      Steps to Reproduce:

          1. Run CI on any compliance-operator in a PR
          2.
          3.
          

      Actual results:

      We have seen following error in the compliance operator pod log:  {"level":"error","ts":"2025-02-13T12:36:26.843Z","msg":"Reconciler error","controller":"compliancescan-controller","controllerGroup":"compliance.openshift.io","controllerKind":"ComplianceScan","ComplianceScan":{"name":"audit-profile-set-test","namespace":"osdk-e2e-c7b629ac-14f7-48a6-a0d0-0e89295308c2"},"namespace":"osdk-e2e-c7b629ac-14f7-48a6-a0d0-0e89295308c2","name":"audit-profile-set-test","reconcileID":"5a834c8b-1cc5-4380-bf23-248e414a20d9","error":"Operation cannot be fulfilled on compliancescans.compliance.openshift.io \"audit-profile-set-test\": the object has been modified; please apply your changes to the latest version and try again","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).reconcileHandler\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:332\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).processNextWorkItem\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:279\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller[...]).Start.func2.2\n\tsigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:240"}

      Expected results:

           We should not see this error log for the reconcile loop on the operator pod.

      Additional info:

          

              wenshen@redhat.com Vincent Shen
              wenshen@redhat.com Vincent Shen
              Xiaojie Yuan Xiaojie Yuan
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: