From e9de110a5d888d60d4df9c30a8f03646fad47138 Mon Sep 17 00:00:00 2001 From: mqliang Date: Tue, 2 Feb 2016 14:22:16 +0800 Subject: [PATCH] fix the bug that ubuntu check-pods-torn-down doesn't take into account terminating pods nor pods in other namespaces --- cluster/ubuntu/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/ubuntu/util.sh b/cluster/ubuntu/util.sh index de82f359bf1..34d96be826d 100755 --- a/cluster/ubuntu/util.sh +++ b/cluster/ubuntu/util.sh @@ -553,7 +553,7 @@ function provision-masterandnode() { function check-pods-torn-down() { local kubectl="${KUBE_ROOT}/cluster/kubectl.sh" local attempt=0 - while [[ ! -z "$(kubectl get pods | tail -n +2)" ]]; do + while [[ ! -z "$(kubectl get pods --show-all --all-namespaces| tail -n +2)" ]]; do if (( attempt > 120 )); then echo "timeout waiting for tearing down pods" >> ~/kube/err.log fi