summaryrefslogtreecommitdiffstats
path: root/src/ceph/qa/workunits/mgr/test_localpool.sh
blob: c5a56a6d59e604181ede4495c6feb5318ea3700f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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