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

oc-mirror v2 - Failed to upload from disk to private registry when using different working directory name

XMLWordPrintable

    • Important
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Using oc-mirror V2.
      Using different folder name when performing Mirror To Disk and Disk To Mirror, the mirroring will fail during the DiskToMirror with the an error similar to:
      
      2024/07/16 10:52:33  [ERROR]  : [ReleaseImageCollector] open disk-platformv416/working-dir/hold-release/ocp-release/4.16.1-x86_64/release-manifests/image-references: no such file or directory 
      
      Note: The output refers to "disk-platformv416" folder that was used during the MirrorToDisk.

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

      4.16.0-202406200537.p0.g7c0889f.assembly.stream.el9-7c0889f    

      How reproducible:

      Using RHEL 9 server 

      Steps to Reproduce:

          1. Create a directory named "disk-platformv416"
      
          2. Create a ISC file
             kind: ImageSetConfiguration
             apiVersion: mirror.openshift.io/v2alpha1
             mirror:
               platform:
                 channels:
                 - name: stable-4.16
                   minVersion: 4.16.0
                 graph: true
      
          3. RegistryToDisk
            oc-mirror -c ./platform-v416-config-v2.yaml file://disk-platformv416 --loglevel debug --v2     
      
          4. Create a new directory named "disk-up-v416"
      
          5. Move the mirror_000001.tar from "disk-platformv416" to "disk-up-v416"
      
          6. DisktoMirror
             oc mirror -c ./platform-v416-config-v2.yaml --loglevel debug --from file:///home/admin/ocmirror/upload/platform/disk-up-v416 docker://ebdnquay.ebdnlab.vmware.tamlab.rdu2.redhat.com:8443/platform-v416 --v2
      
      

      Actual results:

          2024/07/16 10:52:33  [ERROR]  : [ReleaseImageCollector] open disk-platformv416/working-dir/hold-release/ocp-release/4.16.1-x86_64/release-manifests/image-references: no such file or directory
      2024/07/16 10:52:33  [INFO]   : 👋 Goodbye, thank you for using oc-mirror
      error closing log file registry.log: close /home/admin/ocmirror/upload/platform/disk-up-v416/working-dir/logs/registry.log: file already closed
      2024/07/16 10:52:33  [ERROR]  : [ReleaseImageCollector] open disk-platformv416/working-dir/hold-release/ocp-release/4.16.1-x86_64/release-manifests/image-references: no such file or directory 
      

      Expected results:

          No error.  All OCP platform images uploaded to the private registry from the TAR file

      Additional info:

          The wrong information seems to come from "working-dir/release-filters/" folder

       

              luzuccar@redhat.com Luigi Mario Zuccarelli
              rhn-support-ebeaudoi Eric Beaudoin
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: