Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-3516

operator-build pipeline should keep older versions in catalog

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • None
    • None
    • Logging Build
    • False
    • None
    • False
    • NEW
    • NEW

      Description of problem:

      Newer builds of the cluster-logging operator remove older versions from the catalog - which causes a lot of issues with disconnected and connected cluster.

      While customers should install most recent versions of an operator, the operational needs require to first test each version to be installed intensively. This will cause delays between the installation of an operator to a productive and a testing environment - therefore the versions in the catalog may have gotten updated meanwhile. Without access to older versions of such operator in the catalog, the installation in a connected environment will fail.

      In disconnected environments a `ImageSetConfiguration` for oc-mirror would cause errors if the `minVersion` is no longer listed in the updated catalog.

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

      all redhat-operator catalog versions (others too, but let's fix logging first)

      How reproducible:

      Steps to Reproduce:

      1. create a `ImageSetConfiguration` to mirror specific operators / versions to local registry or disk
      2. refer to a outdated version of i.e. `cluster-logging`
      3. run `oc-mirror` with that configuration file

      in a connected environment:

      1. Create a cluster-logging subscription with a `startingCSV: 5.5.0` and `installPlanApproval: Manual`

      Actual results:

      `oc-mirror` fails as the mentioned version is no longer available.

      Installation of the operator fails as the startingCSV is not found

      Expected results:

      Mirror process and installation succeeds as the referred versions are listed in the catalog.

      Additional info:

      Listing of available versions from cluster-logging / stable-5.5 and stable-5.4 channel

      % oc-mirror list operators --catalog registry.redhat.io/redhat/redhat-operator-index:v4.10 --package cluster-logging --channel stable-5.5
      VERSIONS
      5.5.5
      
      % oc-mirror list operators --catalog registry.redhat.io/redhat/redhat-operator-index:v4.10 --package cluster-logging --channel stable-5.4
      VERSIONS
      5.4.9

      Listing of i.e. CSO / stable-3.7

      % oc-mirror list operators --catalog registry.redhat.io/redhat/redhat-operator-index:v4.10 --package container-security-operator --channel stable-3.7                                                                                                                                
      VERSIONS
      3.7.5
      3.7.6
      3.7.7
      3.7.0
      3.7.1
      3.7.10
      3.7.4
      3.7.9
      3.7.11
      3.7.2
      3.7.3
      3.7.8

      The pipeline shouldn't only list the most recent version of the build, but also older ones.

            Unassigned Unassigned
            rhn-support-ableisch Andreas Bleischwitz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: