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

MustGather does not clean up pod and namespace when interrupted with Ctrl+C (SIGINT)

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      When running oc adm must-gather and terminating the process using Ctrl+C, the temporary must-gather namespace and pods are not deleted. This leads to leftover resources on the cluster which must be cleaned up manually.
      The expectation is that upon receiving a termination signal like SIGINT, must-gather should clean up the temporary namespace and resources it created unless the --keep-namespace flag is explicitly set.

      Steps to Reproduce:

      1. Run: oc adm must-gather
      2. After the process starts gathering data, press Ctrl+C to interrupt it.
      3. Run: oc get ns | grep must-gather
      4. Observe that the must-gather namespace and pods still exist.
      

      Actual results:

      The namespace and pods remain in the cluster and must be deleted manually.
      

      Expected results:

      On receiving Ctrl+C, oc adm must-gather should gracefully clean up the temporary namespace and any associated pods (unless --keep-namespace is set).  

              rh-ee-okupka Ondřej Kupka
              rh-ee-hoberger Hodaya Berger
              None
              None
              Ying Zhou Ying Zhou
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: