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

[v2] oc-mirror is not mirroring the dependent operator automatically like v1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Normal Normal
    • None
    • 4.17
    • oc-mirror
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

          oc-mirror v2 is not mirroring the dependent operator automatically like v1 until it specifically mentioned in the imageset

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

          oc-mirror v2

      How reproducible:

          100% reproducible

      Steps to Reproduce:

      1- Create an imageset to mirror odf-operator as its having multiple dependent operators, see the doc[a] for dependent operator lists

      [a] https://docs.redhat.com/en/documentation/red_hat_openshift_data_foundation/4.16/html-single/planning_your_deployment/index#disconnected-environment_rhodf

       

      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v2alpha1
      mirror:
        operators:
        - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.16
          packages:
            - name: odf-operator 

      2- create mapping.txt and see its only mirroring the odf-operator image

       

       

      # oc-mirror --config odf-imageset.yaml file://test --dry-run --v2

      3- Mirror the same operator with v1 and see the mapping.txt. all the dependent operators will be mirrored

      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v1alpha2
      storageConfig:
        local:
          path: /opt/ocp_mirror/odf
      mirror:
        operators:
        - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.16
          packages:
            - name: odf-operator 
      
      # oc-mirror --config=./odf-imageset.yaml docker://<registry>:8443 --dry-run

       

       

      Actual results:

         Dependent operators are not getting mirrored like v1

      Expected results:

          Dependent operators are also should be mirrored like v1 

      Additional info:

          

              rhn-support-stk Subhashini T K (Inactive)
              rhn-support-amuhamme MUHAMMED ASLAM V K
              None
              None
              Ying Zhou Ying Zhou
              None
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: