-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
4.18
-
Quality / Stability / Reliability
-
False
-
-
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).