Use default value if mon_lv_size not set

mon_lv_size was not migrated during older upgrades. Previous releases
used a default value.

This change modifies puppet to use the default value in the event of
no value is found.

Change-Id: I1d2426beb73e7a52b6eef02974d40d6cfa479a51
Story: 2002886
Task: 22847
Signed-off-by: Jack Ding <jack.ding@windriver.com>
This commit is contained in:
David Sullivan 2018-04-25 11:06:30 -04:00 committed by Jack Ding
parent a0171c678c
commit 4c8d0d9bcb
1 changed files with 3 additions and 1 deletions

View File

@ -196,9 +196,11 @@ class CephPuppet(openstack.OpenstackBasePuppet):
def _get_ceph_mon_config(self, host):
ceph_mon = self._get_host_ceph_mon(host)
mon_lv_size = None
if ceph_mon:
mon_lv_size = ceph_mon.ceph_mon_gib
else:
if mon_lv_size is None:
mon_lv_size = constants.SB_CEPH_MON_GIB
return {