示例#1
0
 def __init__(self, *args, **kargs):
     comp.PythonRuntime.__init__(self, *args, **kargs)
     self.wait_time = self.get_int_option('service_wait_seconds')
     self.virsh = lv.Virsh(self.wait_time, self.distro)
     self.config_path = sh.joinpths(self.get_option('cfg_dir'), API_CONF)
     self.bin_dir = sh.joinpths(self.get_option('app_dir'), BIN_DIR)
     self.net_init_fn = sh.joinpths(self.get_option('trace_dir'),
                                    NET_INITED_FN)
示例#2
0
 def clean(self):
     virsh = lv.Virsh(
         self.uninstaller.get_int_option('service_wait_seconds'),
         self.uninstaller.distro)
     virt_driver = utils.canon_virt_driver(
         self.uninstaller.get_option('virt_driver'))
     if virt_driver == 'libvirt':
         inst_prefix = self.uninstaller.get_option(
             'instance_name_prefix', default_value='instance-')
         libvirt_type = lv.canon_libvirt_type(
             self.uninstaller.get_option('libvirt_type'))
         virsh.clear_domains(libvirt_type, inst_prefix)
示例#3
0
 def __init__(self, *args, **kargs):
     comp.PythonUninstallComponent.__init__(self, *args, **kargs)
     self.virsh = lv.Virsh(self.get_int_option('service_wait_seconds'),
                           self.distro)
示例#4
0
文件: nova.py 项目: spandhe/anvil
 def __init__(self, *args, **kargs):
     binstall.PkgUninstallComponent.__init__(self, *args, **kargs)
     self.virsh = lv.Virsh(self.get_int_option('service_wait_seconds'),
                           self.distro)
     self.net_init_fn = sh.joinpths(self.get_option('trace_dir'),
                                    NET_INITED_FN)
示例#5
0
文件: nova.py 项目: spandhe/anvil
 def __init__(self, *args, **kargs):
     bruntime.OpenStackRuntime.__init__(self, *args, **kargs)
     self.wait_time = self.get_int_option('service_wait_seconds')
     self.virsh = lv.Virsh(self.wait_time, self.distro)
     self.net_init_fn = sh.joinpths(self.get_option('trace_dir'),
                                    NET_INITED_FN)