]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd: force v2 image format for namespace test 24512/head
authorMykola Golub <mgolub@suse.com>
Wed, 10 Oct 2018 07:46:14 +0000 (10:46 +0300)
committerMykola Golub <mgolub@suse.com>
Wed, 10 Oct 2018 07:50:30 +0000 (10:50 +0300)
While here, fix test_locking too.

Signed-off-by: Mykola Golub <mgolub@suse.com>
qa/workunits/rbd/cli_generic.sh

index 3f22893648087e1e7225380fc1b11c501b5d644c..f85c61d6ee95e873cf811657c3294455dbb3bb6f 100755 (executable)
@@ -277,7 +277,7 @@ test_locking() {
     echo "testing locking..."
     remove_images
 
-    rbd create -s 1 test1
+    rbd create $RBD_CREATE_ARGS -s 1 test1
     rbd lock list test1 | wc -l | grep '^0$'
     rbd lock add test1 id
     rbd lock list test1 | grep ' 1 '
@@ -633,7 +633,7 @@ test_namespace() {
 
     expect_fail rbd namespace remove --pool rbd missing
 
-    rbd create rbd/test1/image1 --size 1G
+    rbd create $RBD_CREATE_ARGS --size 1G rbd/test1/image1
 
     # default test1 ns to test2 ns clone
     rbd bench --io-type write --io-pattern rand --io-total 32M --io-size 4K rbd/test1/image1
@@ -644,7 +644,7 @@ test_namespace() {
     rbd rm rbd/test2/image1
 
     # default ns to test1 ns clone
-    rbd create rbd/image2 --size 1G
+    rbd create $RBD_CREATE_ARGS --size 1G rbd/image2
     rbd bench --io-type write --io-pattern rand --io-total 32M --io-size 4K rbd/image2
     rbd snap create rbd/image2@1
     rbd clone --rbd-default-clone-format 2 rbd/image2@1 rbd/test2/image2
@@ -654,7 +654,7 @@ test_namespace() {
     rbd rm rbd/test2/image2
     rbd rm rbd/image2
 
-    rbd create --namespace test1 image2 --size 1G
+    rbd create $RBD_CREATE_ARGS --size 1G --namespace test1 image2
     expect_fail rbd namespace remove --pool rbd test1
 
     rbd group create rbd/test1/group1