Description of problem:
You can see a lot of websocket connection warnings in the browser console (F12):
WebSocket connection to 'wss://console-openshift-console.apps.rhhi-virt-cluster.qe.lab.redhat.com/api/kubernetes/apis/config.openshift.io/v1/infrastructures?watch=true&fieldSelector=metadata.name%3Dcluster' failed: WebSocket is closed before the connection is established.
Attempted to create multiple websockets for storage.k8s.io~v1~StorageClass.
Attempted to create multiple websockets for core~v1~Event.
and more ...
The errors seem harmless, and the number of errors you get is different every time.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Open the browser console (F12)
2. Go to the dashboards page
errors and warnings
Rastislav, can you investigate since these are coming from the dashboard page?
I'm not sure we need to watch infrastructures at all. The platform shouldn't change. I'm not sure we need to watch the version URL also. In fact, that could cause weird behavior where the version in the UI flaps during an upgrade since different masters might be at different versions.
Note that "Attempted to create multiple websockets" means things are working correctly, and we're sharing websockets when multiple components watch the same resource. That is informational rather than an error.
1. Admin user visit Home -> Dashboards
2. Check console(F12) output
console don't watch 'infrastructures' and no errors about fetching 'infratructure'
I didn't find a way to verify that we're not watching k8s version since it seems a native kubernetes cluster is needed.
Moving to VERIFIED and we can open new bug if the issues still exists on native kubernetes cluster
Verified on 4.3.0-0.nightly-2019-11-06-215135
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.