]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: tolerate <=1% short-fall on requested db/wal size
authorRaimund Sacherer <rsachere@redhat.com>
Tue, 12 May 2026 09:05:53 +0000 (11:05 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Tue, 26 May 2026 09:24:51 +0000 (09:24 +0000)
commitcdc06171ff97e595aa40012aeae8329fd634b049
tree25ff98bcd5d1c780e38df525e6b8854806d6f013
parent5ba9ef130797b0499cad91522fc2f220673e5bd4
ceph-volume: tolerate <=1% short-fall on requested db/wal size

When requested_size (e.g. 1 GiB) slightly exceeds abs_size (e.g.
1023.3 MiB lost to PE alignment), get_physical_fast_allocs() called
exit(1) and aborted the whole batch.

if the short-fall is within 1%, scale down to abs_size
with an info log instead of aborting. Anything larger still hits the
existing error path.

Needs review: confirm 1% is the right threshold (maybe a lower percentage is
sufficient) and that no caller assumes abs_size == requested_size after this branch.

Signed-off-by: Raimund Sacherer <rsachere@redhat.com>
(cherry picked from commit 5f8a4de52a87a7a0aebaf787f86fa922673ba1f9)
src/ceph-volume/ceph_volume/devices/lvm/batch.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_batch.py