Merge pull request #18067 from trociny/wip-qa-pg_num

qa/workunits/rbd: pool create may fail for small cluster

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
Jason Dillaman 2017-10-02 08:20:09 -04:00 committed by GitHub
commit a2702d70dc
4 changed files with 5 additions and 5 deletions

View File

@ -290,7 +290,7 @@ test_pool_image_args() {
remove_images
ceph osd pool delete test test --yes-i-really-really-mean-it || true
ceph osd pool create test 100
ceph osd pool create test 32
rbd pool init test
truncate -s 1 /tmp/empty /tmp/empty@snap

View File

@ -4,9 +4,9 @@ set -ex
IMAGE_FEATURES="layering,exclusive-lock,object-map,fast-diff"
create_pools() {
ceph osd pool create images 100
ceph osd pool create images 32
rbd pool init images
ceph osd pool create volumes 100
ceph osd pool create volumes 32
rbd pool init volumes
}

View File

@ -55,7 +55,7 @@ setup()
TEMPDIR=`mktemp -d`
DATA=${TEMPDIR}/data
dd if=/dev/urandom of=${DATA} bs=1M count=${SIZE}
ceph osd pool create ${POOL} 64 64
ceph osd pool create ${POOL} 32
rbd --dest-pool ${POOL} --no-progress import ${DATA} ${IMAGE}
}

View File

@ -1,7 +1,7 @@
#!/bin/sh -ex
POOL_NAME=rbd_test_validate_pool
PG_NUM=100
PG_NUM=32
tear_down () {
ceph osd pool delete $POOL_NAME $POOL_NAME --yes-i-really-really-mean-it || true