Description of problem: The below error has found in the kube controller manager logs. ~~ 0810 15:45:32.467665 1 utils.go:413] couldn't find ipfamilies for headless service: servicen-name/service-name-webapi. This could happen if controller manager is connected to an old apiserver that does not support ip families yet. EndpointSlices for this Service will use IPv4 as the IP Family based on familyOf(ClusterIP:10.0.0.0). ~~ These message can be ignored since they are not harming messages. As checked in the provided service definition, Its using the ClusterIP and in the headless services we dont use the ClusterIP. Actual results: This is a bug where it is considering non-headless service as headless service. Expected results: These message can be ignored since they are not harming messages. Additional info: This issue has already been identified and fixed in the upstream kubernetes https://github.com/kubernetes/kubernetes/pull/97721/commits/561133ccf1aae94c34f408ecc9fe451e1a1a2eb3
The erroneous warning message was originally fixed upstream in kubernetes v1.21, so it is available starting from Openshift 4.8. I just opened a pull request for upstream kubernetes v1.20, so I can later integrate it downstream in Openshift 4.7: https://github.com/kubernetes/kubernetes/pull/104477
verified this bug on 4.7.0-0.nightly-2022-04-26-224839 oc logs kube-controller-manager-ip-10-0-129-114.us-east-2.compute.internal -n openshift-kube-controller-manager show: . . I0428 09:46:58.116397 1 utils.go:413] couldn't find ipfamilies for service: openshift-dns-operator/metrics. This could happen if controller manager is connected to an old apiserver that does not support ip families yet. EndpointSlices for this Service will use IPv4 as the IP Family based on familyOf(ClusterIP:172.30.239.88).
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 (Moderate: OpenShift Container Platform 4.7.59 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:6322