Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include some debug output when the API server never appears. #21108

Merged
merged 1 commit into from
Feb 12, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions cluster/gce/util.sh
Expand Up @@ -744,6 +744,18 @@ function check-cluster() {
local elapsed=$(($(date +%s) - ${start_time}))
if [[ ${elapsed} -gt ${KUBE_CLUSTER_INITIALIZATION_TIMEOUT} ]]; then
echo -e "${color_red}Cluster failed to initialize within ${KUBE_CLUSTER_INITIALIZATION_TIMEOUT} seconds.${color_norm}" >&2
if [[ ${KUBE_TEST_DEBUG-} =~ ^[yY]$ ]]; then
local tmp_log="$(mktemp)"
local file
for file in /var/log/startupscript.log /var/log/kube-apiserver.log; do
echo "${MASTER_NAME}:${file} contents:"
if gcloud compute copy-files --project "${PROJECT}" \
--zone "${ZONE}" "${MASTER_NAME}:${file}" "${tmp_log}"; then
cat "${tmp_log}"
fi
done
rm -f "${tmp_log}"
fi
exit 2
fi
printf "."
Expand Down
2 changes: 1 addition & 1 deletion hack/e2e-internal/e2e-up.sh
Expand Up @@ -31,5 +31,5 @@ source "${KUBE_VERSION_ROOT}/cluster/${KUBERNETES_PROVIDER}/util.sh"

prepare-e2e

"${KUBE_VERSION_ROOT}/cluster/kube-up.sh"
KUBE_TEST_DEBUG=y "${KUBE_VERSION_ROOT}/cluster/kube-up.sh"
test-setup