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)
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)