LOG.error(_('%s'), message)
return false_ret
- helper = 'sudo cinder-rootwrap %s' % CONF.rootwrap_config
+ helper = utils.get_root_helper()
dest_vg_ref = lvm.LVM(dest_vg, helper, lvm_type, self._execute)
self.remove_export(ctxt, volume)
self._create_volume(volume['name'],
def supports_thin_provisioning():
return brick_lvm.LVM.supports_thin_provisioning(
- 'sudo cinder-rootwrap %s' % CONF.rootwrap_config)
+ utils.get_root_helper())
def get_all_volumes(vg_name=None, no_suffix=True):
return brick_lvm.LVM.get_all_volumes(
- 'sudo cinder-rootwrap %s' % CONF.rootwrap_config,
+ utils.get_root_helper(),
vg_name, no_suffix)
def get_all_physical_volumes(vg_name=None, no_suffix=True):
return brick_lvm.LVM.get_all_physical_volumes(
- 'sudo cinder-rootwrap %s' % CONF.rootwrap_config,
+ utils.get_root_helper(),
vg_name, no_suffix)
def get_all_volume_groups(vg_name=None, no_suffix=True):
return brick_lvm.LVM.get_all_volume_groups(
- 'sudo cinder-rootwrap %s' % CONF.rootwrap_config,
+ utils.get_root_helper(),
vg_name, no_suffix)