From 7f59a25c373eb92f05f55b811a0cd7a5727ab507 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Mon, 24 May 2021 12:19:38 -0500 Subject: [PATCH] ceph-volume: respect the value of bluestore_block_db_size from ceph.conf If --block-db-size is not given args.block_db_size is set to None, so we should check for it's value in ceph.conf Resolves: RHBZ#1962744 Fixes: https://tracker.ceph.com/issues/50958 Signed-off-by: Andrew Schoen (cherry picked from commit cd70a6f583a651e71b5e1b4cf381467cb85039f6) --- src/ceph-volume/ceph_volume/devices/lvm/batch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph-volume/ceph_volume/devices/lvm/batch.py b/src/ceph-volume/ceph_volume/devices/lvm/batch.py index cdb68953173cf..114730adec386 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/batch.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/batch.py @@ -106,7 +106,7 @@ def get_physical_fast_allocs(devices, type_, fast_slots_per_device, new_osds, ar requested_slots = fast_slots_per_device requested_size = getattr(args, '{}_size'.format(type_), 0) - if requested_size == 0: + if not requested_size or requested_size == 0: # no size argument was specified, check ceph.conf get_size_fct = getattr(prepare, 'get_{}_size'.format(type_)) requested_size = get_size_fct(lv_format=False) -- 2.39.5