summaryrefslogtreecommitdiff
path: root/nova/tests/functional/libvirt/test_numa_servers.py
diff options
context:
space:
mode:
authorSylvain Bauza <sbauza@redhat.com>2017-01-09 11:50:59 +0100
committerDan Smith <dansmith@redhat.com>2017-01-27 16:36:34 -0800
commit4660333d0d97d8e00cf290ea1d4ed932f5edc1dc (patch)
treeee0bc6ade8de72431cc005801e348326dc130bce /nova/tests/functional/libvirt/test_numa_servers.py
parentd486315e0c06fb206195141137fbdfa6780a73e0 (diff)
downloadnova-4660333d0d97d8e00cf290ea1d4ed932f5edc1dc.tar.gz
Scheduler calling the Placement API
Instead of iterating over the long list of compute nodes in the DB, the scheduler should rather just call the Placement API for getting the list of ResourceProviders that support the resource amounts given by the RequestSpec. Implements: blueprint resource-providers-scheduler-db-filters Depends-On: I573149b9415da2a8bb3951a4c4ce71c4c3e48c6f Change-Id: Ie12acb76ec5affba536c3c45fbb6de35d64aea1b
Diffstat (limited to 'nova/tests/functional/libvirt/test_numa_servers.py')
-rw-r--r--nova/tests/functional/libvirt/test_numa_servers.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/tests/functional/libvirt/test_numa_servers.py b/nova/tests/functional/libvirt/test_numa_servers.py
index 3f1ca43744..a6066eb9d5 100644
--- a/nova/tests/functional/libvirt/test_numa_servers.py
+++ b/nova/tests/functional/libvirt/test_numa_servers.py
@@ -21,6 +21,7 @@ from oslo_log import log as logging
from nova import context as nova_context
from nova import objects
from nova import test
+from nova.tests import fixtures as nova_fixtures
from nova.tests.functional.test_servers import ServersTestBase
from nova.tests.unit import fake_network
from nova.tests.unit.virt.libvirt import fake_imagebackend
@@ -75,6 +76,7 @@ class NUMAServersTest(ServersTestBase):
'nova.virt.libvirt.guest.libvirt',
fakelibvirt))
self.useFixture(fakelibvirt.FakeLibvirtFixture())
+ self.useFixture(nova_fixtures.PlacementFixture())
def _setup_compute_service(self):
pass