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

unable to build graph image in enclave environment

XMLWordPrintable

    • None
    • CLID Sprint 257, CLID Sprint 258
    • 2
    • False
    • Hide

      None

      Show
      None
    • Hide
      When running oc-mirror v2 techPreview in mirror to disk mode in an air gapped environment, oc-mirror cannot reach api.openshift.com to download graph.tar.gz. This caused the mirroring to fail.
      With this fix, and only for the context of air gapped environments (ie UPDATE_URL_OVERRIDE environment variable is defined) oc-mirror attempts to find the graph image in the oc-mirror cache instead, and skips the graph image (without failing) if the graph image isn't found.
      Show
      When running oc-mirror v2 techPreview in mirror to disk mode in an air gapped environment, oc-mirror cannot reach api.openshift.com to download graph.tar.gz. This caused the mirroring to fail. With this fix, and only for the context of air gapped environments (ie UPDATE_URL_OVERRIDE environment variable is defined) oc-mirror attempts to find the graph image in the oc-mirror cache instead, and skips the graph image (without failing) if the graph image isn't found.
    • Bug Fix
    • In Progress

      Description of problem:

      When running oc-mirror in mirror to disk mode in an air gapped environment with `graph: true`, and having UPDATE_URL_OVERRIDE environment variable defined, oc-mirror is still reaching out to api.openshift.com, to get the graph.tar.gz. This causes the mirroring to fail, as this URL is not reacheable from an air-gapped environment
          

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

      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-202407260908.p0.gdfed9f1.assembly.stream.el9-dfed9f1", GitCommit:"dfed9f10cd9aabfe3fe8dae0e6a8afe237c901ba", GitTreeState:"clean", BuildDate:"2024-07-26T09:52:14Z", GoVersion:"go1.21.11 (Red Hat 1.21.11-1.el9_4) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}
          

      How reproducible:

      Always
          

      Steps to Reproduce:

          1.  Setup OSUS in a reacheable  network 
          2. Cut all internet connection except for the mirror registry and OSUS service
          3. Run oc-mirror in mirror to disk mode with graph:true in the imagesetconfig
          

      Actual results:

      
          

      Expected results:

      Should not fail
          

      Additional info:

      
          

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

                Created:
                Updated: