AMQ 7.11.5 to AMQ 7.11.6 Operator Upgrade Failure
Issue
The following error or similar is observed when upgrading AMQ 7.11.5.opr.1
to AMQ 7.11.6.opr.1
:
sync {"update" "amq-broker-operator/amq-broker-operator.v7.11.6-opr-1"} failed: Deployment.apps "amq-broker-controller-manager" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"control-plane":"controller-manager", "name":"amq-broker-operator"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
...
In the Openshift web console, two ClusterServiceVersions are displayed for the operator - AMQ 7.11.5-opr-1
and AMQ 7.11.6-opr-1
. The upgrade never completes. The two entries will have the following status values:
- Red Hat Integration - AMQ Broker for RHEL 8 (Multiarch) 7.11.5-opr-1 provided by Red Hat: Replacing
- Red Hat Integration - AMQ Broker for RHEL 8 (Multiarch) 7.11.6-opr-1 provided by Red Hat: Pending/InstallReady/Failed
Environment
- Red Hat AMQ (Operator)
- 7.11.5-opr-1
- 7.11.6-opr-1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.