RHOCP 4 cluster upgrade stuck with the Cluster Network Operator failing to apply ovnkube-master daemonset

Solution Verified - Updated -

Issue

  • When upgrading a RHOCP cluster that is using OVNKubernetes CNI the following error is seen during network operator upgrade:

    Error while updating operator configuration: could not apply (apps/v1, Kind=DaemonSet) openshift-ovn-kubernetes/ovnkube-master: failed to apply / update (apps/v1, Kind=DaemonSet) openshift-ovn-kubernetes/ovnkube-master: DaemonSet.apps "ovnkube-master" is invalid: [spec.template.spec.containers[0].lifecycle.preStop: Required value: must specify a handler type, spec.template.spec.containers[1].lifecycle.preStop: Required value: must specify a handler type, spec.template.spec.containers[3].lifecycle.preStop: Required value: must specify a handler type]
    
  • This issue is seen only for clusters that meet the following three criteria:

    • the cluster is using the OVNKubernetes CNI
    • the cluster has previously been upgraded from 4.10->4.11
    • the cluster is updated to 4.12.41+ or 4.13.16+
  • The upgrade is currently not recommended for those clusters due to the fact that the upgrade will stall but with no known risk to availability.

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.11
    • 4.12
    • 4.13

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