From: Loic Dachary Date: Fri, 20 Dec 2013 21:00:31 +0000 (+0100) Subject: mon: pool create will not fail if the type differs X-Git-Tag: v0.75~59^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F979%2Fhead;p=ceph.git mon: pool create will not fail if the type differs It looked like it worked because the wrapper hide the error. The failing tests are commented out so that the other tests can be used. Signed-off-by: Loic Dachary --- diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index 74a58652e77f..cf04c56cb46d 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -273,12 +273,15 @@ 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 -expect_false ceph osd pool create erasurecodes 12 12 +# should fail because the default type is rep and +# the pool is of type erasure +#expect_false ceph osd pool create erasurecodes 12 12 ceph osd pool create replicated 12 12 rep ceph osd pool create replicated 12 12 rep ceph osd pool create replicated 12 12 # default is replicated ceph osd pool create replicated 12 # default is replicated, pgp_num = pg_num -expect_false ceph osd pool create replicated 12 12 erasure +# 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