Bug 1809274
Summary: | KubeletConfig content is dropped silently | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Marc Sluiter <msluiter> | |
Component: | Machine Config Operator | Assignee: | Yu Qi Zhang <jerzhang> | |
Status: | CLOSED ERRATA | QA Contact: | Michael Nguyen <mnguyen> | |
Severity: | urgent | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 4.4 | CC: | fromani, fsimonce, jerzhang, ncredi, rphillips, sjenning | |
Target Milestone: | --- | |||
Target Release: | 4.5.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1809334 (view as bug list) | Environment: | ||
Last Closed: | 2020-07-13 17:17:25 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, 1809334 |
Description
Marc Sluiter
2020-03-02 18:42:38 UTC
Yu is anyone looking into adding also unit tests (and/or functional tests) to prevent this from happening again? I've opened a jira card against our board: https://issues.redhat.com/browse/GRPA-1717 to add some tests in the near future. $ cat << EOF > foo-bar.yaml
>
> apiVersion: machineconfiguration.openshift.io/v1
> kind: KubeletConfig
> metadata:
> name: test
> spec:
> kubeletConfig: {"foo": "bar2"}
> machineConfigPoolSelector:
> matchLabels:
> machineconfiguration.openshift.io/role: worker-none
> EOF
$ oc apply -f foo-bar.yaml
kubeletconfig.machineconfiguration.openshift.io/test created
[mnguyen@pet30 4.5]$ oc get kubeletconfig/test
NAME AGE
test 11s
$ oc get kubeletconfig/test -o yaml
apiVersion: machineconfiguration.openshift.io/v1
kind: KubeletConfig
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"machineconfiguration.openshift.io/v1","kind":"KubeletConfig","metadata":{"annotations":{},"name":"test"},"spec":{"kubeletConfig":{"foo":"bar2"},"machineConfigPoolSelector":{"matchLabels":{"machineconfiguration.openshift.io/role":"worker-none"}}}}
creationTimestamp: "2020-03-12T13:25:48Z"
generation: 1
name: test
resourceVersion: "196736"
selfLink: /apis/machineconfiguration.openshift.io/v1/kubeletconfigs/test
uid: fd7acc48-e98d-4124-9360-13054a0e8d95
spec:
kubeletConfig:
foo: bar2
machineConfigPoolSelector:
matchLabels:
machineconfiguration.openshift.io/role: worker-none
status:
conditions:
- lastTransitionTime: "2020-03-12T13:25:48Z"
message: 'Error: could not find any MachineConfigPool set for KubeletConfig'
status: "False"
type: Failure
$ oc get clusterversion
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.5.0-0.nightly-2020-03-12-003015 True False 9h Cluster version is 4.5.0-0.nightly-2020-03-12-003015
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:2409 |