Kernel Module Management 2.0 'field is immutable' error for device plugin that was upgraded from 1.1.x

Solution Verified - Updated -

Issue

When upgrading KMM to version 2.0 from 1.1.x with KMM managing a device plug-in associated with a kernel module, the following error will appear in the logs:

E1117 09:58:11.942513       1 controller.go:324] kmm "msg"="Reconciler error" "error"="could handle device plugin: DaemonSet.apps \"ocp-53678-skvg2\" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{\"kmm.node.kubernetes.io/module.name\":\"ocp-53678\"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable" "Module"={"name":"ocp-53678","namespace":"ocp-53678"} "controller"="DevicePluginReconciler" "controllerGroup"="kmm.sigs.x-k8s.io" "controllerKind"="Module" "name"="ocp-53678" "namespace"="ocp-53678" "reconcileID"="adea1805-7c15-4cb6-8e19-209ab403fcdb"

Environment

  • OpenShift Container Platform 4.14
  • Kernel Module Management (KMM) 2.0

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