-
Bug
-
Resolution: Done
-
Critical
-
4.15
-
Quality / Stability / Reliability
-
False
-
-
3
-
Critical
-
None
-
None
-
None
-
MCO Sprint 274
-
1
-
Done
-
Bug Fix
-
Previously, all 4.15.z clusters had the MachineConfigNode (MCN) CustomResourceDefinition (CRD) deployed by the MCO. This updates the CRD deployment such that the MCN resource is only included in clusters where the corresponding feature gate is enabled.
-
None
-
None
-
None
-
None
This is a clone of issue OCPBUGS-59722. The following is the description of the original issue:
—
Description of problem:
In 4.15 and previous versions of Openshift, the MCO deploys MachineConfigNode CRDs in both default and techpreview clusters. However, since MCN is techpreview feature gated in 4.15, the CRD should not be deployed in default clusters. This functionality leads to upgrade failures, as described in OCPBUGS-59567, due to conflicts arising from having both the v1alpha1 CRD pre-existing and trying to point to the new v1 CRD.
Version-Release number of selected component (if applicable):
4.15 and prior
How reproducible:
Always when updating from <=4.15 to 4.20
Steps to Reproduce:
- Start with a <=4.15 cluster.
- Upgrade through each version up to 4.20.
Actual results:
The upgrade between 4.19 & 4.20 will fail with the following message being emitted by the CVO:
"Unhandled Error" err="error running apply for customresourcedefinition \"machineconfignodes.machineconfiguration.openshift.io\" (789 of 936): CustomResourceDefinition.apiextensions.k8s.io \"machineconfignodes.machineconfiguration.openshift.io\" is invalid: status.storedVersions[0]: Invalid value: \"v1alpha1\": must appear in spec.versions" logger="UnhandledError"
Expected results:
Upgrade should succeed.
Additional info:
See debugging Slack thread here for additional insight from djoshy & rh-ee-pabrodri
- clones
-
OCPBUGS-59722 The MachineConfigNode resource should not be deployed in default clusters in <=4.15
-
- Closed
-
- is blocked by
-
OCPBUGS-59722 The MachineConfigNode resource should not be deployed in default clusters in <=4.15
-
- Closed
-
- is incorporated by
-
OCPBUGS-59567 [4.14-4.20]/[4.15-4.20] upgrade stuck at crd machineconfignodes.machineconfiguration.openshift.io
-
- Closed
-
- links to