From: Joao Eduardo Luis Date: Fri, 20 Jun 2014 15:25:35 +0000 (+0100) Subject: qa/workunit: cephtool: test mds newfs and add_data_pool with ec pools X-Git-Tag: v0.82~1^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=378b5add221c55d3480969897f7e8cf7b8d28f76;p=ceph.git qa/workunit: cephtool: test mds newfs and add_data_pool with ec pools Signed-off-by: Joao Eduardo Luis --- diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index dc99a086da6c1..708a650a18a43 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -86,7 +86,6 @@ function expect_config_value() fi } - # Test SI units during injectargs and 'config set' # We only aim at testing the units are parsed accordingly # and don't intend to test whether the options being set @@ -315,6 +314,24 @@ ceph mds set allow_new_snaps false ceph mds set allow_new_snaps no expect_false ceph mds set allow_new_snaps taco +# we should never be able to add EC pools as data or metadata pools +# create an ec-pool +ceph osd pool create mds-ec-pool 10 10 erasure +set +e +ceph mds add_data_pool mds-ec-pool 2>$TMPFILE +check_response 'erasure-code' $? 22 +set -e +poolnum=$(ceph osd dump | grep 'pool.*mds-ec-pool' | awk '{print $2;}') +set +e +ceph mds newfs 0 $poolnum --yes-i-really-mean-it 2>$TMPFILE +check_response 'erasure-code' $? 22 +ceph mds newfs $poolnum 1 --yes-i-really-mean-it 2>$TMPFILE +check_response 'erasure-code' $? 22 +ceph mds newfs $poolnum $poolnum --yes-i-really-mean-it 2>$TMPFILE +check_response 'erasure-code' $? 22 +set -e +ceph osd pool delete mds-ec-pool mds-ec-pool --yes-i-really-really-mean-it + ceph mds stat # ceph mds tell mds.a getmap # ceph mds rm