Commit 8feec28d authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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
parents a85d352d 9f547084
...@@ -97,6 +97,8 @@ function copy-logs-from-node() { ...@@ -97,6 +97,8 @@ function copy-logs-from-node() {
else else
case "${KUBERNETES_PROVIDER}" in case "${KUBERNETES_PROVIDER}" in
gce|gke|kubemark) 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 gcloud compute copy-files --project "${PROJECT}" --zone "${ZONE}" "${node}:${scp_files}" "${dir}" > /dev/null || true
;; ;;
aws) aws)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment