Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-14395

DNS Operator log.SetLogger was never called error message

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • 4.14.0
    • 4.14
    • Networking / DNS
    • None
    • Low
    • No
    • 2
    • Sprint 237
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, the DNS Operator logged the error message on startup `cluster-dns-operator startup has an error message: [controller-runtime] log.SetLogger(...) was never called, logs will not be displayed:` misleading users. Now, the error message is not displayed on startup. (link:https://issues.redhat.com/browse/OCPBUGS-14395[*OCPBUGS-14395*])
      Show
      * Previously, the DNS Operator logged the error message on startup `cluster-dns-operator startup has an error message: [controller-runtime] log.SetLogger(...) was never called, logs will not be displayed:` misleading users. Now, the error message is not displayed on startup. (link: https://issues.redhat.com/browse/OCPBUGS-14395 [* OCPBUGS-14395 *])
    • Bug Fix
    • Done

      Description of problem:

      cluster-dns-operator startup has an error message:
      
      [controller-runtime] log.SetLogger(...) was never called, logs will not be displayed:

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

      4.14

      How reproducible:

      Always

      Steps to Reproduce:

      1. Start cluster-dns-operator
      2. oc edit dnses.operator.openshift.io default
        -> Change operatorLogLevel to "Trace" or "Debug" (it doesn't matter which, we just want to trigger an update)
      3. Observe backtrace in logs
      

      Actual results:

      [controller-runtime] log.SetLogger(...) was never called, logs will not be displayed:
      goroutine 201 [running]:
      runtime/debug.Stack()
      	/usr/lib/golang/src/runtime/debug/stack.go:24 +0x65
      sigs.k8s.io/controller-runtime/pkg/log.eventuallyFulfillRoot()
      	/dns-operator/vendor/sigs.k8s.io/controller-runtime/pkg/log/log.go:59 +0xbd
      sigs.k8s.io/controller-runtime/pkg/log.(*delegatingLogSink).WithValues(0xc0000bae40, {0xc000768ae0, 0x6, 0x6})
      	/dns-operator/vendor/sigs.k8s.io/controller-runtime/pkg/log/deleg.go:168 +0x54
      github.com/go-logr/logr.Logger.WithValues(...)
      	/dns-operator/vendor/github.com/go-logr/logr/logr.go:323
      sigs.k8s.io/controller-runtime/pkg/controller.NewUnmanaged.func1(0xc000991980)
      	/dns-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controller.go:121 +0x1f6
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc0003265a0, {0x1bddf28, 0xc00049d7c0}, {0x17b6120?, 0xc000991960?})
      	/dns-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:305 +0x18b
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc0003265a0, {0x1bddf28, 0xc00049d7c0})
      	/dns-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:265 +0x1d9
      sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2()
      	/dns-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:226 +0x85
      created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2
      	/dns-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:222 +0x587

      Expected results:

      No error message

      Additional info:

      This is due to 1.27 rebase: https://github.com/openshift/cluster-dns-operator/pull/368

            gspence@redhat.com Grant Spence
            gspence@redhat.com Grant Spence
            Melvin Joseph Melvin Joseph
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: