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

oc-mirror init produces imageset-config.yaml which references the wrong release

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.16.0
    • oc / oc-mirror
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      The oc-mirror init command produces a sample imageset-config.yaml which references the incorrect release. In this case 4.17 instead of 4.16

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

          

      How reproducible:

          100%

      Steps to Reproduce:

      Run the command: oc-mirror init --registry ip-10-0-170-23.us-east-2.compute.internal:8443 > imageset-config.yaml
          

      Actual results:

          The imageset-config.yaml looks like this
      
      
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v1alpha2
      storageConfig:
        registry:
          imageURL: ip-10-0-170-23.us-east-2.compute.internal:8443
          skipTLS: false
      mirror:
        platform:
          channels:
          - name: stable-4.16
            type: ocp
        operators:
        - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.17
          packages:
          - name: serverless-operator
            channels:
            - name: stable
        additionalImages:
        - name: registry.redhat.io/ubi8/ubi:latest
        helm: {}
      
      
      
      
      
      

      Expected results:

          An imageset-config.yaml that references the correct release like
      
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v1alpha2
      storageConfig:
        registry:
          imageURL: ip-10-0-170-23.us-east-2.compute.internal:8443
          skipTLS: false
      mirror:
        platform:
          channels:
          - name: stable-4.16
            type: ocp
        operators:
        - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.16
          packages:
          - name: serverless-operator
            channels:
            - name: stable
        additionalImages:
        - name: registry.redhat.io/ubi8/ubi:latest
        helm: {}
      
      
      
      

      Additional info:

          Using the oc-mirror 4.16 stable release is producing a same imageset-config.yaml that has links to the redhat-operator-index:v4.17 instead of v4.16 which causes errors during the actual mirroring process. The errors that result are not super helpful so it is difficult for users to track down what went wrong which, in this case, is a single digit in the sample config file.

            luzuccar@redhat.com Luigi Mario Zuccarelli
            dan5179 Dan Clark
            ying zhou ying zhou
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: