How to enable network traffic between openshift-console and openshift-logging in RHOCP 4
Issue
- Not able to see logs in the
OpenShift Console > Observe > Logs
when the cluster is deployed with OpenShift SDN in multitenant mode or OpenShift SDN in network policy -
When it's enabled OpenShift SDN in multitenant mode or OpenShift SDN in network policy and OVN-Kubernetes, not able to see logs in the
OpenShift Console > Observe > Logs
and the console pods show an error similar to:E0110 10:34:55.223467 1 handlers.go:164] GET request for "logging-view-plugin" plugin failed: Get "https://logging-view-plugin.openshift-logging.svc.cluster.local:9443/plugin-manifest.json": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 2024/01/10 10:34:55 http: panic serving 10.138.18.1:38506: runtime error: invalid memory address or nil pointer dereference goroutine 3252 [running]: net/http.(*conn).serve.func1() /usr/lib/golang/src/net/http/server.go:1850 +0xbf panic({0x2ffec40, 0x4c9e090}) /usr/lib/golang/src/runtime/panic.go:890 +0x262 github.com/openshift/console/pkg/plugins.(*PluginsHandler).proxyPluginRequest(0xc0006707c0, 0x2?, {0xc00086d501, 0x13}, {0x37cadd8, 0xc0002756c0}, 0xa?) /go/src/github.com/openshift/console/pkg/plugins/handlers.go:165 +0x582
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
- Red Hat OpenShift Logging (RHOL)
- 5
- LokiStack
- OpenShift SDN in multitenant mode or OpenShift SDN in network policy
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.