Bug 1757209
| Summary: | [4.1] duplicate error output can not be compressed for kubeletconfig | |||
|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Ryan Phillips <rphillips> | |
| Component: | Node | Assignee: | Ryan Phillips <rphillips> | |
| Status: | CLOSED WONTFIX | QA Contact: | MinLi <minmli> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 4.1.z | CC: | aos-bugs, jokerman, minmli, rphillips, schoudha | |
| Target Milestone: | --- | |||
| Target Release: | 4.1.z | |||
| Hardware: | x86_64 | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | 1743487 | |||
| : | 1762344 (view as bug list) | Environment: | ||
| Last Closed: | 2020-01-20 18:16:07 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: | 1743487 | |||
| Bug Blocks: | 1757195 | |||
Given sysctl is not supported in 4.1, I test another kubeletconfig with grammar mistake. When execute "oc get kubeletconfig XX -o yaml", display info lack "status" part.
custom-kubelet-test.yaml:
apiVersion: machineconfiguration.openshift.io/v1
kind: KubeletConfig
metadata:
name: set-reserved
spec:
machineConfigPoolSelector:
matchLabels:
custom-kubelet: set-reserved
kubeletConfig:
kubeReserved: cpu-200m
systemReserved:
cpu: -200m
memory: -200G
$ oc create -f custom-kubelet-test.yaml
kubeletconfig.machineconfiguration.openshift.io/set-reserved created
$ oc get kubeletconfig set-reserved -o yaml
apiVersion: machineconfiguration.openshift.io/v1
kind: KubeletConfig
metadata:
creationTimestamp: "2019-10-18T07:42:23Z"
generation: 1
name: set-reserved
resourceVersion: "106254"
selfLink: /apis/machineconfiguration.openshift.io/v1/kubeletconfigs/set-reserved
uid: d2ca8ff3-f17a-11e9-8d73-02887a1920e0
spec:
kubeletConfig:
kubeReserved: cpu-200m
systemReserved:
cpu: -200m
memory: -200G
machineConfigPoolSelector:
matchLabels:
custom-kubelet: set-reserved
the same command in version 4.2 will return:
$ oc get kubeletconfig set-reserved -o yaml
apiVersion: machineconfiguration.openshift.io/v1
kind: KubeletConfig
metadata:
creationTimestamp: "2019-10-18T07:45:10Z"
generation: 1
name: set-reserved
resourceVersion: "128858"
selfLink: /apis/machineconfiguration.openshift.io/v1/kubeletconfigs/set-reserved
uid: 3684bc07-f17b-11e9-9ef4-0a69a8c91d52
spec:
kubeletConfig:
kubeReserved: cpu-200m
systemReserved:
cpu: -200m
memory: -200G
machineConfigPoolSelector:
matchLabels:
custom-kubelet: set-reserved
status:
conditions:
- lastTransitionTime: "2019-10-18T07:45:10Z"
message: 'Error: KubeletConfig could not be unmarshalled, err: json: cannot unmarshal
string into Go struct field KubeletConfiguration.kubeReserved of type map[string]string'
status: "False"
type: Failure
|
in latest 4.1 version , I created kubeletconfig with grammar mistake succeed, but in fact it didn't take effect by checking node file kubelet.conf version : 4.1.0-0.nightly-2019-10-15-144852 $ oc create -f worker-kube-config-unsysctl.yaml kubeletconfig.machineconfiguration.openshift.io/custom-kubelet created $ oc get kubeletconfig custom-kubelet -o yaml apiVersion: v1 items: - apiVersion: machineconfiguration.openshift.io/v1 kind: KubeletConfig metadata: creationTimestamp: "2019-10-18T03:17:41Z" finalizers: - 99-worker-bf8a9bb9-f14f-11e9-b033-02712fe80cde-kubelet generation: 1 name: custom-kubelet resourceVersion: "24745" selfLink: /apis/machineconfiguration.openshift.io/v1/kubeletconfigs/custom-kubelet uid: d850fe74-f155-11e9-b618-0ada85150c4e spec: kubeletConfig: allowedUnsafeSysctls: kernel.msg*,net.ipv4.route.min_pmtu machineConfigPoolSelector: matchLabels: custom-kubelet: sysctl status: conditions: - lastTransitionTime: "2019-10-18T03:17:41Z" message: Success status: "True" type: Success kind: List metadata: resourceVersion: "" selfLink: ""