Пример #1
0
def skip_for_one_proc():
    hypervisor = host_helper.get_up_hypervisors()
    if not hypervisor:
        skip("No up hypervisor on system.")

    if len(host_helper.get_host_procs(hostname=hypervisor[0])) < 2:
        skip('At least two processor per compute host is required for this '
             'test.')
Пример #2
0
    def check_hosts(self):
        storage_backing, hosts = \
            keywords.host_helper.get_storage_backing_with_max_hosts()
        if len(hosts) < 2:
            skip("at least two hosts with the same storage backing are "
                 "required")

        acceptable_hosts = []
        for host in hosts:
            numa_num = len(host_helper.get_host_procs(host))
            if numa_num > 1:
                acceptable_hosts.append(host)
                if len(acceptable_hosts) == 2:
                    break
        else:
            skip("at least two hosts with multiple numa nodes are required")

        target_host = acceptable_hosts[0]
        return target_host
Пример #3
0
def check_numa_num():
    hypervisor = host_helper.get_up_hypervisors()
    if not hypervisor:
        skip("No up hypervisor on system.")

    return len(host_helper.get_host_procs(hostname=hypervisor[0]))