Uploaded image for project: 'OpenShift Service Mesh'
  1. OpenShift Service Mesh
  2. OSSM-6342

Don't log error when istio-system namespace is missing

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • OSSM 3.0-TP1
    • None
    • Project Sail
    • None

      If you create an Istio or IstioCNI object that points to a non-existent namespace, the operator logs errors:

      2024-04-19T06:14:24Z	ERROR	ctrlr.istiorev	Reconciler error	{"IstioRevision": "default", "reconcileID": "21ea1fe2-e04b-4d01-b920-6ecf54216193", "error": "failed to install helm chart istiod: create: failed to create: namespaces \"istio-system\" not found"}
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
      	sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:329
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
      	sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:266
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
      	sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:227
      

      Since this is a user error, it shouldn't be logged at ERROR level.

            mluksa@redhat.com Marko Luksa
            mluksa@redhat.com Marko Luksa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: