當前位置: 首頁>>代碼示例>>Python>>正文


Python FeatureTests.libvirt_support_fc_host方法代碼示例

本文整理匯總了Python中wok.plugins.kimchi.model.featuretests.FeatureTests.libvirt_support_fc_host方法的典型用法代碼示例。如果您正苦於以下問題:Python FeatureTests.libvirt_support_fc_host方法的具體用法?Python FeatureTests.libvirt_support_fc_host怎麽用?Python FeatureTests.libvirt_support_fc_host使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在wok.plugins.kimchi.model.featuretests.FeatureTests的用法示例。


在下文中一共展示了FeatureTests.libvirt_support_fc_host方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: _set_capabilities

# 需要導入模塊: from wok.plugins.kimchi.model.featuretests import FeatureTests [as 別名]
# 或者: from wok.plugins.kimchi.model.featuretests.FeatureTests import libvirt_support_fc_host [as 別名]
 def _set_capabilities(self):
     wok_log.info("\n*** Kimchi: Running feature tests ***")
     self.libvirtd_running = is_libvirtd_up()
     msg = "Service Libvirtd running ...: %s"
     wok_log.info(msg % str(self.libvirtd_running))
     if self.libvirtd_running == False:
         wok_log.info("*** Kimchi: Feature tests not completed ***\n")
         return
     conn = self.conn.get()
     self.nfs_target_probe = FeatureTests.libvirt_support_nfs_probe(conn)
     msg = "NFS Target Probe support ...: %s"
     wok_log.info(msg % str(self.nfs_target_probe))
     self.fc_host_support = FeatureTests.libvirt_support_fc_host(conn)
     msg = "Fibre Channel Host support .: %s"
     wok_log.info(msg % str(self.fc_host_support))
     self.kernel_vfio = FeatureTests.kernel_support_vfio()
     msg = "Kernel VFIO support ........: %s"
     wok_log.info(msg % str(self.kernel_vfio))
     self.nm_running = FeatureTests.is_nm_running()
     msg = "Network Manager running ....: %s"
     wok_log.info(msg % str(self.nm_running))
     self.mem_hotplug_support = FeatureTests.has_mem_hotplug_support(conn)
     msg = "Memory Hotplug support .....: %s"
     wok_log.info(msg % str(self.mem_hotplug_support))
     wok_log.info("*** Kimchi: Feature tests completed ***\n")
開發者ID:kimchi-project,項目名稱:kimchi,代碼行數:27,代碼來源:config.py

示例2: _set_capabilities

# 需要導入模塊: from wok.plugins.kimchi.model.featuretests import FeatureTests [as 別名]
# 或者: from wok.plugins.kimchi.model.featuretests.FeatureTests import libvirt_support_fc_host [as 別名]
 def _set_capabilities(self):
     wok_log.info("*** Running feature tests ***")
     conn = self.conn.get()
     self.nfs_target_probe = FeatureTests.libvirt_support_nfs_probe(conn)
     self.fc_host_support = FeatureTests.libvirt_support_fc_host(conn)
     self.kernel_vfio = FeatureTests.kernel_support_vfio()
     self.nm_running = FeatureTests.is_nm_running()
     self.mem_hotplug_support = FeatureTests.has_mem_hotplug_support(conn)
     wok_log.info("*** Feature tests completed ***")
開發者ID:Drooids,項目名稱:kimchi,代碼行數:11,代碼來源:config.py

示例3: _set_capabilities

# 需要導入模塊: from wok.plugins.kimchi.model.featuretests import FeatureTests [as 別名]
# 或者: from wok.plugins.kimchi.model.featuretests.FeatureTests import libvirt_support_fc_host [as 別名]
    def _set_capabilities(self):
        wok_log.info("*** Running feature tests ***")
        conn = self.conn.get()
        self.qemu_stream = FeatureTests.qemu_supports_iso_stream()
        self.nfs_target_probe = FeatureTests.libvirt_support_nfs_probe(conn)
        self.fc_host_support = FeatureTests.libvirt_support_fc_host(conn)
        self.kernel_vfio = FeatureTests.kernel_support_vfio()
        self.mem_hotplug_support = FeatureTests.has_mem_hotplug_support(conn)

        self.libvirt_stream_protocols = []
        for p in ['http', 'https', 'ftp', 'ftps', 'tftp']:
            if FeatureTests.libvirt_supports_iso_stream(conn, p):
                self.libvirt_stream_protocols.append(p)

        wok_log.info("*** Feature tests completed ***")
開發者ID:madhawa,項目名稱:kimchi,代碼行數:17,代碼來源:config.py

示例4: _set_capabilities

# 需要導入模塊: from wok.plugins.kimchi.model.featuretests import FeatureTests [as 別名]
# 或者: from wok.plugins.kimchi.model.featuretests.FeatureTests import libvirt_support_fc_host [as 別名]
def _set_capabilities(conn=False):
    debug("Running feature tests. This can take a while.", True)
    if not conn:
        return
    qemu_stream = FeatureTests.qemu_supports_iso_stream()
    nfs_target_probe = FeatureTests.libvirt_support_nfs_probe(conn)
    fc_host_support = FeatureTests.libvirt_support_fc_host(conn)
    kernel_vfio = FeatureTests.kernel_support_vfio()
    nm_running = FeatureTests.is_nm_running()
    mem_hotplug_support = FeatureTests.has_mem_hotplug_support(conn)

    libvirt_stream_protocols = []
    for p in ['http', 'https', 'ftp', 'ftps', 'tftp']:
        if FeatureTests.libvirt_supports_iso_stream(conn, p):
            libvirt_stream_protocols.append(p)
    debug("Feature tests completed.", True)
開發者ID:pvital,項目名稱:fuzzy-spice,代碼行數:18,代碼來源:libvirt_print_domain_XML.py

示例5: _set_capabilities

# 需要導入模塊: from wok.plugins.kimchi.model.featuretests import FeatureTests [as 別名]
# 或者: from wok.plugins.kimchi.model.featuretests.FeatureTests import libvirt_support_fc_host [as 別名]
 def _set_capabilities(self):
     wok_log.info('\n*** Kimchi: Running feature tests ***')
     self.libvirtd_running = is_libvirtd_up()
     wok_log.info(f'Service Libvirtd running ...: {self.libvirtd_running}')
     if not self.libvirtd_running:
         wok_log.info('*** Kimchi: Feature tests not completed ***\n')
         return
     conn = self.conn.get()
     self.nfs_target_probe = FeatureTests.libvirt_support_nfs_probe(conn)
     wok_log.info(f'NFS Target Probe support ...: {self.nfs_target_probe}')
     self.fc_host_support = FeatureTests.libvirt_support_fc_host(conn)
     wok_log.info(f'Fibre Channel Host support .: {self.fc_host_support}')
     self.kernel_vfio = FeatureTests.kernel_support_vfio()
     wok_log.info(f'Kernel VFIO support ........: {self.kernel_vfio}')
     self.nm_running = FeatureTests.is_nm_running()
     wok_log.info(f'Network Manager running ....: {self.nm_running}')
     self.mem_hotplug_support = FeatureTests.has_mem_hotplug_support(conn)
     wok_log.info(
         f'Memory Hotplug support .....: {self.mem_hotplug_support}')
     wok_log.info('*** Kimchi: Feature tests completed ***\n')
開發者ID:alinefm,項目名稱:kimchi,代碼行數:22,代碼來源:config.py


注:本文中的wok.plugins.kimchi.model.featuretests.FeatureTests.libvirt_support_fc_host方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。