From 4d14f7ca78ea686311e6087b08dc44c5d7ae9117 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Tue, 3 Feb 2026 13:00:40 +0100 Subject: [PATCH] E2E gce: extend cluster initialization timeout This includes the time to download packages from a remote repo like http://us-central1.gce.archive.ubuntu.com/ubuntu, so this can vary quite a bit. In practice, "normal" setup time for the master is under two minutes, but also has been observed to be still downloading packages after almost three minutes. --- cluster/gce/util.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index 3434a546c60..44004c9bff2 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -139,7 +139,11 @@ PREEXISTING_NETWORK_MODE="" KUBE_PROMPT_FOR_UPDATE=${KUBE_PROMPT_FOR_UPDATE:-"n"} # How long (in seconds) to wait for cluster initialization. -KUBE_CLUSTER_INITIALIZATION_TIMEOUT=${KUBE_CLUSTER_INITIALIZATION_TIMEOUT:-300} +# +# This includes the time to download packages from a remote +# repo like http://us-central1.gce.archive.ubuntu.com/ubuntu, +# so this can vary quite a bit. +KUBE_CLUSTER_INITIALIZATION_TIMEOUT=${KUBE_CLUSTER_INITIALIZATION_TIMEOUT:-600} function join_csv() { local IFS=','; echo "$*"; @@ -3582,6 +3586,7 @@ function check-cluster() { local elapsed elapsed=$(($(date +%s) - start_time)) if [[ ${elapsed} -gt ${KUBE_CLUSTER_INITIALIZATION_TIMEOUT} ]]; then + echo echo -e "${color_red}Cluster failed to initialize within ${KUBE_CLUSTER_INITIALIZATION_TIMEOUT} seconds.${color_norm}" >&2 echo "Last output from querying API server follows:" >&2 echo "-----------------------------------------------------" >&2