示例#1
0
文件: lvm.py 项目: 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'
示例#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)
示例#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)
示例#4
0
文件: lvm.py 项目: 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'
示例#5
0
文件: lvm.py 项目: dstepanenko/cinder
 def __init__(self, *args, **kwargs):
     self.tgtadm = iser.get_target_admin()
     LVMVolumeDriver.__init__(self, *args, **kwargs)
示例#6
0
文件: lvm.py 项目: haha1903/cinder
 def __init__(self, *args, **kwargs):
     self.tgtadm = iser.get_target_admin()
     LVMVolumeDriver.__init__(self, *args, **kwargs)
示例#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)
示例#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)