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

[olmv1] co olm is Degraded if ClusterExtension is installed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.18
    • OLM
    • Moderate
    • None
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

          The message of the co olm conditions of Upgradeable is not correct if one ClusterExtension(without olm.maxOpenShiftVersion) is installed.
      
      
      

      Version-Release number of selected component (if applicable):

          4.18.0-0.nightly-2024-10-06-223232

      How reproducible:

          always

      Steps to Reproduce:

          1.create ClusterCatalog
      apiVersion: olm.operatorframework.io/v1alpha1
      kind: ClusterCatalog
      metadata:
        name: catalog-1
        labels:
          example.com/support: "true"
          provider: olm-1
      spec:
        priority: 1000
        source:
          type: image
          image:
            ref: quay.io/openshifttest/nginxolm-operator-index:nginxolm74108     2. create ns and sa
      3. create ClusterExtension
      apiVersion: olm.operatorframework.io/v1alpha1
      kind: ClusterExtension
      metadata:
        name: test-74108
      spec:
        source:
          sourceType: Catalog
          catalog:
            packageName: nginx74108
            channels:
              - candidate-v1.1
        install:
          serviceAccount:
            name: sa-74108
          namespace: test-74108   
      
       4. check co olm status
      status:
        conditions:
        - lastTransitionTime: "2024-10-08T11:51:01Z"
          message: 'OLMIncompatibleOperatorControllerDegraded: error with cluster extension
            test-74108: error in bundle nginx74108.v1.1.0: could not convert olm.properties:
            failed to unmarshal properties annotation: unexpected end of JSON input'
          reason: OLMIncompatibleOperatorController_SyncError
          status: "True"
          type: Degraded
        - lastTransitionTime: "2024-10-08T02:16:36Z"
          message: All is well
          reason: AsExpected
          status: "False"
          type: Progressing
        - lastTransitionTime: "2024-10-08T02:16:36Z"
          message: All is well
          reason: AsExpected
          status: "True"
          type: Available
        - lastTransitionTime: "2024-10-08T11:48:26Z"
          message: 'InstalledOLMOperatorsUpgradeable: error with cluster extension test-74108:
            error in bundle nginx74108.v1.1.0: could not convert olm.properties: failed
            to unmarshal properties annotation: unexpected end of JSON input'
          reason: InstalledOLMOperators_FailureGettingExtensionMetadata
          status: "False"
          type: Upgradeable
        - lastTransitionTime: "2024-10-08T02:09:59Z"
          reason: NoData
          status: Unknown
          type: EvaluationConditionsDetected
      
      
      

      Actual results:

          co olm is Degraded

      Expected results:

          co olm is OK

      Additional info:

          Bellow annotation of CSV is not configured 
      olm.properties: '[{"type": "olm.maxOpenShiftVersion", "value": "4.8"}]'

            lgallett Lance Galletti
            rhn-support-xzha Xia Zhao
            Xia Zhao Xia Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: