From f506dfe1eabb91d4f1a99c3cc19cef8449119ee3 Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Mon, 3 Apr 2017 21:41:24 -0400 Subject: [PATCH] cluster/log-dump - chmod files before dumping We make the files world-readable, so that installation techniques that lock down the logfiles can still be dumped. Issue https://github.com/kubernetes/test-infra/issues/2397 --- cluster/log-dump.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cluster/log-dump.sh b/cluster/log-dump.sh index 93fd5b7c5fd..bebe98534be 100755 --- a/cluster/log-dump.sh +++ b/cluster/log-dump.sh @@ -154,6 +154,10 @@ function save-logs() { else files="${kern_logfile} ${files} ${initd_logfiles} ${supervisord_logfiles}" fi + + echo "Changing logfiles to be world-readable for download" + log-dump-ssh "${node_name}" "sudo chmod -R a+r /var/log" || true + echo "Copying '${files}' from ${node_name}" copy-logs-from-node "${node_name}" "${dir}" "${files}" }