]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/workunits/nvmeof/fio_test: Log cluster status if fio fails
authorVallari Agrawal <vallari.agrawal@ibm.com>
Tue, 11 Feb 2025 11:45:42 +0000 (17:15 +0530)
committerVallari Agrawal <vallari.agrawal@ibm.com>
Wed, 19 Feb 2025 11:35:15 +0000 (17:05 +0530)
Signed-off-by: Vallari Agrawal <vallari.agrawal@ibm.com>
qa/suites/nvmeof/thrash/workloads/fio.yaml
qa/workunits/nvmeof/fio_test.sh

index f9a0d0ebde50d9b4e7c56341a560639f391d6131..f17d05f04d8cfa9569efbce42d47c922dd7e9476 100644 (file)
@@ -7,5 +7,6 @@ tasks:
         - nvmeof/fio_test.sh --random_devices 200
     env:
       RBD_POOL: mypool
+      NVMEOF_GROUP: mygroup0
       IOSTAT_INTERVAL: '10'
       RUNTIME: '1800'
index 7334dad3d53abb900b2fed8cd6ebdc8b8e257135..b69b3403c984173b6cb1021cba2ae93d32a48aa3 100755 (executable)
@@ -68,6 +68,18 @@ verify_fatal=1
 direct=1
 EOF
 
+status_log() {
+    POOL="${RBD_POOL:-mypool}"
+    GROUP="${NVMEOF_GROUP:-mygroup0}"
+    ceph -s
+    ceph host ls
+    ceph orch ls 
+    ceph orch ps
+    ceph health detail
+    ceph nvme-gw show $POOL $GROUP
+}
+
+
 echo "[nvmeof.fio] starting fio test..."
 
 if [ -n "$IOSTAT_INTERVAL" ]; then
@@ -79,6 +91,13 @@ if [ "$rbd_iostat" = true  ]; then
     timeout 20 rbd perf image iostat $RBD_POOL --iterations $iterations &
 fi
 fio --showcmd $fio_file
-sudo fio $fio_file 
+
+set +e 
+sudo fio $fio_file
+if [ $? -ne 0 ]; then
+    status_log
+    exit 1
+fi
+
 
 echo "[nvmeof.fio] fio test successful!"