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

oc-mirror v2 is not generating the missing.txt file while mirroring from registry to registry

XMLWordPrintable

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

      None

      Show
      None

      Description of problem:

          oc-mirror v2 is not generating the missing.txt file while mirroring from registry to registry

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

      4.17    

      How reproducible:

        100% reproducible  

      Steps to Reproduce:

      1- Create a imageset like below

       

      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v2alpha1
      mirror:
        platform:
          channels:
          - name: stable-4.17
            minVersion: 4.17.3
            maxVersion: 4.17.3
          graph: true
        operators:
          - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.17
            packages:
             - name: aws-load-balancer-operator
             - name: node-observability-operator
        additionalImages:
         - name: registry.redhat.io/ubi8/ubi:latest
         - name: registry.redhat.io/ubi9/ubi@sha256:20f695d2a91352d4eaa25107535126727b5945bff38ed36a3e59590f495046f0
       

       

       

      2- Run --dry-run and see its not generating missing.txt file (even with fresh run)

       

       

      # ./oc-mirror  --config=./imageset.yaml  --workspace file:///tmp/417mirrortoregitry docker://mirror:8443/417registrytomirror --v2 --dry-run 
      
      2024/11/18 22:18:54  [WARN]   : ⚠️  --v2 flag identified, flow redirected to the oc-mirror v2 version. This is Tech Preview, it is still under development and it is not production ready.
      2024/11/18 22:18:54  [INFO]   : 👋 Hello, welcome to oc-mirror
      2024/11/18 22:18:54  [INFO]   : ⚙️  setting up the environment for you...
      2024/11/18 22:18:54  [INFO]   : 🔀 workflow mode: mirrorToMirror 
      2024/11/18 22:18:55  [INFO]   : 🕵️  going to discover the necessary images...
      2024/11/18 22:18:55  [INFO]   : 🔍 collecting release images...
      2024/11/18 22:19:06  [INFO]   : 🔍 collecting operator images...
      2024/11/18 22:19:08  [INFO]   : 🔍 collecting additional images...
      2024/11/18 22:19:08  [INFO]   : 📄 list of all images for mirroring in : /tmp/417mirrortoregitry/working-dir/dry-run/mapping.txt
      2024/11/18 22:19:08  [INFO]   : mirror time     : 13.88956228s
      2024/11/18 22:19:08  [INFO]   : 👋 Goodbye, thank you for using oc-mirror

       

      3- if you run the same with registry to disk its generating the missing.txt

       

      amuhamme@amuhamme-thinkpadt14sgen1:~/417-hackathon$ ./oc-mirror  --config=./imageset.yaml file:///home/amuhamme/ --v2 --dry-run2024/11/19 08:02:53  [WARN]   : ⚠️  --v2 flag identified, flow redirected to the oc-mirror v2 version. This is Tech Preview, it is still under development and it is not production ready.
      2024/11/19 08:02:53  [INFO]   : 👋 Hello, welcome to oc-mirror
      2024/11/19 08:02:53  [INFO]   : ⚙️  setting up the environment for you...
      2024/11/19 08:02:53  [INFO]   : 🔀 workflow mode: mirrorToDisk 
      2024/11/19 08:02:53  [INFO]   : 🕵️  going to discover the necessary images...
      2024/11/19 08:02:53  [INFO]   : 🔍 collecting release images...
      2024/11/19 08:05:55  [INFO]   : 🔍 collecting operator images...
      2024/11/19 08:12:52  [INFO]   : 🔍 collecting additional images...
      2024/11/19 08:12:52  [WARN]   : ⚠️  197/198 images necessary for mirroring are not available in the cache.
      2024/11/19 08:12:52  [WARN]   : List of missing images in : /home/amuhamme/working-dir/dry-run/missing.txt.
      please re-run the mirror to disk process
      2024/11/19 08:12:52  [INFO]   : 📄 list of all images for mirroring in : /home/amuhamme/working-dir/dry-run/mapping.txt
      2024/11/19 08:12:52  [INFO]   : mirror time     : 9m58.798975756s
      2024/11/19 08:12:52  [INFO]   : 👋 Goodbye, thank you for using oc-mirror
        

       

      Actual results:

       oc-mirror v2 not generating the missing.txt file while mirroring from registry to registry

      Expected results:

           oc-mirror v2 should generate the missing.txt file while mirroring from registry to registry

      Additional info:

          

              luzuccar@redhat.com Luigi Mario Zuccarelli
              rhn-support-amuhamme MUHAMMED ASLAM V K
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: