]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rbd: pool create may fail for small cluster 18067/head
authorMykola Golub <to.my.trociny@gmail.com>
Sat, 30 Sep 2017 17:56:48 +0000 (19:56 +0200)
committerMykola Golub <to.my.trociny@gmail.com>
Sun, 1 Oct 2017 14:36:17 +0000 (16:36 +0200)
ceph osd pool create test 100
Error ERANGE:  pg_num 100 size 3 would mean 648 total pgs, which exceeds max 600 (mon_max_pg_per_osd 200 * num_in_osds 3)

Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
qa/workunits/rbd/cli_generic.sh
qa/workunits/rbd/permissions.sh
qa/workunits/rbd/rbd-ggate.sh
qa/workunits/rbd/verify_pool.sh

index c409c8c5c045a8d85292dabc22a438d53c150ecf..5318f507c15c7b248e4f13a7200e0d70e987e834 100755 (executable)
@@ -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
 
index d5d2ee98e195a1209ca68fbd840554153e8e82c3..8e180747805caf92b49cc3f301529cc3bc5085fa 100755 (executable)
@@ -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
 }
 
index 536070a2f9627c13d0689217e2da50dbc884a370..97a7d89c4ec9ee29643cff024ead5817e05bfefd 100755 (executable)
@@ -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}
 }
 
index f008fb6b3cfb34a0a1193c349278db7d66b7a501..569b65a6d34b5017198a3301c4215cd33e46655a 100755 (executable)
@@ -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