From c1fb4b6c270ce64405d87bc94adad1769a5b6870 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Tue, 6 Sep 2022 09:40:17 +0200 Subject: [PATCH] Run oc logout in background to avoid timeout --- ci-scripts/cls_cluster.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci-scripts/cls_cluster.py b/ci-scripts/cls_cluster.py index ed7514e3bc..debe4c238b 100644 --- a/ci-scripts/cls_cluster.py +++ b/ci-scripts/cls_cluster.py @@ -384,7 +384,8 @@ class Cluster: mySSH.command('for pod in $(oc get pods | tail -n +2 | awk \'{print $1}\'); do oc delete pod ${pod}; done', '\$', 60) - mySSH.command('oc logout', '\$', 30) + # logout will return eventually, but we don't care when -> start in background + mySSH.command('oc logout &', '\$', 5) mySSH.close() # Analyze the logs