Bug 1908534

Summary: Panic in machine-config-operator
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: Machine Config OperatorAssignee: Kirsten Garrison <kgarriso>
Status: CLOSED ERRATA QA Contact: Michael Nguyen <mnguyen>
Severity: low Docs Contact:
Priority: medium    
Version: 4.4CC: jdelft, kgarriso
Target Milestone: ---   
Target Release: 4.6.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-20 19:27:20 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: 1886636    
Bug Blocks:    

Comment 2 Michael Nguyen 2021-03-25 13:48:06 UTC
Verified on 4.6.0-0.nightly-2021-03-25-051145.  Invalid configs are not accepted.

$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.6.0-0.nightly-2021-03-25-051145   True        False         53m     Cluster version is 4.6.0-0.nightly-2021-03-25-051145

$ cat bad-ctrcfg.yaml 
apiVersion: machineconfiguration.openshift.io/v1
kind: ContainerRuntimeConfig
metadata:
 name: set-pids-limit
spec:
 machineConfigPoolSelector:
   matchLabels:
     pools.operator.machineconfiguration.openshift.io/worker: ""

$ oc create -f bad-ctrcfg.yaml 
The ContainerRuntimeConfig "set-pids-limit" is invalid: spec.containerRuntimeConfig: Required value
$ oc get kubeletconfig
No resources found.
$ oc -n openshift-machine-config-operator get kubeletconfig
No resources found.
$ cat << EOF > invalid-kubeletconfig.yaml
> apiVersion: machineconfiguration.openshift.io/v1
> kind: KubeletConfig
> metadata:
>   name: set-max-pods
> EOF
$ oc create -f invalid-kubeletconfig.yaml 
The KubeletConfig "set-max-pods" is invalid: spec: Required value

Comment 8 errata-xmlrpc 2021-04-20 19:27:20 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 (OpenShift Container Platform 4.6.25 bug fix 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/RHBA-2021:1153