Uploaded image for project: 'OpenShift API for Data Protection'
  1. OpenShift API for Data Protection
  2. OADP-537

/usr/bin/gather_with_timeout doesn't work when running must-gather command as a subprocess

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • OADP 1.4.0
    • None
    • must-gather
    • False
    • Hide

      None

      Show
      None
    • False
    • ToDo
    • No
    • 0
    • 0
    • Very Likely
    • 0
    • None
    • Unset
    • Unknown

      Description: when running must-gather command as a subprocess with gather_with_timeout, seems like the timeout does not really take effect.

      Steps to reproduce:

      1. Create a scenario in which `velero restore describe <restore-name --details` command will hang

      2. try to execute the must-gather command from another subshell/subprocess, e.g:

       

      [mperetz@mperetz oadp-e2e-qe]$ cat must_gather 
      oc adm must-gather --image=quay.io/konveyor/oadp-must-gather:latest -- /usr/bin/gather_with_timeout 30
      [mperetz@mperetz oadp-e2e-qe]$ 
      [mperetz@mperetz oadp-e2e-qe]$ bash must_gather    

      3. note that the timeout doesn't apply and that the command still hangs

      4. try to run the script with "source", e.g `source must-gather`

      5. note that the timeout does apply now

       

            wnstb Wes Hayutin
            mperetz@redhat.com Maya Peretz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: