]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
mon: destroy and recreate rbd pool if necessary 1043/head
authorSébastien Han <seb@redhat.com>
Thu, 20 Oct 2016 16:19:19 +0000 (18:19 +0200)
committerSébastien Han <seb@redhat.com>
Fri, 21 Oct 2016 23:31:15 +0000 (01:31 +0200)
commit1e6c418a65368d4ef2e1f758dec5475e95105765
tree2cda76e34c26eea9ecde304de63b56387fc43946
parentf7680b99b216a85d3874ab2e741f0fecea63af61
mon: destroy and recreate rbd pool if necessary

Users reported that pool_default_pg_num is not honoured for the default
pool 'rbd'. So now we check the pg num value for the RBD pool and if it
does not match pool_default_pg_num then we delete and recreate it.
We also make sure the pool is empty first, just in case someone changed
the value manually and didn't reflect the change in ceph-ansible.

The only issue with this patch is that the pool ID will not be 0 anymore
but more likely 1.

Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-mon/tasks/ceph_keys.yml
roles/ceph-mon/tasks/rbd_pool.yml [new file with mode: 0644]