Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-56903

The error message of co olm Upgradeable is not correct

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.20
    • OLM
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Rejected
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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:

          

              rh-ee-cchantse Catherine Chan-Tse
              rhn-support-xzha Xia Zhao
              None
              None
              Xia Zhao Xia Zhao
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: