From 0070ee2f4841da716ebe5427f53761ab496ceb25 Mon Sep 17 00:00:00 2001 From: Lucian Petrut Date: Fri, 10 Feb 2023 15:07:12 +0200 Subject: [PATCH] windows: collect additional information In some cases, the OSDs seem to crash while running Windows tests. In order to be able to investigate the issue, we'll need to collect additional information. This commit fetches the following: * the entire journal since the last boot * ceph logs * available memory at the end of the job Signed-off-by: Lucian Petrut --- scripts/ceph-windows/run_tests | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/ceph-windows/run_tests b/scripts/ceph-windows/run_tests index 56f16a9d..8f8c07a6 100644 --- a/scripts/ceph-windows/run_tests +++ b/scripts/ceph-windows/run_tests @@ -49,8 +49,19 @@ ssh_exec powershell.exe Start-Service -Name ceph-rbd function collect_artifacts() { rm -rf $WORKSPACE/artifacts mkdir -p $WORKSPACE/artifacts + mkdir -p $WORKSPACE/artifacts/cluster + mkdir -p $WORKSPACE/artifacts/cluster/ceph_logs SSH_USER=$UBUNTU_SSH_USER SSH_ADDRESS=$UBUNTU_VM_IP ssh_exec ./ceph/build/bin/ceph status + SSH_USER=$UBUNTU_SSH_USER SSH_ADDRESS=$UBUNTU_VM_IP ssh_exec free -h + + SSH_USER=$UBUNTU_SSH_USER SSH_ADDRESS=$UBUNTU_VM_IP ssh_exec \ + "journalctl -b > /tmp/journal" + SSH_USER=$UBUNTU_SSH_USER SSH_ADDRESS=$UBUNTU_VM_IP scp_download \ + /tmp/journal $WORKSPACE/artifacts/cluster/journal + + SSH_USER=$UBUNTU_SSH_USER SSH_ADDRESS=$UBUNTU_VM_IP scp_download \ + './ceph-vstart/out/*.log' $WORKSPACE/artifacts/cluster/ceph_logs/ scp_download /workspace/test_results $WORKSPACE/artifacts/test_results if [[ "$INCLUDE_USERSPACE_CRASH_DUMPS" = true ]]; then -- 2.39.5