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

Duplication data when more than one release is added to ImageSetConfig.yaml

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.18.0
    • oc-mirror
    • Moderate
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      when more than one release is added to ImageSetConfig.yaml the images number is double and incorrect, check the log we could see duplications.
      
      ImageSetConfig.yaml:
      =================
      [fedora@preserve-fedora-yinzhou test]$ cat /tmp/clid-232.yaml 
      apiVersion: mirror.openshift.io/v2alpha1
      kind: ImageSetConfiguration
      mirror:
        platform:
          channels:
          - name: stable-4.16
            minVersion: 4.16.0
            maxVersion: 4.16.0
          - name: stable-4.15
            minVersion: 4.15.0
            maxVersion: 4.15.0
      
      
      images to copy 958
      cat /tmp/sss |grep 1fd628f40d321354832b0f409d2bf9b89910de27bc6263a4fb5a55c25e160a99
       ✓   178/958 : (8s) quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:1fd628f40d321354832b0f409d2bf9b89910de27bc6263a4fb5a55c25e160a99 
       ✓   945/958 : (8s) quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:1fd628f40d321354832b0f409d2bf9b89910de27bc6263a4fb5a55c25e160a99
      
      
      
       cat /tmp/sss |grep x86_64
       ✓   191/958 : (3s) quay.io/openshift-release-dev/ocp-release:4.16.0-x86_64 
       ✓   383/958 : (2s) quay.io/openshift-release-dev/ocp-release:4.15.0-x86_64 
       ✓   575/958 : (1s) quay.io/openshift-release-dev/ocp-release:4.15.0-x86_64 
       ✓   767/958 : (11s) quay.io/openshift-release-dev/ocp-release:4.15.35-x86_64 
       ✓   958/958 : (5s) quay.io/openshift-release-dev/ocp-release:4.16.0-x86_64
      
            

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

          ./oc-mirror version 
      WARNING: This version information is deprecated and will be replaced with the output from --short. Use --output=yaml|json to get the full version.
      Client Version: version.Info{Major:"", Minor:"", GitVersion:"v0.0.0-unknown-68e608e2", GitCommit:"68e608e2", GitTreeState:"clean", BuildDate:"2024-10-14T05:57:17Z", GoVersion:"go1.23.0", Compiler:"gc", Platform:"linux/amd64"}      

      How reproducible:

          Always
          

      Steps to Reproduce:

          1.  clone oc-mirror repo, cd oc-mirror, run make build
          2.  Now use the imageSetConfig.yaml present above and run mirror2disk & disk2mirror commands
          3. oc-mirror -c /tmp/clid-232.yaml file://CLID-232 --v2 ; oc-mirror -c /tmp/clid-232.yaml --from file://CLID-232 docker://localhost:5000/clid-232 --dest-tls-verify=false --v2
          

      Actual results:

       1. see mirror duplication 

      Expected results:

      no dup.
          

      Additional info:

          

            luzuccar@redhat.com Luigi Mario Zuccarelli
            yinzhou@redhat.com ying zhou
            ying zhou ying zhou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: