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

[v2] unable to mirror releases disk to mirror in enclave setup

XMLWordPrintable

    • None
    • CLID Sprint 257
    • 1
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, with oc-mirror plugin v2 (Technology Preview), when a generated archive was moved to a different machine, the mirroring from archive to the mirror registry operation failed and outputted the following error message:
      +
      [source,termninal]
      ----
      [ERROR]: [ReleaseImageCollector] open ${FOLDER}/working-dir/hold-release/ocp-release/4.15.17-x86_64/release-manifests/image-references: no such file or directory
      ----
      +
      With this release, the machine that runs oc-mirror receives an automatic update to change its target location to the working directory. (link:https://issues.redhat.com/browse/OCPBUGS-37040[*OCPBUGS-37040*])
      Show
      * Previously, with oc-mirror plugin v2 (Technology Preview), when a generated archive was moved to a different machine, the mirroring from archive to the mirror registry operation failed and outputted the following error message: + [source,termninal] ---- [ERROR]: [ReleaseImageCollector] open ${FOLDER}/working-dir/hold-release/ocp-release/4.15.17-x86_64/release-manifests/image-references: no such file or directory ---- + With this release, the machine that runs oc-mirror receives an automatic update to change its target location to the working directory. (link: https://issues.redhat.com/browse/OCPBUGS-37040 [* OCPBUGS-37040 *])
    • Bug Fix
    • Done

      Description of problem:

      Unable to run disk to mirror in enclave environment.
          

      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:"4.16.0-202406131906.p0.g7c0889f.assembly.stream.el9-7c0889f", GitCommit:"7c0889f4bd343ccaaba5f33b7b861db29b1e5e49", GitTreeState:"clean", BuildDate:"2024-06-13T22:07:44Z", GoVersion:"go1.21.9 (Red Hat 1.21.9-1.el9_4) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}
      
          

      How reproducible:

      Always
          

      Steps to Reproduce:

          1. Mirror to disk on internet facing machine
          2. scp the tar to a disconnected machine, different folder
          3. Disk to mirror
          

      Actual results:

      [ec2-user@ip-10-0-1-197 ~]$ oc-mirror --v2 -c isc_resources.yaml --from file:///home/ec2-user/entreprise-content/ docker://localhost:5000
      
      2024/07/15 08:42:40  [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/07/15 08:42:40  [INFO]   : 👋 Hello, welcome to oc-mirror
      2024/07/15 08:42:40  [INFO]   : ⚙️  setting up the environment for you...
      2024/07/15 08:42:40  [INFO]   : 🔀 workflow mode: diskToMirror 
      I0715 08:42:40.646736   40155 client.go:44] Usage of the UPDATE_URL_OVERRIDE environment variable is unsupported
      2024/07/15 08:49:34  [INFO]   : 🕵️  going to discover the necessary images...
      2024/07/15 08:49:34  [INFO]   : 🔍 collecting release images...
      2024/07/15 08:49:34  [ERROR]  : [ReleaseImageCollector] open /home/skhoury/demo/working-dir/hold-release/ocp-release/4.15.17-x86_64/release-manifests/image-references: no such file or directory
      2024/07/15 08:49:34  [INFO]   : 👋 Goodbye, thank you for using oc-mirror
      error closing log file registry.log: close /home/ec2-user/entreprise-content/working-dir/logs/registry.log: file already closed
      2024/07/15 08:49:34  [ERROR]  : [ReleaseImageCollector] open /home/skhoury/demo/working-dir/hold-release/ocp-release/4.15.17-x86_64/release-manifests/image-references: no such file or directory 
      
          

      Expected results:

      Success
      the folder releaseImageCollector should have used is /home/ec2-user/entreprise-content/working-dir/hold-release/ocp-release/4.15.17-x86_64/release-manifests/image-references
          

      Additional info:

      
          

              skhoury@redhat.com Sherine Khoury
              skhoury@redhat.com Sherine Khoury
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: