]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
windows: collect additional information 2110/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 10 Feb 2023 13:07:12 +0000 (15:07 +0200)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 10 Feb 2023 13:12:47 +0000 (15:12 +0200)
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 <lpetrut@cloudbasesolutions.com>
scripts/ceph-windows/run_tests

index 56f16a9df7af5caf759b87df2dfee0d81786d9e8..8f8c07a629a283e80b4227279a7b924befb7850c 100644 (file)
@@ -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