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

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

XMLWordPrintable

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

      None

      Show
      None
    • None
    • None
    • None
    • None
    • CLID Sprint 269, CLID Sprint 270
    • 2
    • Done
    • Bug Fix
    • Hide
      Previously, the `oc-mirror` plugin returned an exit status of `0` (success) even when mirroring errors occurred in automated workflows. As a result, customers could not rely on the exit status in the automated workflows. With this release, the `oc mirror` returns a non-zero (failure) exit status when there are errors. (link:https://issues.redhat.com/browse/OCPBUGS-54626[OCPBUGS-54626])
      Show
      Previously, the `oc-mirror` plugin returned an exit status of `0` (success) even when mirroring errors occurred in automated workflows. As a result, customers could not rely on the exit status in the automated workflows. With this release, the `oc mirror` returns a non-zero (failure) exit status when there are errors. (link: https://issues.redhat.com/browse/OCPBUGS-54626 [ OCPBUGS-54626 ])
    • None
    • None
    • None
    • None

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

      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
              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: