From 311c4115cf1a76f06c4e14869f4215c4d274c070 Mon Sep 17 00:00:00 2001 From: justinsb Date: Sun, 10 Nov 2024 19:06:55 -0500 Subject: [PATCH] e2e tests: dump ip information for each VM Add this to the data we dump. --- tests/e2e/scenarios/bare-metal/dump-artifacts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/e2e/scenarios/bare-metal/dump-artifacts b/tests/e2e/scenarios/bare-metal/dump-artifacts index 77ec77ebb3f7a..e67e551236ce6 100755 --- a/tests/e2e/scenarios/bare-metal/dump-artifacts +++ b/tests/e2e/scenarios/bare-metal/dump-artifacts @@ -54,8 +54,14 @@ for vm in 0 1 2; do scp -o StrictHostKeyChecking=accept-new -i ${REPO_ROOT}/.build/.ssh/id_ed25519 root@${ip}:/var/log/etcd* ${ARTIFACTS}/vms/${vm_name}/logs/ || true scp -o StrictHostKeyChecking=accept-new -i ${REPO_ROOT}/.build/.ssh/id_ed25519 root@${ip}:/var/log/kube* ${ARTIFACTS}/vms/${vm_name}/logs/ || true scp -o StrictHostKeyChecking=accept-new -i ${REPO_ROOT}/.build/.ssh/id_ed25519 root@${ip}:/etc/kubernetes/manifests/* ${ARTIFACTS}/vms/${vm_name}/manifests/ || true + ssh -o StrictHostKeyChecking=accept-new -i ${REPO_ROOT}/.build/.ssh/id_ed25519 root@${ip} journalctl --no-pager -u kubelet 2>&1 > ${ARTIFACTS}/vms/${vm_name}/logs/kubelet.service || true ssh -o StrictHostKeyChecking=accept-new -i ${REPO_ROOT}/.build/.ssh/id_ed25519 root@${ip} journalctl --no-pager -u kops-configuration 2>&1 > ${ARTIFACTS}/vms/${vm_name}/logs/kops-configuration.service || true + + ssh -o StrictHostKeyChecking=accept-new -i ${REPO_ROOT}/.build/.ssh/id_ed25519 root@${ip} ip route 2>&1 > ${ARTIFACTS}/vms/${vm_name}/ip-route || true + ssh -o StrictHostKeyChecking=accept-new -i ${REPO_ROOT}/.build/.ssh/id_ed25519 root@${ip} ip addr 2>&1 > ${ARTIFACTS}/vms/${vm_name}/ip-addr || true + ssh -o StrictHostKeyChecking=accept-new -i ${REPO_ROOT}/.build/.ssh/id_ed25519 root@${ip} iptables --list-rules 2>&1 > ${ARTIFACTS}/vms/${vm_name}/iptables-rules || true + ssh -o StrictHostKeyChecking=accept-new -i ${REPO_ROOT}/.build/.ssh/id_ed25519 root@${ip} iptables -t nat --list-rules 2>&1 > ${ARTIFACTS}/vms/${vm_name}/iptables-nat-rules || true done # Dump the pod logs for all the pods in system namespaces