From 33d906a2e060447778e95449a78e6583f18afcfd Mon Sep 17 00:00:00 2001 From: Yingxin Date: Tue, 8 Dec 2015 13:47:32 +0000 Subject: 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 --- nova/tests/functional/libvirt/test_numa_servers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'nova/tests/functional/libvirt/test_numa_servers.py') 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') -- cgit v1.2.1