]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix fast device alloc size on mulitple device
authorArthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
Tue, 14 Jun 2022 09:02:05 +0000 (11:02 +0200)
committerArthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
Fri, 29 Jul 2022 17:50:56 +0000 (19:50 +0200)
commit99639c3a38b197a38d1ff0ba33d5ea8f1879108a
treef5c53886981e375e4c6fd14f0f14e4690f16b7e7
parenta2a8495d13f8f7d03f20934dfe7ca8c1d3f25503
ceph-volume: fix fast device alloc size on mulitple device

The size computed by get_physical_fast_allocs() was wrong when the
function had multiple devices to treat.

For instance if there is 4 OSDs and 2 fast devices of each 10G while
allocating 2 slots per fast devvices. The behavior before was that each
slot would be 2.5G meaning that both fast devices would half full. The
behavior now is that each slot will take 5G so that the fast devices
would be full.

Fixes: https://tracker.ceph.com/issues/56031
Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
(cherry picked from commit d0f9e93914e2b7feac41a634311d74c146c8868b)
src/ceph-volume/ceph_volume/devices/lvm/batch.py
src/ceph-volume/ceph_volume/tests/conftest.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_batch.py