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

[v2] when oc-mirror version 4.18.3, 4.18.4 and 4.18.5 graph image synchronization generates an error

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • None
    • CLID Sprint 270, CLID Sprint 271, CLID Sprint 272
    • 3
    • Done
    • Bug Fix
    • Hide
      *Cause*: oc-mirror v2 didn't use the custom creds supplied via the `--authfile` parameter for graph image creation.
      *Consequence*: graph image creation fails with authentication failures.
      *Fix*: the custom creds are now correctly used for both mirroring and graph image creation.
      *Result*: no auth failures when processing graph image.
      Show
      *Cause*: oc-mirror v2 didn't use the custom creds supplied via the `--authfile` parameter for graph image creation. *Consequence*: graph image creation fails with authentication failures. *Fix*: the custom creds are now correctly used for both mirroring and graph image creation. *Result*: no auth failures when processing graph image.
    • None
    • None
    • None
    • None

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

      Description of problem:

      using oc-mirror 4.18.3, 4.18.4 or 4.18.5 the graph: true parameter generates an error when performing the synchronization

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

      4.18.3, 4.18.4 and 4.18.5

      How reproducible:

      Always 

      Steps to Reproduce:

          1.create simple image set configuration file
      this is my imageSetConfiguration.yaml : 
      ---
      apiVersion: mirror.openshift.io/v2alpha1
      kind: ImageSetConfigurationmirror:
        platform:
          graph: true
          kubeVirtContainer: true
          architectures:
          - "amd64"
          channels:
          - name: stable-4.18
            minVersion: 4.18.2
            maxVersion: 4.18.2
            type: ocp
      ...
      
          2.Lauch the synchronization command, this is my example : 
      oc-mirror.4.18.4 --v2 --authfile ${HOME}/pull-secret.txt --workspace file://${WORK_DIR}/temp --config=${WORK_DIR}/imageSetConfiguration.02.01.yaml --log-level debug --cache-dir ${WORK_DIR}/cache docker://ocpv418.registry.local
      
      
      Actual results:
      
      The output is similar to : 
      2025/03/25 15:42:03  [INFO]   : 👋 Goodbye, thank you for using oc-mirror
      2025/03/25 15:42:03  [ERROR]  : [ReleaseImageCollector] error processing graph image: HEAD https://ocpv418.registry.local/v2/openshift/graph-image/manifests/latest: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details) 
           

      Expected results:

      the openshift/graph-image should be uploaded correctly    

      Additional info:

          

              rdossant Rafael Fonseca dos Santos
              openshift-crt-jira-prow OpenShift Prow Bot
              None
              None
              Nidan Gavali Nidan Gavali
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: