Example #1
0
    def _set_depend_capabilities(self):
        wok_log.info("*** Running dependable feature tests ***")
        conn = self.conn.get()
        self.qemu_stream = FeatureTests.qemu_supports_iso_stream()

        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("*** Dependable feature tests completed ***")
Example #2
0
    def _set_depend_capabilities(self):
        wok_log.info("*** Running dependable feature tests ***")
        conn = self.conn.get()
        self.qemu_stream = FeatureTests.qemu_supports_iso_stream()

        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("*** Dependable feature tests completed ***")
Example #3
0
    def _set_depend_capabilities(self):
        wok_log.info("\n*** Kimchi: Running dependable feature tests ***")
        conn = self.conn.get()
        self.qemu_stream = FeatureTests.qemu_supports_iso_stream()
        msg = "QEMU stream support .......: %s"
        wok_log.info(msg % str(self.qemu_stream))

        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)
        msg = "Libvirt Stream Protocols ..: %s"
        wok_log.info(msg % str(self.libvirt_stream_protocols))
        wok_log.info("*** Kimchi: Dependable feature tests completed ***\n")
Example #4
0
    def _set_depend_capabilities(self):
        wok_log.info("\n*** Kimchi: Running dependable feature tests ***")
        conn = self.conn.get()
        self.qemu_stream = FeatureTests.qemu_supports_iso_stream()
        msg = "QEMU stream support .......: %s"
        wok_log.info(msg % str(self.qemu_stream))

        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)
        msg = "Libvirt Stream Protocols ..: %s"
        wok_log.info(msg % str(self.libvirt_stream_protocols))
        wok_log.info("*** Kimchi: Dependable feature tests completed ***\n")
Example #5
0
    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 ***")
Example #6
0
    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 ***")
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)
Example #8
0
    def _set_depend_capabilities(self):
        wok_log.info('\n*** Kimchi: Running dependable feature tests ***')
        conn = self.conn.get()
        if conn is None:
            wok_log.info('*** Kimchi: Dependable feature tests not completed '
                         '***\n')
            return
        self.qemu_stream = FeatureTests.qemu_supports_iso_stream()
        wok_log.info(f'QEMU stream support .......: {self.qemu_stream}')

        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(
            f'Libvirt Stream Protocols ..: {self.libvirt_stream_protocols}')
        wok_log.info('*** Kimchi: Dependable feature tests completed ***\n')
Example #9
0
    def _set_depend_capabilities(self):
        wok_log.info('\n*** Kimchi: Running dependable feature tests ***')
        conn = self.conn.get()
        if conn is None:
            wok_log.info(
                '*** Kimchi: Dependable feature tests not completed ' '***\n')
            return
        self.qemu_stream = FeatureTests.qemu_supports_iso_stream()
        wok_log.info(f'QEMU stream support .......: {self.qemu_stream}')

        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(
            f'Libvirt Stream Protocols ..: {self.libvirt_stream_protocols}')
        wok_log.info('*** Kimchi: Dependable feature tests completed ***\n')