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 <loic@dachary.org>
This commit is contained in:
Loic Dachary 2013-12-20 22:00:31 +01:00
parent 98a1525307
commit 1e238e6f95

View File

@ -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