remove TestServerNumaPCI

This change removes TestServerNumaPCI due to fact
that there's only one PCI HostBridge in a host VM
the test may be giving false positives if the guest VM
is scheduled to NUMA Node 0.

Change-Id: Ie3f87620841e024fd42eea4187e31d46c57e7e84
Closes-Bug: #1573282
This commit is contained in:
Waldemar Znoinski 2016-04-21 23:43:19 +01:00
parent 824805d91d
commit 153db3fdab
1 changed files with 0 additions and 29 deletions

View File

@ -202,32 +202,3 @@ class TestServerNumaTopo(TestServerNumaBase):
self.assertNotEqual(placement[1], placement[2])
self.assertEqual(placement[2], placement[3])
self.servers_client.delete_server(self.instance['id'])
class TestServerNumaPCI(TestServerNumaBase):
"""
Tests in this class check if pci device
assigned to the VM is affinitized to the same
numa node as the VM itself.
"""
def get_pci_numa_node(self, addr):
out, _ = processutils.execute('cat /sys/bus/pci/devices/%s/numa_node'
% addr, shell=True)
return out.strip()
@test.services('compute', 'network')
def test_server_numa_pci(self):
self.security_group = self._create_security_group(
tenant_id=self.tenant_id)
self.boot_instance(self.create_flavor_with_numa(1, 1024, 2, 0,
{"pci_passthrough:alias":
"niantic_vf:1"}))
placement = self.get_placement(1)
host_nodes = self.get_numa_nodes()
guest_numa = [host_nodes.index(x) for x in placement]
pci_node = 1
self.assertIn(int(pci_node), guest_numa)
self.servers_client.delete_server(self.instance['id'])