Bug 1782973

Summary: kubeletconfig's description will show duplicate lines for finalizers and status
Product: OpenShift Container Platform Reporter: Ryan Phillips <rphillips>
Component: NodeAssignee: Ryan Phillips <rphillips>
Status: CLOSED ERRATA QA Contact: MinLi <minmli>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.0CC: aos-bugs, jokerman, minmli, schoudha, xtian
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1774369 Environment:
Last Closed: 2020-05-04 11:19:53 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: 1774369    
Bug Blocks:    

Comment 2 MinLi 2019-12-24 05:40:10 UTC
there are still duplicate lines for status, but no for finalizers.
version : 4.3.0-0.nightly-2019-12-23-235118

[lyman@localhost env]$ oc get kubeletconfig -o yaml 
apiVersion: v1
items:
- apiVersion: machineconfiguration.openshift.io/v1
  kind: KubeletConfig
  metadata:
    creationTimestamp: "2019-12-24T02:53:06Z"
    finalizers:
    - 99-master-f9faffee-0223-4b48-a4dc-d0bf64f37747-kubelet
    generation: 1
    name: custom-kubelet
    resourceVersion: "42189"
    selfLink: /apis/machineconfiguration.openshift.io/v1/kubeletconfigs/custom-kubelet
    uid: e25ae170-be48-45c2-b76f-6e32171020da
  spec:
    kubeletConfig:
      maxPods: 220
    machineConfigPoolSelector:
      matchLabels:
        custom-kubelet: max-pods
  status:
    conditions:
    - lastTransitionTime: "2019-12-24T02:53:06Z"
      message: Success
      status: "True"
      type: Success
    - lastTransitionTime: "2019-12-24T03:04:24Z"
      message: Success
      status: "True"
      type: Success
kind: List
metadata:
  resourceVersion: ""
  selfLink: ""

Comment 6 MinLi 2020-02-26 03:37:11 UTC
@Ryan, 
the output in comment2 include duplicate status, is it right to record timeline condition history? If it's designed as this, I think it is acceptable 
status:
    conditions:
    - lastTransitionTime: "2019-12-24T02:53:06Z"
      message: Success
      status: "True"
      type: Success
    - lastTransitionTime: "2019-12-24T03:04:24Z"
      message: Success
      status: "True"
      type: Success

Comment 9 MinLi 2020-03-09 03:51:09 UTC
reproduce on version : 4.4.0-0.nightly-2020-03-04-012453

$ oc get kubeletconfig custom-kubelet-performance  -o yaml 
apiVersion: machineconfiguration.openshift.io/v1
kind: KubeletConfig
metadata:
  creationTimestamp: "2020-03-09T03:37:44Z"
  finalizers:
  - b3208e59-b0a2-49ee-a280-84a514dd648c
  - 93d580bb-3529-4507-b9e0-7f88e090ac8a
  generation: 1
  name: custom-kubelet-performance
  resourceVersion: "41831"
  selfLink: /apis/machineconfiguration.openshift.io/v1/kubeletconfigs/custom-kubelet-performance
  uid: b071ca49-46a3-4f50-9f6c-a5e617cbfa77
spec:
  kubeletConfig: {}
  machineConfigPoolSelector:
    matchLabels:
      custom-kubelet: max-pods
status:
  conditions:
  - lastTransitionTime: "2020-03-09T03:37:45Z"
    message: Success
    status: "True"
    type: Success
  - lastTransitionTime: "2020-03-09T03:40:06Z"
    message: Success
    status: "True"
    type: Success
  - lastTransitionTime: "2020-03-09T03:46:16Z"
    message: Success
    status: "True"
    type: Success

Comment 10 Ryan Phillips 2020-03-09 13:36:43 UTC
Yes, this is correct behavior.

Comment 12 MinLi 2020-03-11 08:34:22 UTC
according to comment 10, this bug is fixed. Verified!

Comment 14 errata-xmlrpc 2020-05-04 11:19:53 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, 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-2020:0581