]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: respect the value of bluestore_block_db_size from ceph.conf 41506/head
authorAndrew Schoen <aschoen@redhat.com>
Mon, 24 May 2021 17:19:38 +0000 (12:19 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 24 May 2021 18:22:31 +0000 (13:22 -0500)
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 <aschoen@redhat.com>
src/ceph-volume/ceph_volume/devices/lvm/batch.py

index cdb68953173cf55c39c1c24109612192b8d60f7b..114730adec38652205fc72454aab3fef1cbbdfc6 100644 (file)
@@ -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)