From 134e91e3798999e8e7c0ba552e14d806599ee7d9 Mon Sep 17 00:00:00 2001 From: Jerzy Szczepkowski Date: Tue, 20 Dec 2016 09:48:26 +0100 Subject: [PATCH] Added extra logging in validate cluster. Added extra logging in validate cluster to help debug HA e2e tests. --- cluster/validate-cluster.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cluster/validate-cluster.sh b/cluster/validate-cluster.sh index 38af0a3aaaf..9cfce4172bc 100755 --- a/cluster/validate-cluster.sh +++ b/cluster/validate-cluster.sh @@ -53,10 +53,12 @@ CLUSTER_READY_ADDITIONAL_TIME_SECONDS="${CLUSTER_READY_ADDITIONAL_TIME_SECONDS:- EXPECTED_NUM_NODES="${NUM_NODES}" if [[ "${KUBERNETES_PROVIDER:-}" == "gce" ]]; then + echo "Validating gce cluster, MULTIZONE=${MULTIZONE:-}" # In multizone mode we need to add instances for all nodes in the region. if [[ "${MULTIZONE:-}" == "true" ]]; then EXPECTED_NUM_NODES=$(gcloud compute instances list --format=[no-heading] --regexp="${NODE_INSTANCE_PREFIX}.*" \ --zones=$(gcloud compute zones list --filter=region=${REGION} --format=[no-heading]\(name\) | tr "\n" "," | sed "s/,$//") | wc -l) + echo "Computing number of nodes, NODE_INSTANCE_PREFIX=${NODE_INSTANCE_PREFIX}, REGION=${REGION}, EXPECTED_NUM_NODES=${EXPECTED_NUM_NODES}" fi fi