return self._supports_lvchange_ignoreskipactivation
@staticmethod
- def get_all_volumes(root_helper, vg_name=None, lv_name=None):
- """Static method to get all LV's on a system.
+ def get_lv_info(root_helper, vg_name=None, lv_name=None):
+ """Retrieve info about LVs (all, in a VG, or a single LV).
:param root_helper: root_helper to use for execute
:param vg_name: optional, gathers info for only the specified VG
:returns: List of Dictionaries with LV info
"""
- self.lv_list = self.get_all_volumes(self._root_helper,
- self.vg_name,
- lv_name)
+ self.lv_list = self.get_lv_info(self._root_helper,
+ self.vg_name,
+ lv_name)
return self.lv_list
def get_volume(self, name):
self.vg_uuid = vg_list[0]['uuid']
if self.vg_thin_pool is not None:
- for lv in self.get_all_volumes(self._root_helper, self.vg_name):
+ for lv in self.get_lv_info(self._root_helper,
+ self.vg_name,
+ self.vg_thin_pool):
if lv['name'] == self.vg_thin_pool:
self.vg_thin_pool_size = lv['size']
tpfs = self._get_thin_pool_free_space(self.vg_name,
def supports_thin_provisioning():
return False
- def get_all_volumes(vg_name=None):
- if vg_name is not None:
- return [vg_name]
- return ['cinder-volumes', 'fake-vg-1']
-
def get_volumes(self):
return ['fake-volume']
def get_physical_volumes(self):
return []
- def get_all_volume_groups(vg_name=None):
- return ['cinder-volumes', 'fake-vg']
-
def update_volume_group_info(self):
pass
utils.get_root_helper())
-def get_all_volumes(vg_name=None):
- return brick_lvm.LVM.get_all_volumes(
- utils.get_root_helper(),
- vg_name)
-
-
def get_all_physical_volumes(vg_name=None):
return brick_lvm.LVM.get_all_physical_volumes(
utils.get_root_helper(),