]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd: record rbd CLI debug messages during mirror stress
authorJason Dillaman <dillaman@redhat.com>
Thu, 19 May 2016 17:48:22 +0000 (13:48 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 23 May 2016 12:32:57 +0000 (08:32 -0400)
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 <dillaman@redhat.com>
(cherry picked from commit 714ed5e64e65fed9ac886537becf3a85ae6ae7fd)

qa/workunits/rbd/rbd_mirror_stress.sh

index b9f130215904d1625bd24bed22c9eefaf43781f2..0fe5af994fd73771ac65a57713f6817ef5241768 100755 (executable)
@@ -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()