From 1e238e6f95433f3d5fb64a49126b91e53a3eedb3 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Fri, 20 Dec 2013 22:00:31 +0100 Subject: [PATCH] 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 --- qa/workunits/cephtool/test.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index 74a58652e77..cf04c56cb46 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