Merge pull request #37248 from mtaufen/serial-port-output

Automatic merge from submit-queue

Include serial port output in GCP log-dump

This should help us debug reboot failures e.g. https://github.com/kubernetes/kubernetes/issues/33882
Also useful for OOM-kill investigation.

/cc @dchen1107
This commit is contained in:
Kubernetes Submit Queue 2016-11-21 18:21:27 -08:00 committed by GitHub
commit 8feec28d6e

View File

@ -97,6 +97,8 @@ function copy-logs-from-node() {
else
case "${KUBERNETES_PROVIDER}" in
gce|gke|kubemark)
# get-serial-port-output lets you ask for ports 1-4, but currently (11/21/2016) only port 1 contains useful information
gcloud compute instances get-serial-port-output --project "${PROJECT}" --zone "${ZONE}" --port 1 "${node}" > "${dir}/serial-1.log" || true
gcloud compute copy-files --project "${PROJECT}" --zone "${ZONE}" "${node}:${scp_files}" "${dir}" > /dev/null || true
;;
aws)