You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix waiting for logexporter log fetching processes
Fix bug found by shellcheck in logexporter log fetching
where last wait was not working properly.
Fix DumpClusterLogs hanging in 5k nodes clusters:
kubernetes#85753
Change-Id: Id02bf9048b19e790940c7eac6d45d7fa7a3dfb2b
Copy file name to clipboardExpand all lines: cluster/log-dump/log-dump.sh
+4-7Lines changed: 4 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -504,10 +504,10 @@ function dump_nodes_with_logexporter() {
504
504
# Store logs from logexporter pods to allow debugging log exporting process
505
505
# itself.
506
506
proc=${max_dump_processes}
507
-
"${KUBECTL}" get pods -n "${logexporter_namespace}" -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.nodeName}{"\n"}{end}'|whileread pod node;do
507
+
"${KUBECTL}" get pods -n "${logexporter_namespace}" -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.nodeName}{"\n"}{end}'|(while read -r pod node;do
508
508
echo"Fetching logs from ${pod} running on ${node}"
0 commit comments