]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-config: calculate num_osds for the lvm batch scenario
authorAndrew Schoen <aschoen@redhat.com>
Tue, 18 Sep 2018 20:12:59 +0000 (15:12 -0500)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Thu, 20 Sep 2018 15:41:52 +0000 (15:41 +0000)
commit16ccac83fe27c63be1811a44d43c8b1df417e57e
tree317862ea7c68870195008af4227ef3a79cb512af
parent6d6fd514e0cbfb8283c349353582966938cd1c10
ceph-config: calculate num_osds for the lvm batch scenario

For now our best guess is to count the number of devices and multiply
by osds_per_device. Ideally we'd like to run ceph-volume lvm batch
--report and get the number of OSDs that way, but currently we need
a ceph.conf in place already before we can do that. There is a tracker
ticket that would allow os to get around the need for a ceph.conf:
http://tracker.ceph.com/issues/36088

Fixes: https://github.com/ceph/ceph-ansible/issues/3135
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/ceph-config/tasks/main.yml