X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fqa%2Fworkunits%2Fmgr%2Ftest_localpool.sh;fp=src%2Fceph%2Fqa%2Fworkunits%2Fmgr%2Ftest_localpool.sh;h=c5a56a6d59e604181ede4495c6feb5318ea3700f;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/qa/workunits/mgr/test_localpool.sh b/src/ceph/qa/workunits/mgr/test_localpool.sh new file mode 100755 index 0000000..c5a56a6 --- /dev/null +++ b/src/ceph/qa/workunits/mgr/test_localpool.sh @@ -0,0 +1,21 @@ +#!/bin/sh -ex + +ceph config-key set mgr/localpool/subtree host +ceph config-key set mgr/localpool/failure_domain osd +ceph mgr module enable localpool + +while ! ceph osd pool ls | grep '^by-host-' +do + sleep 5 +done + +ceph mgr module disable localpool +for p in `ceph osd pool ls | grep '^by-host-'` +do + ceph osd pool rm $p $p --yes-i-really-really-mean-it +done + +ceph config-key rm mgr/localpool/subtree +ceph config-key rm mgr/localpool/failure_domain + +echo OK