qa/workunits/rbd/copy.sh: explicitly choose the image format

The rbd CLI now utilizes the rbd_default_format configuration
setting, therefore the copy test now needs to tell rbd which image
format it is expecting to create.

Fixes: #10961
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
Jason Dillaman 2015-02-26 12:00:41 -05:00
parent 32fd355086
commit 3ec52dae63

View File

@ -108,8 +108,8 @@ test_ls() {
echo "testing ls..."
remove_images
rbd create -s 1 test1
rbd create -s 1 test2
rbd create --image-format 1 -s 1 test1
rbd create --image-format 1 -s 1 test2
rbd ls | grep test1
rbd ls | grep test2
rbd ls | wc -l | grep 2
@ -120,8 +120,8 @@ test_ls() {
rbd rm test1
rbd rm test2
rbd create --new-format -s 1 test1
rbd create --new-format -s 1 test2
rbd create --image-format 2 -s 1 test1
rbd create --image-format 2 -s 1 test2
rbd ls | grep test1
rbd ls | grep test2
rbd ls | wc -l | grep 2
@ -132,7 +132,7 @@ test_ls() {
rbd rm test2
rbd create --new-format -s 1 test1
rbd create -s 1 test2
rbd create --image-format 1 -s 1 test2
rbd ls | grep test1
rbd ls | grep test2
rbd ls | wc -l | grep 2
@ -177,7 +177,7 @@ test_remove() {
# by removing some objects manually.
# remove with header missing (old format)
rbd create -s 1 test1
rbd create --image-format 1 -s 1 test1
rados rm -p rbd test1.rbd
rbd rm test1
rbd ls | wc -l | grep "^0$"