Bug 2005242

Summary: kube-apiserver with "[SHOULD NOT HAPPEN] failed to update managedFields" err="failed to convert new object (machine.openshift.io/v1beta1, Kind=MachineHealthCheck)
Product: OpenShift Container Platform Reporter: Joel Speed <jspeed>
Component: Cloud ComputeAssignee: Joel Speed <jspeed>
Cloud Compute sub component: Other Providers QA Contact: Huali Liu <huliu>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: aos-bugs, kewang, mfojtik, xxia, zhsun
Version: 4.8   
Target Milestone: ---   
Target Release: 4.9.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1999425
: 2026562 (view as bug list) Environment:
Last Closed: 2021-10-26 17:22:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1999425    
Bug Blocks: 2026562    

Comment 4 Huali Liu 2021-10-19 06:01:42 UTC
reproduce this bug on 4.8.8-x86_64:

1.Vsphere 7 IPI installed cluster with windows_server_ver_2004 workers and OVNKubernetes network

2.Run this test case https://polarion.engineering.redhat.com/polarion/#/project/OSE/workitem?id=OCP-25691

3.Check the kube-apiserver logs on all master nodes.

liuhuali@Lius-MacBook-Pro openshift-test % oc logs kube-apiserver-huliu015-xssmx-master-0  -n openshift-kube-apiserver |grep "SHOULD NOT HAPPEN"     
Using deprecated annotation `kubectl.kubernetes.io/default-logs-container` in pod/kube-apiserver-huliu015-xssmx-master-0. Please use `kubectl.kubernetes.io/default-container` instead
E1019 02:45:38.810086      23 fieldmanager.go:191] "[SHOULD NOT HAPPEN] failed to update managedFields" err="failed to convert new object (machine.openshift.io/v1beta1, Kind=MachineHealthCheck) to smd typed: .spec.maxUnhealthy: expected string, got &value.valueUnstructured{Value:0}" VersionKind="machine.openshift.io/v1beta1, Kind=MachineHealthCheck"
liuhuali@Lius-MacBook-Pro openshift-test % 


verified on 4.9.0-0.nightly-2021-10-18-182325,

NO "[SHOULD NOT HAPPEN]" error was found again, the maxUnhealthy "type: string" has been removed from crd.

1.Vsphere 7 IPI installed cluster with windows_server_ver_2004 workers and OVNKubernetes network

2.Run this test case https://polarion.engineering.redhat.com/polarion/#/project/OSE/workitem?id=OCP-25691

3.Check the kube-apiserver logs on all master nodes.

liuhuali@Lius-MacBook-Pro openshift-test % oc logs kube-apiserver-huliu017-6z6wp-master-0  -n openshift-kube-apiserver|grep "SHOULD NOT HAPPEN"
Using deprecated annotation `kubectl.kubernetes.io/default-logs-container` in pod/kube-apiserver-huliu017-6z6wp-master-0. Please use `kubectl.kubernetes.io/default-container` instead
liuhuali@Lius-MacBook-Pro openshift-test % oc logs kube-apiserver-huliu017-6z6wp-master-1  -n openshift-kube-apiserver|grep "SHOULD NOT HAPPEN"
Using deprecated annotation `kubectl.kubernetes.io/default-logs-container` in pod/kube-apiserver-huliu017-6z6wp-master-1. Please use `kubectl.kubernetes.io/default-container` instead
liuhuali@Lius-MacBook-Pro openshift-test % oc logs kube-apiserver-huliu017-6z6wp-master-2  -n openshift-kube-apiserver|grep "SHOULD NOT HAPPEN"
Using deprecated annotation `kubectl.kubernetes.io/default-logs-container` in pod/kube-apiserver-huliu017-6z6wp-master-2. Please use `kubectl.kubernetes.io/default-container` instead
liuhuali@Lius-MacBook-Pro openshift-test % 

liuhuali@Lius-MacBook-Pro openshift-test % oc edit crd machinehealthchecks.machine.openshift.io
 80                 pattern: ^((100|[0-9]{1,2})%|[0-9]+)$
 81                 x-kubernetes-int-or-string: true
 82               nodeStartupTimeout:
 83                 default: 10m

Comment 7 errata-xmlrpc 2021-10-26 17:22:42 UTC
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 (OpenShift Container Platform 4.9.4 bug fix 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/RHBA-2021:3935