Example #1
0
File: lvm.py Project: jcru/cinder
 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'
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
File: lvm.py Project: pipul/cinder
 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'
Example #5
0
 def __init__(self, *args, **kwargs):
     self.tgtadm = iser.get_target_admin()
     LVMVolumeDriver.__init__(self, *args, **kwargs)
Example #6
0
 def __init__(self, *args, **kwargs):
     self.tgtadm = iser.get_target_admin()
     LVMVolumeDriver.__init__(self, *args, **kwargs)
Example #7
0
 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)
Example #8
0
 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)