From 0dfc787ef58fe9aa8177742f7c6e294e3b5d4b89 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Thu, 19 May 2016 13:48:22 -0400 Subject: [PATCH] qa/workunits/rbd: record rbd CLI debug messages during mirror stress The debug messages from 'rbd bench-write' and 'rbd snap create', in addition to the existing debug messages from rbd-mirror, make it possible to determine the source of any image inconsistency. Signed-off-by: Jason Dillaman (cherry picked from commit 714ed5e64e65fed9ac886537becf3a85ae6ae7fd) --- qa/workunits/rbd/rbd_mirror_stress.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qa/workunits/rbd/rbd_mirror_stress.sh b/qa/workunits/rbd/rbd_mirror_stress.sh index b9f130215904d..0fe5af994fd73 100755 --- a/qa/workunits/rbd/rbd_mirror_stress.sh +++ b/qa/workunits/rbd/rbd_mirror_stress.sh @@ -325,7 +325,8 @@ write_image() local duration=$(($RANDOM % 35 + 15)) timeout ${duration}s rbd --cluster ${cluster} -p ${POOL} bench-write \ - ${image} --io-size 4096 --io-threads 8 --io-total 10G --io-pattern rand || true + ${image} --io-size 4096 --io-threads 8 --io-total 10G --io-pattern rand \ + --debug-rbd=20 --debug-journaler=20 2> ${TEMPDIR}/rbd-bench-write.log || true } create_snap() @@ -334,7 +335,8 @@ create_snap() local image=$2 local snap_name=$3 - rbd --cluster ${cluster} -p ${POOL} snap create ${image}@${snap_name} + rbd --cluster ${cluster} -p ${POOL} snap create ${image}@${snap_name} \ + --debug-rbd=20 --debug-journaler=20 2> ${TEMPDIR}/rbd-snap-create.log } wait_for_snap() -- 2.39.5