示例#1
0
文件: config.py 项目: zmrblog/kimchi
    def lookup(self, *ident):
        if not is_libvirtd_up():
            return {
                'libvirt_stream_protocols': [],
                'qemu_spice': False,
                'qemu_stream': False,
                'screenshot': None,
                'kernel_vfio': self.kernel_vfio,
                'nm_running': FeatureTests.is_nm_running(),
                'mem_hotplug_support': False,
                'libvirtd_running': False
            }
        elif self.libvirtd_running == False:
            # Libvirt returned, run tests again
            self._set_capabilities()
            self._set_depend_capabilities()

        return {
            'libvirt_stream_protocols': self.libvirt_stream_protocols,
            'qemu_spice': self._qemu_support_spice(),
            'qemu_stream': self.qemu_stream,
            'screenshot': VMScreenshot.get_stream_test_result(),
            'kernel_vfio': self.kernel_vfio,
            'nm_running': FeatureTests.is_nm_running(),
            'mem_hotplug_support': self.mem_hotplug_support,
            'libvirtd_running': True
        }
示例#2
0
    def lookup(self, *ident):
        if not is_libvirtd_up():
            return {
                "libvirt_stream_protocols": [],
                "qemu_spice": False,
                "qemu_stream": False,
                "screenshot": None,
                "kernel_vfio": self.kernel_vfio,
                "nm_running": FeatureTests.is_nm_running(),
                "mem_hotplug_support": False,
                "libvirtd_running": False,
            }
        elif self.libvirtd_running == False:
            # Libvirt returned, run tests again
            self._set_capabilities()
            self._set_depend_capabilities()

        return {
            "libvirt_stream_protocols": self.libvirt_stream_protocols,
            "qemu_spice": self._qemu_support_spice(),
            "qemu_stream": self.qemu_stream,
            "screenshot": VMScreenshot.get_stream_test_result(),
            "kernel_vfio": self.kernel_vfio,
            "nm_running": FeatureTests.is_nm_running(),
            "mem_hotplug_support": self.mem_hotplug_support,
            "libvirtd_running": True,
        }
示例#3
0
文件: config.py 项目: sdnnfv/kimchi
    def lookup(self, *ident):
        report_tool = DebugReportsModel.get_system_report_tool()
        try:
            SoftwareUpdate()
        except Exception:
            update_tool = False
        else:
            update_tool = True

        try:
            repo = Repositories()
        except Exception:
            repo_mngt_tool = None
        else:
            repo_mngt_tool = repo._pkg_mnger.TYPE

        return {'libvirt_stream_protocols': self.libvirt_stream_protocols,
                'qemu_spice': self._qemu_support_spice(),
                'qemu_stream': self.qemu_stream,
                'screenshot': VMScreenshot.get_stream_test_result(),
                'system_report_tool': bool(report_tool),
                'update_tool': update_tool,
                'repo_mngt_tool': repo_mngt_tool,
                'federation': kconfig.get("server", "federation"),
                'auth': kconfig.get("authentication", "method"),
                'kernel_vfio': self.kernel_vfio,
                'nm_running': FeatureTests.is_nm_running(),
                'mem_hotplug_support': self.mem_hotplug_support
                }
示例#4
0
文件: config.py 项目: alinefm/kimchi
    def lookup(self, *ident):
        if not is_libvirtd_up():
            return {
                'libvirt_stream_protocols': [],
                'qemu_spice': False,
                'qemu_stream': False,
                'screenshot': None,
                'kernel_vfio': self.kernel_vfio,
                'nm_running': FeatureTests.is_nm_running(),
                'mem_hotplug_support': False,
                'libvirtd_running': False,
            }
        elif not self.libvirtd_running:
            # Libvirt returned, run tests again
            self._set_capabilities()
            self._set_depend_capabilities()

        return {
            'libvirt_stream_protocols': self.libvirt_stream_protocols,
            'qemu_spice': self._qemu_support_spice(),
            'qemu_stream': self.qemu_stream,
            'screenshot': VMScreenshot.get_stream_test_result(),
            'kernel_vfio': self.kernel_vfio,
            'nm_running': FeatureTests.is_nm_running(),
            'mem_hotplug_support': self.mem_hotplug_support,
            'libvirtd_running': True,
        }
示例#5
0
文件: config.py 项目: Drooids/kimchi
 def lookup(self, *ident):
     return {'libvirt_stream_protocols': self.libvirt_stream_protocols,
             'qemu_spice': self._qemu_support_spice(),
             'qemu_stream': self.qemu_stream,
             'screenshot': VMScreenshot.get_stream_test_result(),
             'kernel_vfio': self.kernel_vfio,
             'nm_running': FeatureTests.is_nm_running(),
             'mem_hotplug_support': self.mem_hotplug_support}
示例#6
0
 def lookup(self, *ident):
     return {
         'libvirt_stream_protocols': self.libvirt_stream_protocols,
         'qemu_spice': self._qemu_support_spice(),
         'qemu_stream': self.qemu_stream,
         'screenshot': VMScreenshot.get_stream_test_result(),
         'kernel_vfio': self.kernel_vfio,
         'nm_running': FeatureTests.is_nm_running(),
         'mem_hotplug_support': self.mem_hotplug_support
     }
示例#7
0
文件: config.py 项目: mba811/kimchi
 def lookup(self, *ident):
     return {
         "libvirt_stream_protocols": self.libvirt_stream_protocols,
         "qemu_spice": self._qemu_support_spice(),
         "qemu_stream": self.qemu_stream,
         "screenshot": VMScreenshot.get_stream_test_result(),
         "kernel_vfio": self.kernel_vfio,
         "nm_running": FeatureTests.is_nm_running(),
         "mem_hotplug_support": self.mem_hotplug_support,
     }
示例#8
0
文件: config.py 项目: bingger/kimchi
 def lookup(self, *ident):
     return {'libvirt_stream_protocols': self.libvirt_stream_protocols,
             'qemu_spice': self._qemu_support_spice(),
             'qemu_stream': self.qemu_stream,
             'screenshot': VMScreenshot.get_stream_test_result(),
             'federation': kconfig.get("server", "federation"),
             'auth': kconfig.get("authentication", "method"),
             'kernel_vfio': self.kernel_vfio,
             'nm_running': FeatureTests.is_nm_running(),
             'mem_hotplug_support': self.mem_hotplug_support
             }
示例#9
0
文件: config.py 项目: popbjc/kimchi
 def lookup(self, *ident):
     return {
         'libvirt_stream_protocols': self.libvirt_stream_protocols,
         'qemu_spice': self._qemu_support_spice(),
         'qemu_stream': self.qemu_stream,
         'screenshot': VMScreenshot.get_stream_test_result(),
         'federation': kconfig.get("server", "federation"),
         'auth': kconfig.get("authentication", "method"),
         'kernel_vfio': self.kernel_vfio,
         'nm_running': FeatureTests.is_nm_running(),
         'mem_hotplug_support': self.mem_hotplug_support
     }