Bug 1787907
| Summary: | Controller fails to add finalizer to the KubeletConfig resource | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Artyom <alukiano> |
| Component: | Node | Assignee: | Ryan Phillips <rphillips> |
| Status: | CLOSED ERRATA | QA Contact: | Sunil Choudhary <schoudha> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.4 | CC: | aos-bugs, augol, fsimonce, jokerman, minmli, weinliu, william.caban, xtian |
| Target Milestone: | --- | ||
| Target Release: | 4.4.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: Long KubeletConfig names would cause an issue with setting a finalizer.
Consequence:
Fix: Patch fixes this issue and finalizers are correctly placed.
Result:
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-05-04 11:22:02 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1771572 | ||
|
Description
Artyom
2020-01-05 11:55:56 UTC
Failed test.
finalizers still fails to get added, even it's a short name like:"custom-kubelet"
Error: message: 'could not add finalizers to KubeletConfig: could not add finalizers
ENV:
$ oc get clusterversion
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.4.0-0.nightly-2020-02-03-005212 True False 82m Cluster version is 4.4.0-0.nightly-2020-02-03-005212
$ oc version
Client Version: unknown
Server Version: 4.4.0-0.nightly-2020-02-03-005212
Kubernetes Version: v1.17.1
$ rpm -qa|grep openshift-client
openshift-clients-4.4.0-202001310654.git.1.e04481f.el7.x86_64
Steps:
1.oc label machineconfigpool worker custom-kubelet=max-pods
2.oc create -f custom-kubelet-maxpods.yaml [1]
3. $ oc get kubeletconfig custom-kubelet -o yaml
apiVersion: machineconfiguration.openshift.io/v1
kind: KubeletConfig
metadata:
creationTimestamp: "2020-02-03T07:38:36Z"
finalizers:
- 74306e70-142c-4385-8ce0-b52303fc231f
generation: 1
name: custom-kubelet
resourceVersion: "46742"
selfLink: /apis/machineconfiguration.openshift.io/v1/kubeletconfigs/custom-kubelet
uid: 397e9ff3-f8df-44a6-b6ae-6ec32d58872f
spec:
kubeletConfig:
maxPods: 220
machineConfigPoolSelector:
matchLabels:
custom-kubelet: max-pods
status:
conditions:
- lastTransitionTime: "2020-02-03T07:38:36Z"
message: 'could not add finalizers to KubeletConfig: could not add finalizers
to KubeletConfig: %v'
status: "False"
type: Failure
- lastTransitionTime: "2020-02-03T07:38:36Z"
message: Success
status: "True"
type: Success
[1]
$ cat custom-kubelet-maxpods.yaml
apiVersion: machineconfiguration.openshift.io/v1
kind: KubeletConfig
metadata:
name: custom-kubelet
spec:
machineConfigPoolSelector:
matchLabels:
custom-kubelet: max-pods
kubeletConfig:
maxPods: 220
verified with version 4.4.0-0.nightly-2020-02-23-191320
Create custom KubeletConfig with long enough name(e.g. custom-kubelet-performance)
$ oc get kubeletconfig custom-kubelet-performance -o yaml
apiVersion: machineconfiguration.openshift.io/v1
kind: KubeletConfig
metadata:
creationTimestamp: "2020-02-26T02:44:15Z"
finalizers:
- 710a9c09-0cf6-4954-acc0-e721454f8fa4
generation: 1
name: custom-kubelet-performance
resourceVersion: "777908"
selfLink: /apis/machineconfiguration.openshift.io/v1/kubeletconfigs/custom-kubelet-performance
uid: d27b9fd3-6dbb-4114-9d87-41af46737cf0
spec:
kubeletConfig:
maxPods: 220
machineConfigPoolSelector:
matchLabels:
custom-kubelet: max-pods
status:
conditions:
- lastTransitionTime: "2020-02-26T02:44:15Z"
message: Success
status: "True"
type: Success
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 |