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

oc-mirror doesn't pull latest version in channel after removing maxversion/minversion

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.13.z, 4.13.0
    • oc-mirror
    • Moderate
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      running oc-mirror with the following pulls down ptp-operator 4.12.0-202303021731oc-mirror --config=./imageset-config.yaml docker://registry.ocp4.ocp412.com:5000/ocp412
      And the image set configkind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v1alpha2
      storageConfig:
        local:
          path: /home/jonas/registry/data/
      mirror:
        platform:
          channels:
          - name: stable-4.12
            minversion: 4.12.4
            maxversion: 4.12.4
            type: ocp
          graph: true
       operators:
         - name: ptp-operator
           channels:
           - name: stable
             minversion: 4.12.0-202303021731
             maxversion: 4.12.0-202303021731
      ...
      Then when removing minversion / maxversion and running it again (same command syntax) and received "No new images detected, process stopping".

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

      Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.13.0-202301161406.p0.gcf167e8.assembly.stream-cf167e8", GitCommit:"cf167e8425339c15b4b9a80071a8f6ae024ffdde", GitTreeState:"clean", BuildDate:"2023-01-16T14:27:43Z", GoVersion:"go1.18.4", Compiler:"gc", Platform:"linux/amd64"}

      How reproducible:

      Visible above

      Steps to Reproduce:

      1.
      2.
      3.
      

      Actual results:

      received "No new images detected, process stopping".

      Expected results:

      I would expect oc-mirror to pull down the latest version in the stable channel, which currently is 4.12.0-202304211142.
      It feels to me like a bug but I am not sure what is expected to happen when you change your image set config like this.

      Additional info:

      https://github.com/openshift/oc-mirror/issues/626

              luzuccar@redhat.com Luigi Mario Zuccarelli
              jarndt@redhat.com Jonas Arndt
              ying zhou ying zhou
              Jonas Arndt
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: