Skip to content

Commit

Permalink
ceph-volume lvm.strategies update bluestore use of Size
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 75e9729)
  • Loading branch information
Alfredo Deza authored and andrewschoen committed Aug 28, 2018
1 parent b1f8547 commit c614bdb
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -26,7 +26,7 @@ def report_json(self):

def report_pretty(self):
string = ""
string += templates.osd_header.format(
string += templates.total_osds.format(
total_osds=len(self.hdds) or len(self.ssds) * 2
)
string += templates.osd_component_titles
Expand Down Expand Up @@ -129,7 +129,7 @@ def report_pretty(self):
db_size = str(disk.Size(b=(vg_extents['sizes'])))

string = ""
string += templates.osd_header.format(
string += templates.ssd_volume_group.format(
targets='block.db',
total_lv_size=str(self.total_ssd_size),
total_lvs=vg_extents['parts'],
Expand Down Expand Up @@ -229,7 +229,7 @@ def validate(self):
# the minimum alllowed for block.db
self.total_ssd_size = disk.Size(b=0)
for ssd in self.ssds:
self.total_ssd_size + disk.Size(b=ssd['size'])
self.total_ssd_size += disk.Size(b=ssd['size'])

self.block_db_size = self.total_ssd_size / self.db_lvs
self.vg_extents = lvm.sizing(self.total_ssd_size.b, parts=self.db_lvs)
Expand Down

0 comments on commit c614bdb

Please sign in to comment.