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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • 4.18
    • 4.18.z
    • oc-mirror
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • None
    • CLID Sprint 272
    • 1
    • Done
    • Bug Fix
    • Hide
      * Before this update, oc-mirror v2 did not use the custom credentials supplied by the `--authfile` parameter for the creation of a graph image. As a consequnce, authentication failures prevented the graph image creation. With this release, the `--authfile` parameter correctly uses the custom credentials for both mirroring and graph image creation. As a result, no authorization failures occur during the graph image creation. (link:https://issues.redhat.com/browse/OCPBUGS-57068[OCPBUGS-57068])
      Show
      * Before this update, oc-mirror v2 did not use the custom credentials supplied by the `--authfile` parameter for the creation of a graph image. As a consequnce, authentication failures prevented the graph image creation. With this release, the `--authfile` parameter correctly uses the custom credentials for both mirroring and graph image creation. As a result, no authorization failures occur during the graph image creation. (link: https://issues.redhat.com/browse/OCPBUGS-57068 [ OCPBUGS-57068 ])
    • None
    • None
    • None
    • None

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

      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:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: