ceph-volume lvm.strategies fix a bug where incorrect template was used

The template wouldn't render the total OSDs and the removed section was
repeated

Signed-off-by: Alfredo Deza <adeza@redhat.com>
This commit is contained in:
Alfredo Deza 2018-08-08 15:40:24 -04:00
parent 01aebfc6a0
commit f473bce7ad

View File

@ -135,15 +135,10 @@ class MixedType(object):
db_size = str(disk.Size(b=(vg_extents['sizes'])))
string = ""
string += templates.ssd_volume_group.format(
targets='block.db',
total_lv_size=str(self.total_ssd_size),
total_lvs=vg_extents['parts'],
block_lv_size=db_size,
block_db_devices=', '.join([ssd['path'] for ssd in self.ssds]),
lv_size=str(disk.Size(b=(vg_extents['sizes']))),
string += templates.total_osds.format(
total_osds=len(self.hdds)
)
string += templates.ssd_volume_group.format(
target='block.db',
total_lv_size=str(self.total_ssd_size),