summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Mick <dan.mick@inktank.com>2012-11-15 22:49:16 -0800
committerDan Mick <dan.mick@inktank.com>2012-11-26 21:38:11 -0800
commit39180430b9be14a94502b7e5bef30dd582ce3ad8 (patch)
tree438dd3f419d77aabff6f39dd767309a99f2ac4c4
parentc219698149c2fe4d2539f0bc1e2009b937aa4250 (diff)
downloadceph-39180430b9be14a94502b7e5bef30dd582ce3ad8.tar.gz
rbd: tests for copy with explicit/implicit pool names
Validate change to not assume dest pool == src pool Signed-off-by: Dan Mick <dan.mick@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
-rwxr-xr-xqa/workunits/rbd/copy.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/qa/workunits/rbd/copy.sh b/qa/workunits/rbd/copy.sh
index 7571f50471d..f38fe21a293 100755
--- a/qa/workunits/rbd/copy.sh
+++ b/qa/workunits/rbd/copy.sh
@@ -254,8 +254,22 @@ test_pool_image_args() {
rbd import --pool test /tmp/empty
rbd ls test | grep -q empty
+ # copy with no explicit pool goes to pool rbd
+ rbd copy test/test9 test10
+ rbd ls test | grep -qv test10
+ rbd ls | grep -q test10
+ rbd copy test/test9 test/test10
+ rbd ls test | grep -q test10
+ rbd copy --pool test test10 --dest-pool test test11
+ rbd ls test | grep -q test11
+ rbd copy --dest-pool rbd --pool test test11 test12
+ rbd ls | grep test12
+ rbd ls test | grep -qv test12
+
rm -f /tmp/empty
ceph osd pool delete test
+ ceph osd pool delete rbd
+ ceph osd pool create rbd 100
}
test_pool_image_args