-
Bug
-
Resolution: Unresolved
-
Undefined
-
4.19
-
Quality / Stability / Reliability
-
False
-
-
None
-
None
-
None
-
None
-
None
-
None
-
In Progress
-
Release Note Not Required
-
None
-
None
-
None
-
None
-
None
Description of problem:
Get latest console code, login ocp cluster, under console repo, run './build.sh;source ./contrib/oc-environment.s;./bin/bridge ', access 'http://localhost:9000' in browser. There will be runtime error shown in terminal log: 'controller-runtime] log.SetLogger(...) was never called; logs will not be displayed.'
Version-Release number of selected component (if applicable):
lastest console code in main branch.
How reproducible:
Always
Steps to Reproduce:
1.Bridge console and access 'http://localhost:9000' in browser. 2. 3.
Actual results:
1. There will be runtime error shown in terminal log: $ ./bin/bridge W0516 14:18:50.543818 12713 authoptions.go:112] Flag inactivity-timeout is set to less then 300 seconds and will be ignored! W0516 14:18:50.543880 12713 authoptions.go:265] running with AUTHENTICATION DISABLED -- for development use only! I0516 14:18:50.545430 12713 main.go:673] Binding to 0.0.0.0:9000... I0516 14:18:50.545436 12713 main.go:675] Not using TLS I0516 14:18:53.545293 12713 metrics.go:133] serverconfig.Metrics: Update ConsolePlugin metrics... I0516 14:18:54.443612 12713 metrics.go:143] serverconfig.Metrics: Update ConsolePlugin metrics: &map[monitoring:map[disabled:1] networking:map[disabled:1]] (took 898.276389ms) I0516 14:18:55.546092 12713 metrics.go:80] usage.Metrics: Count console users... I0516 14:18:56.736006 12713 metrics.go:156] usage.Metrics: Update console users metrics: 1 kubeadmin, 0 cluster-admins, 1 developers, 0 unknown/errors (took 1.189802104s) I0516 14:19:03.018521 12713 proxy.go:251] CheckOrigin: Proxy has no configured Origin. Allowing origin [http://localhost:9000] to wss://api.qe-uidaily-0516.qe.azure.devcluster.openshift.com:6443/apis/operators.coreos.com/v1alpha1/subscriptions?watch=true&resourceVersion=109326 I0516 14:19:04.030855 12713 proxy.go:251] CheckOrigin: Proxy has no configured Origin. Allowing origin [http://localhost:9000] to wss://api.qe-uidaily-0516.qe.azure.devcluster.openshift.com:6443/apis/console.openshift.io/v1/consoleplugins?watch=true&resourceVersion=109326 I0516 14:19:04.918269 12713 proxy.go:251] CheckOrigin: Proxy has no configured Origin. Allowing origin [http://localhost:9000] to wss://api.qe-uidaily-0516.qe.azure.devcluster.openshift.com:6443/apis/operators.coreos.com/v1alpha1/clusterserviceversions?watch=true&resourceVersion=109333 I0516 14:19:05.824651 12713 proxy.go:251] CheckOrigin: Proxy has no configured Origin. Allowing origin [http://localhost:9000] to wss://api.qe-uidaily-0516.qe.azure.devcluster.openshift.com:6443/api/v1/pods?watch=true&resourceVersion=109324 I0516 14:19:06.706996 12713 proxy.go:251] CheckOrigin: Proxy has no configured Origin. Allowing origin [http://localhost:9000] to wss://api.qe-uidaily-0516.qe.azure.devcluster.openshift.com:6443/apis/machineconfiguration.openshift.io/v1/machineconfigpools?watch=true&resourceVersion=109334 I0516 14:19:07.607880 12713 proxy.go:251] CheckOrigin: Proxy has no configured Origin. Allowing origin [http://localhost:9000] to wss://api.qe-uidaily-0516.qe.azure.devcluster.openshift.com:6443/apis/console.openshift.io/v1/consolenotifications?watch=true&resourceVersion=109334 I0516 14:19:08.505572 12713 proxy.go:251] CheckOrigin: Proxy has no configured Origin. Allowing origin [http://localhost:9000] to wss://api.qe-uidaily-0516.qe.azure.devcluster.openshift.com:6443/apis/apiextensions.k8s.io/v1/customresourcedefinitions?watch=true&resourceVersion=109326 I0516 14:19:09.417098 12713 proxy.go:251] CheckOrigin: Proxy has no configured Origin. Allowing origin [http://localhost:9000] to wss://api.qe-uidaily-0516.qe.azure.devcluster.openshift.com:6443/api/v1/events?watch=true&resourceVersion=109324 I0516 14:19:10.306267 12713 proxy.go:251] CheckOrigin: Proxy has no configured Origin. Allowing origin [http://localhost:9000] to wss://api.qe-uidaily-0516.qe.azure.devcluster.openshift.com:6443/apis/storage.k8s.io/v1/storageclasses?watch=true&resourceVersion=109326 I0516 14:19:11.175203 12713 proxy.go:251] CheckOrigin: Proxy has no configured Origin. Allowing origin [http://localhost:9000] to wss://api.qe-uidaily-0516.qe.azure.devcluster.openshift.com:6443/api/v1/persistentvolumeclaims?watch=true&resourceVersion=109328 I0516 14:19:12.058026 12713 proxy.go:251] CheckOrigin: Proxy has no configured Origin. Allowing origin [http://localhost:9000] to wss://api.qe-uidaily-0516.qe.azure.devcluster.openshift.com:6443/apis/console.openshift.io/v1/consolequickstarts?watch=true&resourceVersion=109326 I0516 14:19:12.948147 12713 proxy.go:251] CheckOrigin: Proxy has no configured Origin. Allowing origin [http://localhost:9000] to wss://api.qe-uidaily-0516.qe.azure.devcluster.openshift.com:6443/apis/config.openshift.io/v1/clusteroperators?watch=true&resourceVersion=109328 I0516 14:19:13.866196 12713 proxy.go:251] CheckOrigin: Proxy has no configured Origin. Allowing origin [http://localhost:9000] to wss://api.qe-uidaily-0516.qe.azure.devcluster.openshift.com:6443/apis/console.openshift.io/v1/consolelinks?watch=true&resourceVersion=109332 I0516 14:19:14.750708 12713 proxy.go:251] CheckOrigin: Proxy has no configured Origin. Allowing origin [http://localhost:9000] to wss://api.qe-uidaily-0516.qe.azure.devcluster.openshift.com:6443/apis/config.openshift.io/v1/clusterversions?watch=true&resourceVersion=109333 I0516 14:19:15.654146 12713 proxy.go:251] CheckOrigin: Proxy has no configured Origin. Allowing origin [http://localhost:9000] to wss://api.qe-uidaily-0516.qe.azure.devcluster.openshift.com:6443/api/v1/nodes?watch=true&resourceVersion=109331 I0516 14:19:16.558179 12713 proxy.go:251] CheckOrigin: Proxy has no configured Origin. Allowing origin [http://localhost:9000] to wss://api.qe-uidaily-0516.qe.azure.devcluster.openshift.com:6443/apis/config.openshift.io/v1/clusterversions?watch=true&fieldSelector=metadata.name%3Dversion I0516 14:19:33.068565 12713 proxy.go:251] CheckOrigin: Proxy has no configured Origin. Allowing origin [http://localhost:9000] to wss://api.qe-uidaily-0516.qe.azure.devcluster.openshift.com:6443/apis/project.openshift.io/v1/projects?watch=true I0516 14:19:38.698032 12713 proxy.go:251] CheckOrigin: Proxy has no configured Origin. Allowing origin [http://localhost:9000] to wss://api.qe-uidaily-0516.qe.azure.devcluster.openshift.com:6443/api/v1/nodes?watch=true&resourceVersion=109463 2025/05/16 14:19:39 http: proxy error: context canceled I0516 14:19:39.683960 12713 proxy.go:251] CheckOrigin: Proxy has no configured Origin. Allowing origin [http://localhost:9000] to wss://api.qe-uidaily-0516.qe.azure.devcluster.openshift.com:6443/apis/storage.k8s.io/v1/storageclasses?watch=true&resourceVersion=109464 [controller-runtime] log.SetLogger(...) was never called; logs will not be displayed. Detected at: > goroutine 210 [running]: > runtime/debug.Stack() > /home/yanpzhan/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.2.linux-amd64/src/runtime/debug/stack.go:26 +0x5e > sigs.k8s.io/controller-runtime/pkg/log.eventuallyFulfillRoot() > /home/yanpzhan/gitrepo/console/vendor/sigs.k8s.io/controller-runtime/pkg/log/log.go:60 +0xcd > sigs.k8s.io/controller-runtime/pkg/log.(*delegatingLogSink).WithName(0xc000453900, {0x409d017, 0x14}) > /home/yanpzhan/gitrepo/console/vendor/sigs.k8s.io/controller-runtime/pkg/log/deleg.go:147 +0x3e > github.com/go-logr/logr.Logger.WithName({{0x45ef6e8, 0xc000453900}, 0x0}, {0x409d017?, 0x40811ce?}) > /home/yanpzhan/gitrepo/console/vendor/github.com/go-logr/logr/logr.go:345 +0x36 > sigs.k8s.io/controller-runtime/pkg/client.newClient(0x163d205?, {0x0, 0xc0002ce620, {0x0, 0x0}, 0x0, 0x0}) > /home/yanpzhan/gitrepo/console/vendor/sigs.k8s.io/controller-runtime/pkg/client/client.go:118 +0xdb > sigs.k8s.io/controller-runtime/pkg/client.New(0x39?, {0x0, 0xc0002ce620, {0x0, 0x0}, 0x0, 0x0}) > /home/yanpzhan/gitrepo/console/vendor/sigs.k8s.io/controller-runtime/pkg/client/client.go:98 +0x55 > github.com/openshift/console/pkg/olm.(*OLMHandler).getClientWithScheme(0xc000632630, 0x0) > /home/yanpzhan/gitrepo/console/pkg/olm/handler.go:145 +0x145 > github.com/openshift/console/pkg/olm.(*OLMHandler).CheckPackageManifest(0xc000632630, {0x45cf690, 0xc000520380}, 0xc00017d1d0?) > /home/yanpzhan/gitrepo/console/pkg/olm/handler.go:99 +0x2c8 > net/http.HandlerFunc.ServeHTTP(0xd?, {0x45cf690?, 0xc000520380?}, 0x4087fd1?) > /home/yanpzhan/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.2.linux-amd64/src/net/http/server.go:2294 +0x29 > github.com/openshift/console/pkg/server.(*Server).HTTPHandler.(*Server).HTTPHandler.func4.authMiddleware.func67(0xc000cdbb90?, {0x45cf690?, 0xc000520380?}, 0xc0008f4180?) > /home/yanpzhan/gitrepo/console/pkg/server/middleware.go:26 +0x25 > github.com/openshift/console/pkg/server.(*Server).HTTPHandler.(*Server).HTTPHandler.func4.authMiddleware.authMiddlewareWithUser.func102({0x45cf690, 0xc000520380}, 0xc000eb9040) > /home/yanpzhan/gitrepo/console/pkg/server/middleware.go:41 +0x198 > net/http.HandlerFunc.ServeHTTP(0xc0002b6270?, {0x45cf690?, 0xc000520380?}, 0x90?) > /home/yanpzhan/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.2.linux-amd64/src/net/http/server.go:2294 +0x29 > github.com/openshift/console/pkg/server.(*Server).HTTPHandler.(*Server).HTTPHandler.func4.authMiddleware.authMiddlewareWithUser.(*CSRFVerifier).WithCSRFVerification.func133({0x45cf690, 0xc000520380}, 0xc000eb9040) > /home/yanpzhan/gitrepo/console/pkg/auth/csrfverifier/csrf.go:52 +0x8d > net/http.HandlerFunc.ServeHTTP(0x0?, {0x45cf690?, 0xc000520380?}, 0x1c?) > /home/yanpzhan/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.2.linux-amd64/src/net/http/server.go:2294 +0x29 > github.com/openshift/console/pkg/server.(*Server).HTTPHandler.StripPrefix.func38({0x45cf690, 0xc000520380}, 0xc000eb8f00) > /home/yanpzhan/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.2.linux-amd64/src/net/http/server.go:2356 +0x262 > net/http.HandlerFunc.ServeHTTP(0xc000544300?, {0x45cf690?, 0xc000520380?}, 0x408d3ff?) > /home/yanpzhan/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.2.linux-amd64/src/net/http/server.go:2294 +0x29 > net/http.(*ServeMux).ServeHTTP(0xc000cdbbc0?, {0x45cf690, 0xc000520380}, 0xc000eb8f00) > /home/yanpzhan/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.2.linux-amd64/src/net/http/server.go:2822 +0x1c4 > github.com/openshift/console/pkg/server.(*Server).HTTPHandler.securityHeadersMiddleware.func47({0x45cf690, 0xc000520380}, 0xc000eb8f00) > /home/yanpzhan/gitrepo/console/pkg/server/middleware.go:121 +0x134 > net/http.HandlerFunc.ServeHTTP(0x163c299?, {0x45cf690?, 0xc000520380?}, 0xc000815b70?) > /home/yanpzhan/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.2.linux-amd64/src/net/http/server.go:2294 +0x29 > net/http.serverHandler.ServeHTTP({0xc0003894a0?}, {0x45cf690?, 0xc000520380?}, 0x6?) > /home/yanpzhan/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.2.linux-amd64/src/net/http/server.go:3301 +0x8e > net/http.(*conn).serve(0xc0008c47e0, {0x45e6718, 0xc00076d500}) > /home/yanpzhan/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.2.linux-amd64/src/net/http/server.go:2102 +0x625 > created by net/http.(*Server).Serve in goroutine 1 > /home/yanpzhan/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.2.linux-amd64/src/net/http/server.go:3454 +0x485 E0516 14:19:41.968082 12713 handler.go:110] Failed to get operator: packagemanifests.packages.operators.coreos.com "lightspeed-operator" not found I0516 14:19:42.397594 12713 proxy.go:251] CheckOrigin: Proxy has no configured Origin. Allowing origin [http://localhost:9000] to wss://api.qe-uidaily-0516.qe.azure.devcluster.openshift.com:6443/apis/console.openshift.io/v1/consolenotifications?watch=true&resourceVersion=109476
Expected results:
Should not show runtime error in terminal when access console.
Additional info:
- blocks
-
OCPBUGS-63156 There is runtime error in output when bridge console
-
- POST
-
- is cloned by
-
OCPBUGS-63156 There is runtime error in output when bridge console
-
- POST
-
- links to