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

While mirroring nvidia operator with oc-mirror 4.13 version, ImageContentSourcePolicy is not getting created properly

XMLWordPrintable

    • Important
    • No
    • CFE Sprint 241
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None

      This is a clone of issue OCPBUGS-17998. The following is the description of the original issue:

      Description of problem:

      While mirroring nvidia operator with oc-mirror 4.13 version, ImageContentSourcePolicy is not getting created properly 

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

       

      How reproducible:

       

      Steps to Reproduce:

      1. Create imageset file
      
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v1alpha2
      archiveSize: 4
      storageConfig:
        local:
          path: /home/name/nvidia
      mirror:
        operators:
        - catalog: registry.redhat.io/redhat/certified-operator-index:v4.11
          packages:
          - name: nvidia-network-operator
      
      2. mirror to disk using oc-mirror 4.13
      $oc-mirror -c imageset.yaml file:///home/name/nvidia/
      ./oc-mirror version
      Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.13.0-202307242035.p0.gf11a900.assembly.stream-f11a900", GitCommit:"f11a9001caad8fe146c73baf2acc38ddcf3642b5", GitTreeState:"clean", BuildDate:"2023-07-24T21:25:46Z", GoVersion:"go1.19.10 X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}
      
      3. Now generate the manifest
      
      $ oc-mirror --from /home/name/nvidia/ docker://registry:8443 --manifests-only
      
      - mirrors:
          - registry:8443/nvidia/cloud-native
          source: nvcr.io/nvidia
      
      However the correct mapping should be:
          - mirrors:
              - registry/nvidia
            source: nvcr.io/nvidia
      
      4. perform same step with 4.12.0 version you will not hit this issue. 
      ./oc-mirror version
      Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.12.0-202304241542.p0.g5fc00fe.assembly.stream-5fc00fe", GitCommit:"5fc00fe735d8fb3b6125f358f5d6b9fe726fad10", GitTreeState:"clean", BuildDate:"2023-04-24T16:01:29Z", GoVersion:"go1.19.6", Compiler:"gc", Platform:"linux/amd64"}

       

       

      Actual results:

       

      Expected results:

       

      Additional info:

       

              rh-ee-aguidi Alex Guidi
              openshift-crt-jira-prow OpenShift Prow Bot
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: