mirror of
https://github.com/ceph/ceph
synced 2025-01-21 02:31:19 +00:00
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:
parent
01aebfc6a0
commit
f473bce7ad
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user