From 378c837e7ae6d6573a0e3c65299d9ca93ca6bb06 Mon Sep 17 00:00:00 2001 From: jayunit100 Date: Wed, 16 Nov 2016 14:49:19 -0500 Subject: [PATCH] fail fast if kubelet start failed --- hack/local-up-cluster.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index 7b5012e48fc..c6e54d280b2 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -513,6 +513,12 @@ function start_kubelet { ${image_service_endpoint_args} \ --port="$KUBELET_PORT" >"${KUBELET_LOG}" 2>&1 & KUBELET_PID=$! + # Quick check that kubelet is running. + if ps -p $KUBELET_PID > /dev/null ; then + echo "kubelet ( $KUBELET_PID ) is running." + else + cat ${KUBELET_LOG} ; exit 1 + fi else # Docker won't run a container with a cidfile (container id file) # unless that file does not already exist; clean up an existing