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

Reconcile errors for lokistack-gateway-ca-bundle when loki.enable=false and loki.mode=LokiStack

    • False
    • None
    • False
    • Hide
      Previously, when Loki was disabled and Loki Mode set to LokiStack, or if Loki manual TLS configuration was configured, the operator was still trying to read the Loki CA certificates.
      With this fix, when Loki is disabled, the Loki certificates won't be read no matter what else is set in the Loki configuration.
      Show
      Previously, when Loki was disabled and Loki Mode set to LokiStack, or if Loki manual TLS configuration was configured, the operator was still trying to read the Loki CA certificates. With this fix, when Loki is disabled, the Loki certificates won't be read no matter what else is set in the Loki configuration.
    • NetObserv - Sprint 253, NetObserv - Sprint 254
    • Low

      Description of problem:

      NOO has reconcile errors for lokistack-gateway-ca-bundle even when loki.enable=false but loki.mode=LokiStack
      
      2024-05-13T20:43:58.915Z	ERROR	Reconciler error	{"controller": "flp", "controllerGroup": "flows.netobserv.io", "controllerKind": "FlowCollector", "FlowCollector": {"name":"cluster"}, "namespace": "", "name": "cluster", "reconcileID": "9ccd5654-2856-4f36-b7ab-25b330f51f0c", "error": "configmaps \"lokistack-gateway-ca-bundle\" not found"}sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler	/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:329sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem	/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2	/remote-source/app/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227 

      Steps to Reproduce:

      1. Deploy LokiStack
      2. Deploy flowcollector
      3.
      

      Actual results:

      Operator logs will show errors as mentioned in description. 

      Expected results:

      it should not look for lokistack-gateway-ca-bundle when loki.enable==false 

            jtakvori Joel Takvorian
            rhn-support-memodi Mehul Modi
            Mehul Modi Mehul Modi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: