Openshift and OKD send telemetry back to redhat by default which allows insights and recommendations to be generated. Depending on the stability of your connection, the telemetry-client might not be able to phone back home and mark the cluster as 'stale', here's one way to fix it on openshift-4.12 / okd-4.12:
Check if all nodes are available:
$ oc get nodes -o wide
$ oc adm top node
Check the openshoft-monitoring namespace for any failed pods:
$ oc -n openshift-monitoring get pods
Next, check the telemetry-client logs:
$ oc -n openshift-monitoring logs --tail=4 pods/telemeter-client-7fcf756fb9-5hvzv
Output:
level=error caller=forwarder.go:276 ts=2023-04-13T12:54:24.193722974Z component=forwarder/worker msg="unable to forward results" err="Post \"https://infogw.api.openshift.com/upload\": dial tcp: lookup infogw.api.openshift.com on 172.30.0.10:53: read udp 10.131.0.27:32903->172.30.0.10:53: i/o timeout"
level=error caller=forwarder.go:276 ts=2023-04-13T12:55:34.293997924Z component=forwarder/worker msg="unable to forward results" err="Post \"https://infogw.api.openshift.com/upload\": dial tcp: lookup infogw.api.openshift.com on 172.30.0.10:53: server misbehaving"
level=error caller=forwarder.go:276 ts=2023-04-14T21:16:54.094485696Z component=forwarder/worker msg="unable to forward results" err="Post \"https://infogw.api.openshift.com/upload\": dial tcp: lookup infogw.api.openshift.com on 172.30.0.10:53: server misbehaving"
level=error caller=forwarder.go:276 ts=2023-04-14T21:18:04.199631411Z component=forwarder/worker msg="unable to forward results" err="Post \"https://infogw.api.openshift.com/upload\": dial tcp: lookup infogw.api.openshift.com on 172.30.0.10:53: read udp 10.131.0.27:36950->172.30.0.10:53: i/o timeout"
In my case, my very unstable internet connection in the last few days (thanks ISP) was at fault, so just delete the pod and wait until kubernetes re-creates it:
$ oc -n openshift-monitoring delete pods telemeter-client-7fcf756fb9-5hvzv
Feel free to comment and / or suggest a topic
Comments
Post a Comment