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

unable to build graph image in enclave environment

XMLWordPrintable

    • None
    • CLID Sprint 258
    • 1
    • False
    • Hide

      None

      Show
      None
    • Hide
      Previously, when using oc-mirror v2 (Technology Preview) in mirror-to-disk mode in disconnected environments, oc-mirror was unable to access `api.openshift.com` to download `graph.tar.gz`, resulting in mirroring failures. With this update, oc-mirror now searches the local cache for the graph image in disconnected environments where the `UPDATE_URL_OVERRIDE` environment variable is set. If the graph image is missing, oc-mirror skips it without failing.
      (link:https://issues.redhat.com/browse/OCPBUGS-38469[*OCPBUGS-38469*])
      Show
      Previously, when using oc-mirror v2 (Technology Preview) in mirror-to-disk mode in disconnected environments, oc-mirror was unable to access `api.openshift.com` to download `graph.tar.gz`, resulting in mirroring failures. With this update, oc-mirror now searches the local cache for the graph image in disconnected environments where the `UPDATE_URL_OVERRIDE` environment variable is set. If the graph image is missing, oc-mirror skips it without failing. (link: https://issues.redhat.com/browse/OCPBUGS-38469 [* OCPBUGS-38469 *])
    • Bug Fix
    • Done

      This is a clone of issue OCPBUGS-38037. The following is the description of the original issue:

      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:

      
          

            luzuccar@redhat.com Luigi Mario Zuccarelli
            openshift-crt-jira-prow OpenShift Prow Bot
            ying zhou ying zhou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: