weather test successfully only on Compute Node

Bug #1822045 reported by liyang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
intel-nfv-ci-tests
New
Undecided
Unassigned

Bug Description

Recently I'm trying to integrate intel-nfv-ci-tests to our tempest, and I read some test code like this:
def get_host_numa_placement(instance, vcpus):

    out, _ = processutils.execute('ps -eo pid,cmd,args | awk \'/%s/ && '
                                  '!/grep/ {print $1}\'' %
                                  instance['id'], shell=True)
    if not out:
        return

    ...

    return placement

def _get_cpu_pinning(self, server):
    instance_name = server['OS-EXT-SRV-ATTR:instance_name']

    conn = libvirt.openReadOnly('qemu:///system')
    dom0 = conn.lookupByName(instance_name)
    root = ET.fromstring(dom0.XMLDesc()

    vcpupin_nodes = root.findall('./cputune/vcpupin')
    cpu_pinnings = {int(x.get('vcpu')): int(x.get('cpuset'))
                    for x in vcpupin_nodes if x is not None}

    return cpu_pinnings

It means that these tests can only run on the compute host node? Because it depend on the host machaine and hardware msupport. So if i want to test it successfully, out openstack platform must be all-in-one mode?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.