oc mirror does not mirror intermediate versions on eus channels with shortestPath

Solution Unverified - Updated -

Issue

  • When using shortestPath: true in oc mirrorin an EUS channel, only the minVersion and maxVersion are mirrored, but not an intermediate version that allows upgrading between them.

  • For example, when using an ImageSetConfiguration such as this

    kind: ImageSetConfiguration
    apiVersion: mirror.openshift.io/v1alpha2
    storageConfig:
    local:
      path: ./oc-mirror-metadata
    mirror:
    platform:
      graph: true # Required for the OSUS ooperator
      architectures:
        - amd64
      channels:
      - name: stable-4.12
        minVersion: '4.12.28'
        maxVersion: '4.12.28'
        shortestPath: true
        type: ocp
      - name: eus-4.14
        minVersion: '4.12.28'
        maxVersion: '4.14.16'
        shortestPath: true
        type: ocp
    

    No 4.13.z version is mirrored, so no EUS upgrade is possible in a supported way.

Environment

  • Red Hat OpenShift Container Platform, using oc-mirror plugin
    • 4.14 (reproduced on version 4.14.0-202402081809.p0.g6874730.assembly.stream.el8-6874730)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content