]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: use correct extents when using db-devices and >1 osds_per_device 32874/head
authorFabian Niepelt <f.niepelt@mittwald.de>
Wed, 11 Dec 2019 13:19:14 +0000 (14:19 +0100)
committerShyukri Shyukriev <shshyukriev@suse.com>
Sat, 8 Feb 2020 20:33:43 +0000 (22:33 +0200)
commit34374469cb8a697979a090e0c8d06a39e60a1fa0
tree11634a0828e13f689844dd1be78e4e49778bb0b8
parente28dea68b07adb8402e164bbe1ba959dc1dfef4b
ceph-volume: use correct extents when using db-devices and >1 osds_per_device

Actual data size depending on osds_per_device needs to be calculated here. Otherwise, if osds_per_device is greater than 1, ceph-volume will allocate 100% of the device to the first osd and then fail to create the LV for the second because the volume group is already full.

Fixes: https://tracker.ceph.com/issues/39442
Signed-off-by: Fabian Niepelt <f.niepelt@mittwald.de>
(cherry picked from commit ecde6cd619605003706f545b0b5ad4e2e8932f28)

 Conflicts:
src/ceph-volume/ceph_volume/devices/lvm/strategies/bluestore.py

I've removed `data_uuid` since it's not in nautilus already
src/ceph-volume/ceph_volume/devices/lvm/strategies/bluestore.py