Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-18061

[2083256] SSP Reconcile logging improvement when CR resources are changed

XMLWordPrintable

    • CNV Infra 219, CNV Infra 220, CNV Infra 221
    • No

      Description of problem:

      Better logging is needed for SSP 'ssps.ssp.kubevirt.io' in case SSP reconcile. Current logger don't show why reconcile happens and what changes in CR.
      Changes which let reconcile to happen is good to have and it will help to identify product issues and if reconcile should actually happen.

      Current logs:

      {"level":"info","ts":1652102869.4633186,"logger":"controller.ssp","msg":"Starting workers","reconciler group":"ssp.kubevirt.io","reconciler kind":"SSP","worker count":1} {"level":"info","ts":1652102869.4998937,"logger":"ssp-resource","msg":"validate update","name":"ssp-kubevirt-hyperconverged"} {"level":"error","ts":1652102870.4478307,"logger":"controller.ssp","msg":"Reconciler error","reconciler group":"ssp.kubevirt.io","reconciler kind":"SSP","name":"ssp-kubevirt-hyperconverged","namespace":"openshift-cnv","error":"Operation cannot be fulfilled on ssps.ssp.kubevirt.io \"ssp-kubevirt-hyperconverged\": 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).processNextWorkItem\n\t/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227"}

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

      How reproducible:
      always. Devops team is seeing most of the times

      Steps to Reproduce:
      1. Running automation tests show these errors
      2.
      3.

      Actual results:

      Expected results:

      Additional info:

              akrejcir@redhat.com Andrej Krejcir
              gkapoor@redhat.com Geetika Kapoor
              Geetika Kapoor Geetika Kapoor
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: