-
Bug
-
Resolution: Done-Errata
-
Normal
-
4.14
-
None
-
Low
-
No
-
2
-
Sprint 237
-
1
-
Rejected
-
False
-
-
-
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
- is cloned by
-
OCPBUGS-14396 Ingress Operator E2E log.SetLogger was never called error message
- Closed
- links to
-
RHEA-2023:5006 rpm