Signed-off-by: Vallari Agrawal <vallari.agrawal@ibm.com>
- nvmeof/fio_test.sh --random_devices 200
env:
RBD_POOL: mypool
+ NVMEOF_GROUP: mygroup0
IOSTAT_INTERVAL: '10'
RUNTIME: '1800'
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
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!"