Browse code

Change scheduler configurations to use entrypoints

Full class path style configuration of options scheduler_host_manager
and scheduler_driver are deprecated because of dependent changes. This
commit changes the related configurations to use entrypoints in setting
up nova scheduler in devstack.

Related to blueprint scheduler-driver-use-stevedore
Depends-On: I8c169e12d9bfacdbdb1dadf68b8a1fa98c5ea5bc
Depends-On: I3fd42ead44487a21eb5cfaf5a91209277ce30ad0

Change-Id: Iad96c270073b63719237cf9a9aa1c2dc4daa213a

Yingxin authored on 2016/01/29 14:11:27
Showing 2 changed files
... ...
@@ -96,7 +96,7 @@ FORCE_CONFIG_DRIVE=${FORCE_CONFIG_DRIVE:-"True"}
96 96
 
97 97
 # Nova supports pluggable schedulers.  The default ``FilterScheduler``
98 98
 # should work in most cases.
99
-SCHEDULER=${SCHEDULER:-nova.scheduler.filter_scheduler.FilterScheduler}
99
+SCHEDULER=${SCHEDULER:-filter_scheduler}
100 100
 
101 101
 # The following FILTERS contains SameHostFilter and DifferentHostFilter with
102 102
 # the default filters.
... ...
@@ -41,7 +41,7 @@ function configure_nova_hypervisor {
41 41
 
42 42
     iniset $NOVA_CONF DEFAULT compute_driver nova.virt.ironic.IronicDriver
43 43
     iniset $NOVA_CONF DEFAULT firewall_driver $LIBVIRT_FIREWALL_DRIVER
44
-    iniset $NOVA_CONF DEFAULT scheduler_host_manager nova.scheduler.ironic_host_manager.IronicHostManager
44
+    iniset $NOVA_CONF DEFAULT scheduler_host_manager ironic_host_manager
45 45
     iniset $NOVA_CONF DEFAULT ram_allocation_ratio 1.0
46 46
     iniset $NOVA_CONF DEFAULT reserved_host_memory_mb 0
47 47
     # ironic section