]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: remove osd pool create erasure tests
authorLoic Dachary <loic@dachary.org>
Thu, 26 Dec 2013 07:39:52 +0000 (08:39 +0100)
committerLoic Dachary <loic@dachary.org>
Thu, 26 Dec 2013 09:01:19 +0000 (10:01 +0100)
Creating an erasure pool will crash the OSD because OSD::_make_pg
asserts if the type is not replicated. The tests related to erasure
coded pool creation are removed from qa/workunits/cephtool/test.sh.

The osd-create-pool.sh unit test covers the cases removed from test.sh
more extensively. The intent is to check the interactions with the MON
only, therefore it does not run an OSD and the absence of erasure code
placement group backend implementation is not an issue.

Signed-off-by: Loic Dachary <loic@dachary.org>
qa/workunits/cephtool/test.sh

index d0c36fb9259fc9d41851bde50814ca353f56649f..49219aad11837a21981622c2d8383aaeeb30f89b 100755 (executable)
@@ -271,20 +271,13 @@ ceph osd pool rename data2 data3
 ceph osd lspools | grep data3
 ceph osd pool delete data3 data3 --yes-i-really-really-mean-it
 
-ceph osd pool create erasurecodes 12 12 erasure
-ceph osd pool create erasurecodes 12 12 erasure
-# should fail because the default type is replicated and 
-# the pool is of type erasure
-expect_false ceph osd pool create erasurecodes 12 12
 ceph osd pool create replicated 12 12 replicated
 ceph osd pool create replicated 12 12 replicated
 ceph osd pool create replicated 12 12 # default is replicated
 ceph osd pool create replicated 12    # default is replicated, pgp_num = pg_num
 # should fail because the type is not the same
 expect_false ceph osd pool create replicated 12 12 erasure
-ceph osd lspools | grep erasurecodes
 ceph osd lspools | grep replicated
-ceph osd pool delete erasurecodes erasurecodes --yes-i-really-really-mean-it
 ceph osd pool delete replicated replicated --yes-i-really-really-mean-it
 
 ceph osd stat | grep up,