mirror of
https://github.com/ceph/ceph
synced 2025-02-21 01:47:25 +00:00
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:
parent
32fd355086
commit
3ec52dae63
@ -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$"
|
||||
|
Loading…
Reference in New Issue
Block a user