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

pipe can hide errors when using ip command

XMLWordPrintable

    • No
    • 1
    • Metal Platform 245
    • 1
    • False
    • Hide

      None

      Show
      None

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

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

      Description of problem:

      if pipefail is active in a bash script, the pipe ( | ) usage can hide the actual error of the ip command if it fails with exit code different from 1

       

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

       

      How reproducible:

       

      Steps to Reproduce:

      1.
      2.
      3.
      

      Actual results:

       

      Expected results:

       

      Additional info:

       

              rpittau@redhat.com Riccardo Pittau
              openshift-crt-jira-prow OpenShift Prow Bot
              Jad Haj Yahya Jad Haj Yahya
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: