summaryrefslogtreecommitdiff
path: root/nova/tests/functional/libvirt/test_numa_servers.py
diff options
context:
space:
mode:
authorYingxin <yingxin.cheng@intel.com>2015-12-08 13:47:32 +0000
committerYingxin <yingxin.cheng@intel.com>2016-01-26 03:55:45 +0000
commit33d906a2e060447778e95449a78e6583f18afcfd (patch)
tree0a310dd741d1e8851c37c4ca0e044a4b1b55acae /nova/tests/functional/libvirt/test_numa_servers.py
parent158c6d64c2da48ec5fb3382eb64cd5c5e9c5c2d9 (diff)
downloadnova-33d906a2e060447778e95449a78e6583f18afcfd.tar.gz
Use stevedore for scheduler driver
Avoid having to configure the full class path of scheduler driver, change to load by stevedore driver plugin using entrypoints. Change 'scheduler_driver' to use entrypoint with the namespace 'nova.scheduler.driver' in 'setup.cfg'. Meanwhile, still maintain the compatibility for class path configuration until the next major release. Change all related tests with flag 'scheduler_driver' to use stevedore entrypoint. UpgradeImpact - see the reno file attached. Implements: blueprint scheduler-driver-use-stevedore Change-Id: I8c169e12d9bfacdbdb1dadf68b8a1fa98c5ea5bc
Diffstat (limited to 'nova/tests/functional/libvirt/test_numa_servers.py')
-rw-r--r--nova/tests/functional/libvirt/test_numa_servers.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/tests/functional/libvirt/test_numa_servers.py b/nova/tests/functional/libvirt/test_numa_servers.py
index cd7e0e6a77..52d1a56915 100644
--- a/nova/tests/functional/libvirt/test_numa_servers.py
+++ b/nova/tests/functional/libvirt/test_numa_servers.py
@@ -79,8 +79,7 @@ class NUMAServersTest(ServersTestBase):
def _setup_scheduler_service(self):
self.flags(compute_driver='nova.virt.libvirt.LibvirtDriver')
- self.flags(scheduler_driver='nova.scheduler.'
- 'filter_scheduler.FilterScheduler')
+ self.flags(scheduler_driver='filter_scheduler')
self.flags(scheduler_default_filters=CONF.scheduler_default_filters
+ ['NUMATopologyFilter'])
return self.start_service('scheduler')