Description of problem:
Install ClusterExtension with MaxOCPVersion is 4.19 on 4.20 cluster, the Upgradeable status of co olm is False, but the error message is not correct.
Version-Release number of selected component (if applicable):
xzha@xzha1-mac openshift-tests-private % oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.20.0-0.nightly-2025-05-29-041615 True False 140m Cluster version is 4.20.0-0.nightly-2025-05-29-041615
How reproducible:
always
Steps to Reproduce:
1. Install ClusterExtension with MaxOCPVersion is 4.19 on 4.20 cluster
xzha@xzha1-mac OCP-82249 % cat catalog.yaml
apiVersion: olm.operatorframework.io/v1
kind: ClusterCatalog
metadata:
name: catalog-82249
labels:
example.com/support: "true"
test-cases: ocp-82249
spec:
priority: 1000
source:
type: Image
image:
ref: quay.io/openshifttest/nginxolm-operator-index:nginxolm82249
xzha@xzha1-mac OCP-82249 % cat extension.yaml
apiVersion: olm.operatorframework.io/v1
kind: ClusterExtension
metadata:
name: "extension-82249"
spec:
namespace: "ns-82249"
serviceAccount:
name: "test-82249"
source:
sourceType: "Catalog"
catalog:
packageName: "nginx82249"
version: "1.1.0"
upgradeConstraintPolicy: "CatalogProvided"
2. check co olm
xzha@xzha1-mac OCP-82249 % oc get co olm -o yaml
- lastTransitionTime: "2025-05-30T11:30:39Z"
message: 'InstalledOLMOperatorsUpgradeable: Found ClusterExtensions that require
upgrades prior to upgrading cluster to version 4.20: bundle "nginx82249.v1.1.0"
for ClusterExtension "extension-82249".'
reason: InstalledOLMOperators_IncompatibleOperatorsInstalled
status: "False"
type: Upgradeable
3.
Actual results:
the error message is "Found ClusterExtensions that require upgrades prior to upgrading cluster to version 4.20 "
Expected results:
Found ClusterExtensions that require upgrades prior to upgrading cluster to version 4.21
Additional info: