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

[v2] oc-mirror displays incorrect mirrored image count for helm charts

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • CLID Sprint 274, CLID Sprint 275
    • 2
    • Proposed
    • Bug Fix
    • Hide
      Before this update, sharing duplicated images between different container images resulted in an incorrect count calculation in `oc-mirror` for total mirrored images of Helm charts. As a consequence, some Helm images were not mirrored. With this release, the incorrect count of mirrored Helm images in `oc-mirror` has been fixed, improving the accuracy of mirrored image counts. (link:https://issues.redhat.com/browse/OCPBUGS-60086[OCPBUGS-60086])
      Show
      Before this update, sharing duplicated images between different container images resulted in an incorrect count calculation in `oc-mirror` for total mirrored images of Helm charts. As a consequence, some Helm images were not mirrored. With this release, the incorrect count of mirrored Helm images in `oc-mirror` has been fixed, improving the accuracy of mirrored image counts. (link: https://issues.redhat.com/browse/OCPBUGS-60086 [ OCPBUGS-60086 ])
    • None
    • None
    • None
    • None

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

      Description of problem:

          Currently oc-mirror displays incorrect count for total mirrored images of helm charts.

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

          

      How reproducible:

          Always

      Steps to Reproduce:

      1.perfomed m2d + d2m 
      oc-mirror -c isc.yaml file://test --v2 --log-level debug
      oc-mirror -c isc.yaml --from file://test docker://localhost:5000 --dest-tls-verify=false --v2      
      2.Verify the output.
          

      Actual results:

      2025/07/29 09:11:01  [INFO]   : === Results ===
      2025/07/29 09:11:01  [INFO]   :  ✗  2 / 3 helm images mirrored: Some helm images failed to be mirrored - please check the logs
      2025/07/29 09:11:01  [DEBUG]  : concurrent channel worker time     : 3.300710011s
      2025/07/29 09:11:01  [INFO]   : 📦 Preparing the tarball archive...

      Expected results:

      2 / 2 helm images mirrored.

      Additional info:

      ISC File used:  apiVersion: mirror.openshift.io/v2alpha1
      kind: ImageSetConfiguration
      mirror: 
        helm: 
          repositories: 
            - name: openshift-charts
              url: https://charts.openshift.io
              charts: 
                - name: redhat-developer-hub
                  version: "1.4.1" 

              rh-ee-aguidi Alex Guidi
              rh-ee-ngavali Nidan Gavali
              None
              None
              Nidan Gavali Nidan Gavali
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: