]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test_lock_fence.sh, rbdrw.py: rbd lock/fence test
authorDan Mick <dan.mick@inktank.com>
Mon, 26 Nov 2012 21:43:13 +0000 (13:43 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Tue, 26 Feb 2013 02:17:40 +0000 (18:17 -0800)
commitccdafa067afed74b209537ae45ff8b49bb5fab3b
treeb2d6da7da2070959c81e905c5837094ad27e91b0
parent1f1427415c24ce9943d0f18cd566d305832bf316
test_lock_fence.sh, rbdrw.py: rbd lock/fence test

qa/workunits/rbd/test_lock_fence.sh runs using test/rbdrw.py

rbdrw.py creates an image, locks it, and runs an I/O loop;
test_lock_fence.sh runs it, waits, and then blacklists that client,
which causes rbdrw.py to get ESHUTDOWN on operations thereafter.
Currently doesn't work with rbd caching enabled.

rbd.py gets new exception type for ESHUTDOWN

Fixes: #3190
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
qa/workunits/rbd/test_lock_fence.sh [new file with mode: 0755]
src/pybind/rbd.py
src/test/librbd/rbdrw.py [new file with mode: 0755]