]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: fix bluestore strategy json reporting and type
authorAndrew Schoen <aschoen@redhat.com>
Fri, 5 Oct 2018 15:38:11 +0000 (10:38 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 10 Oct 2018 19:30:28 +0000 (15:30 -0400)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
src/ceph-volume/ceph_volume/devices/lvm/strategies/bluestore.py

index 1bdb713dd53f056d9dc8c91fe440f51dcf59e5d6..33b5b547e30212d4d6da2cfcb64520108635a3e6 100644 (file)
@@ -26,7 +26,7 @@ class SingleType(object):
 
     @staticmethod
     def type():
-        return "filestore.MixedType"
+        return "bluestore.SingleType"
 
     @property
     def total_osds(self):
@@ -209,11 +209,11 @@ class MixedType(object):
             # there isn't a common vg, so a new one must be created with all
             # the blank SSDs
             self.computed['vg'] = {
-                'devices': self.blank_ssds,
+                'devices': ", ".join([ssd.abspath for ssd in self.blank_ssds]),
                 'parts': self.dbs_needed,
                 'percentages': self.vg_extents['percentages'],
-                'sizes': self.block_db_size.b,
-                'size': int(self.total_blank_ssd_size.b),
+                'sizes': self.block_db_size.b.as_int(),
+                'size': self.total_blank_ssd_size.b.as_int(),
                 'human_readable_sizes': str(self.block_db_size),
                 'human_readable_size': str(self.total_available_db_space),
             }