From 3ad61073fe5e105150feab63898ff359620840f7 Mon Sep 17 00:00:00 2001 From: Sandhya Dasu Date: Mon, 30 Mar 2026 17:37:07 -0400 Subject: [PATCH] Make ssh to collect Agent gather logs verbose Sometimes agent gather logs are not available in a CI artifact because of errors seen while ssh-ing to masters 1 and 2. This change will allow to determine why these ssh connections fail. --- agent/gather.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/gather.sh b/agent/gather.sh index 201cc890e..e33cb96f1 100755 --- a/agent/gather.sh +++ b/agent/gather.sh @@ -11,7 +11,7 @@ do ip=$( echo "$line" | cut -d " " -f 1) host=$( echo "$line" | cut -d " " -f 2) echo "Trying to gather agent logs on host ${host}" - if ssh -n -o 'ConnectTimeout=30' -o 'StrictHostKeyChecking=no' -o 'UserKnownHostsFile=/dev/null' core@"${ip}" agent-gather -O >agent-gather-"${host}".tar.xz; then + if ssh -vv -n -o 'ConnectTimeout=30' -o 'StrictHostKeyChecking=no' -o 'UserKnownHostsFile=/dev/null' core@"${ip}" agent-gather -O >agent-gather-"${host}".tar.xz; then echo "Agent logs saved to agent-gather-"${host}".tar.xz" >&2 else if [ $? == 127 ]; then