]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: pool create will not fail if the type differs 979/head
authorLoic Dachary <loic@dachary.org>
Fri, 20 Dec 2013 21:00:31 +0000 (22:00 +0100)
committerLoic Dachary <loic@dachary.org>
Fri, 20 Dec 2013 21:00:31 +0000 (22:00 +0100)
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>
qa/workunits/cephtool/test.sh

index 74a58652e77fc8091555a2ecdf0a7111e49b2f90..cf04c56cb46dd686cbdde3a0c412796a0b050aca 100755 (executable)
@@ -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