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

v2: oc-mirror reports success exit (0) even in case of errors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • 4.19.0
    • 4.18, 4.19
    • oc-mirror
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • CLID Sprint 267, CLID Sprint 268, CLID Sprint 269
    • 3
    • Done
    • Bug Fix
    • Hide
      * Previously, the oc-mirror plugin v2 returned an exit status of `0` (success) even when mirroring errors occurred. As a result, oc-mirror plugin v2 run failures in automated workflows could go undetected. With this release, oc-mirror plugin v2 has been updated to return a non -`0` exit status when mirror failures occur. Despite this fix, users should not rely solely on the exit status in automated workflows. Users are advised to manually check the `mirroring_errors_XXX_XXX.txt` file generated by oc-mirror plugin v2 to identify any potential issues. (link:https://issues.redhat.com/browse/OCPBUGS-49880[OCPBUGS-49880])
      Show
      * Previously, the oc-mirror plugin v2 returned an exit status of `0` (success) even when mirroring errors occurred. As a result, oc-mirror plugin v2 run failures in automated workflows could go undetected. With this release, oc-mirror plugin v2 has been updated to return a non -`0` exit status when mirror failures occur. Despite this fix, users should not rely solely on the exit status in automated workflows. Users are advised to manually check the `mirroring_errors_XXX_XXX.txt` file generated by oc-mirror plugin v2 to identify any potential issues. (link: https://issues.redhat.com/browse/OCPBUGS-49880 [ OCPBUGS-49880 ])
    • None
    • None
    • None
    • None

      Description of problem:

          See https://issues.redhat.com/browse/RFE-7006 for the use-case.

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

          

      How reproducible:

          always for non-release images

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

          0 returned by oc-mirror

      Expected results:

          non-zero returned if there are mirrorring failures.

      Additional info:

          

              rdossant Rafael Fonseca dos Santos
              rdossant Rafael Fonseca dos Santos
              None
              None
              Nidan Gavali Nidan Gavali
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: