Uploaded image for project: 'Network Observability'
  1. Network Observability
  2. NETOBSERV-1758

[upstream / rancher / kind] operator error, trying to find openshift namespaces

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • Operator
    • False
    • None
    • False
    • n/a (upstream only)
    • Release Note Not Required
    • NetObserv - Sprint 257

      Description of problem:

      While installing netobserv on rancher (actually, on any distro that has ServiceMonitor api installed), this error shows up:

      2024-07-08T13:37:33.985Z        ERROR   monitoring      Monitoring reconcile failure    {"error": "namespaces \"openshift-config-managed\" not found"}
      github.com/netobserv/network-observability-operator/controllers/monitoring.(*Reconciler).Reconcile
              /opt/app-root/controllers/monitoring/monitoring_controller.go:77
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile
              /opt/app-root/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:114
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
              /opt/app-root/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:311
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
              /opt/app-root/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:261
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
              /opt/app-root/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:222

      The monitoring controller should only run on openshift.

       

      It can also be reproduced by using KIND and installing the ServiceMonitor CRD

              jtakvori Joel Takvorian
              jtakvori Joel Takvorian
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: