From 4c8d0d9bcb056f84682e0f92cfa3a776802244b4 Mon Sep 17 00:00:00 2001 From: David Sullivan Date: Wed, 25 Apr 2018 11:06:30 -0400 Subject: [PATCH] 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 --- sysinv/sysinv/sysinv/sysinv/puppet/ceph.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sysinv/sysinv/sysinv/sysinv/puppet/ceph.py b/sysinv/sysinv/sysinv/sysinv/puppet/ceph.py index 056b11b9f5..76cfd43363 100644 --- a/sysinv/sysinv/sysinv/sysinv/puppet/ceph.py +++ b/sysinv/sysinv/sysinv/sysinv/puppet/ceph.py @@ -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 {