ControllerConfig.machineconfiguration.openshift.io "machine-config-controller" is invalid: [spec.imageRegistryBundleUserData[0].data: Invalid value: ""

Solution Verified - Updated -

Issue

  • The Machine Config Operator becomes degraded, and the following error is logged in the machine-config-operator pod
  • Upgrade stuck due to machine-config CO degraded
2025-04-29T18:58:22.454248405Z I0429 18:58:22.454186       1 event.go:298] Event(v1.ObjectReference{Kind:"", Namespace:"openshift-machine-config-operator", Name:"machine-config", UID:"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx", APIVersion:"", ResourceVersion:"", FieldPath:""}): type: 'Warning' reason: 'OperatorDegraded: MachineConfigControllerFailed' Unable to apply 4.14.50: ControllerConfig.machineconfiguration.openshift.io "machine-config-controller" is invalid: [spec.imageRegistryBundleUserData[0].data: Invalid value: "": spec.imageRegistryBundleUserData[0].data in body must be of type byte: "", <nil>: Invalid value: "null": some validation rules were not checked because the object was invalid; correct the existing errors to complete validation]

Environment

  • Red Hat OpenShift Container Platform 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content