Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-5136

CLO throw Exception message when delete mCLF

XMLWordPrintable

    • False
    • None
    • False
    • NEW
    • NEW
    • Release Note Not Required
    • Log Collection - Sprint 250
    • Moderate

      cluster-logging-operator-f85947c47-mtsp6 throws Exception message after I delete the ClusterLogForwarder under user namespace.

      oc logs cluster-logging-operator-f85947c47-mtsp6
      .....
      .....
      
      [controller-runtime] log.SetLogger(...) was never called; logs will not be displayed.
      Detected at:
      	>  goroutine 348 [running]:
      	>  runtime/debug.Stack()
      	>  	/usr/lib/golang/src/runtime/debug/stack.go:24 +0x65
      	>  sigs.k8s.io/controller-runtime/pkg/log.eventuallyFulfillRoot()
      	>  	/remote-source/cluster-logging-operator/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.1/pkg/log/log.go:60 +0xcd
      	>  sigs.k8s.io/controller-runtime/pkg/log.(*delegatingLogSink).WithValues(0xc0003f90c0, {0xc0045ecaa0, 0x2, 0x2})
      	>  	/remote-source/cluster-logging-operator/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.1/pkg/log/deleg.go:168 +0x54
      	>  github.com/go-logr/logr.Logger.WithValues(...)
      	>  	/remote-source/cluster-logging-operator/deps/gomod/pkg/mod/github.com/go-logr/logr@v1.4.1/logr.go:332
      	>  sigs.k8s.io/controller-runtime/pkg/builder.(*Builder).doController.func1(0xc0045eca80)
      	>  	/remote-source/cluster-logging-operator/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.1/pkg/builder/controller.go:400 +0x16b
      	>  sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc0000a6280, {0x1e83a28, 0xc000328550}, {0x19e50c0?, 0xc0045eca60?})
      	>  	/remote-source/cluster-logging-operator/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.1/pkg/internal/controller/controller.go:306 +0x18b
      	>  sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc0000a6280, {0x1e83a28, 0xc000328550})
      	>  	/remote-source/cluster-logging-operator/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.1/pkg/internal/controller/controller.go:266 +0x1c5
      	>  sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2()
      	>  	/remote-source/cluster-logging-operator/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.1/pkg/internal/controller/controller.go:227 +0x85
      	>  created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2
      	>  	/remote-source/cluster-logging-operator/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime@v0.17.1/pkg/internal/controller/controller.go:223 +0x587
      {"_ts":"2024-02-23T03:38:46.669564Z","_level":"0","_component":"cluster-logging-operator","_message":"clusterLogForwarder: test-clf/instance was deleted"}
      {"_ts":"2024-02-23T03:38:46.681772324Z","_level":"0","_component":"cluster-logging-operator","_message":"clusterLogForwarder: test-clf/instance was deleted"}
      {"_ts":"2024-02-23T03:38:46.702344328Z","_level":"0","_component":"cluster-logging-operator","_message":"clusterLogForwarder: test-clf/instance was deleted"}
      {"_ts":"2024-02-23T03:38:46.732621592Z","_level":"0","_component":"cluster-logging-operator","_message":"clusterLogForwarder: test-clf/instance was deleted"}
      

      Step to Reproduce:
      1) create CLF under namespace test-clf

      apiVersion: logging.openshift.io/v1
      kind: ClusterLogForwarder
      metadata:
        name: instance
        namespace: test-clf
      spec:
        outputs:
        - name: syslogserver
          secret:
            name: to-syslogserver
          syslog:
            facility: local0
            rfc: RFC5424
            severity: informational
          type: syslog
          url: tls://collector-syslog.openshift-logging.svc:6514
        pipelines:
        - inputRefs:
          - infrastructure
          name: pipe1
          outputRefs:
          - syslogserver
        serviceAccountName: to-syslogserver
      
      

      2) delete clf
      3) oc logs cluster-logging-operator-f85947c47-g6n6q

        1. clo_logs
          19 kB
          Casey Hartman

              cahartma@redhat.com Casey Hartman
              rhn-support-anli Anping Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: