]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: respect the value of bluestore_block_db_size from ceph.conf 41713/head
authorAndrew Schoen <aschoen@redhat.com>
Mon, 24 May 2021 17:19:38 +0000 (12:19 -0500)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Sun, 6 Jun 2021 07:08:44 +0000 (14:08 +0700)
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>
(cherry picked from commit cd70a6f583a651e71b5e1b4cf381467cb85039f6)

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)