Baremetal should start using scheduler filters.

The baremetal driver should start using scheduler filters, particularly
the RetryFilter and ComputeFilter, as some functionality in Nova depends
on these.

However, the ComputeCapabilitiesFilter currently does not work with
baremetal in devstack due to an order-of-operations issue, so we
explicitly list the other filters that we do want.

Change-Id: Icc4b074c6f99e3e4ffbcf5eef0f9bb6f0f5c1996
This commit is contained in:
Devananda van der Veen 2013-02-12 21:58:33 -08:00
parent 25ebbcd1a7
commit 86d8fbb59c

View File

@ -1073,9 +1073,11 @@ if is_service_enabled nova; then
iniset $NOVA_CONF DEFAULT compute_driver nova.virt.baremetal.driver.BareMetalDriver
iniset $NOVA_CONF DEFAULT firewall_driver $LIBVIRT_FIREWALL_DRIVER
iniset $NOVA_CONF DEFAULT scheduler_host_manager nova.scheduler.baremetal_host_manager.BaremetalHostManager
iniset $NOVA_CONF DEFAULT scheduler_default_filters AllHostsFilter
iniset $NOVA_CONF baremetal driver $BM_DRIVER
# NOTE(deva): ComputeCapabilitiesFilter does not currently work with Baremetal. See bug # 1129485
# As a work around, we disable CCFilter by explicitly enabling all the other default filters.
iniset $NOVA_CONF DEFAULT scheduler_default_filters ComputeFilter,RetryFilter,AvailabilityZoneFilter,ImagePropertiesFilter
iniset $NOVA_CONF baremetal instance_type_extra_specs cpu_arch:$BM_CPU_ARCH
iniset $NOVA_CONF baremetal driver $BM_DRIVER
iniset $NOVA_CONF baremetal power_manager $BM_POWER_MANAGER
iniset $NOVA_CONF baremetal tftp_root /tftpboot