Bug 1950133
| Summary: | MCO creates empty conditions on the kubeletconfig object | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Qi Wang <qiwan> |
| Component: | Node | Assignee: | Qi Wang <qiwan> |
| Node sub component: | CRI-O | QA Contact: | MinLi <minmli> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | medium | CC: | aos-bugs, minmli |
| Version: | 4.7 | ||
| Target Milestone: | --- | ||
| Target Release: | 4.8.0 | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: The outdated satus does not get removed
Consequence: Same empty status appeared many times.
Fix: Add clenup function to Keep a limit number of satus to make the status clean.
Result: MCO keeps at most 3 different kubeletConfig status.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-07-27 23:01:26 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
verified on version: 4.8.0-0.nightly-2021-04-26-151924
Status:
Conditions:
Last Transition Time: 2021-04-28T09:54:47Z
Message: Error: could not find any MachineConfigPool set for KubeletConfig
Status: False
Type: Failure
Last Transition Time: 2021-04-28T10:10:03Z
Message: Success
Status: True
Type: Success
Events: <none>
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.8.2 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-2021:2438 |
Description of problem: apiVersion: v1 items: - apiVersion: machineconfiguration.openshift.io/v1 kind: KubeletConfig metadata: annotations: kubectl.kubernetes.io/last-applied-configuration: | {"apiVersion":"machineconfiguration.openshift.io/v1","kind":"KubeletConfig","metadata":{"annotations":{"reason":"Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1857446"},"name":"custom-config"},"spec":{"kubeletConfig":{"systemReserved":{"cpu":"1000m","memory":"3Gi"}},"machineConfigPoolSelector":{"matchLabels":{"pools.operator.machineconfiguration.openshift.io/worker":""}}}} reason: Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1857446 creationTimestamp: "2020-03-09T15:37:32Z" finalizers: - 99-worker-generated-kubelet generation: 4 name: custom-config resourceVersion: "578706026" selfLink: /apis/machineconfiguration.openshift.io/v1/kubeletconfigs/custom-config uid: d6936cc2-e63d-48fc-a10e-099335287313 spec: kubeletConfig: systemReserved: cpu: 1000m memory: 3Gi machineConfigPoolSelector: matchLabels: pools.operator.machineconfiguration.openshift.io/worker: "" status: conditions: - lastTransitionTime: "2020-03-09T15:37:32Z" message: 'Error: could not find any MachineConfigPool set for KubeletConfig' status: "False" type: Failure - lastTransitionTime: "2020-03-09T16:06:34Z" message: 'Error: could not find any MachineConfigPool set for KubeletConfig' status: "False" type: Failure - lastTransitionTime: "2020-03-09T17:40:28Z" message: Success status: "True" type: Success - lastTransitionTime: "2020-03-24T12:53:34Z" message: Success status: "True" type: Success - lastTransitionTime: Version-Release number of selected component (if applicable): OSD 4.7.4 production cluster How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: MCO keeps at most 3 different kubeletConfig status. If the new status comes only with a new timestamp, update only the timestamp as well. Additional info: