def __init__(self, *args, **kwargs): root_helper = 'sudo cinder-rootwrap %s' % CONF.rootwrap_config self.tgtadm = iser.get_target_admin(root_helper) LVMVolumeDriver.__init__(self, *args, **kwargs) self.backend_name =\ self.configuration.safe_get('volume_backend_name') or 'LVM_iSER' self.protocol = 'iSER'
def run_commands(self): tgtadm = iser.get_target_admin() tgtadm.set_execute(self.fake_execute) tgtadm.create_iser_target(self.target_name, self.tid, self.lun, self.path) tgtadm.show_target(self.tid, iqn=self.target_name) tgtadm.remove_iser_target(self.tid, self.lun, self.vol_id)
def __init__(self, *args, **kwargs): self.tgtadm = iser.get_target_admin() LVMVolumeDriver.__init__(self, *args, **kwargs)
def __init__(self, *args, **kwargs): root_helper = 'sudo cinder-rootwrap %s' % CONF.rootwrap_config self.tgtadm = iser.get_target_admin(root_helper) LVMVolumeDriver.__init__(self, *args, **kwargs)