Enable SameHostFilter and DifferentHostFilter
The default filters of nova don't contain SameHostFilter and DifferentHostFilter, so we cannot test them on the gate. This patch makes these filters available for the development. Change-Id: Ia6b4847e9bb21048d254d0a460ae4c5be896b17b Closes-Bug: #1526620
This commit is contained in:
parent
227f20ceb2
commit
e0d61118f1
5
lib/nova
5
lib/nova
@ -98,6 +98,10 @@ FORCE_CONFIG_DRIVE=${FORCE_CONFIG_DRIVE:-"True"}
|
||||
# should work in most cases.
|
||||
SCHEDULER=${SCHEDULER:-nova.scheduler.filter_scheduler.FilterScheduler}
|
||||
|
||||
# The following FILTERS contains SameHostFilter and DifferentHostFilter with
|
||||
# the default filters.
|
||||
FILTERS="RetryFilter,AvailabilityZoneFilter,RamFilter,DiskFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter,SameHostFilter,DifferentHostFilter"
|
||||
|
||||
QEMU_CONF=/etc/libvirt/qemu.conf
|
||||
|
||||
# Set default defaults here as some hypervisor drivers override these
|
||||
@ -507,6 +511,7 @@ function create_nova_conf {
|
||||
iniset $NOVA_CONF DEFAULT api_paste_config "$NOVA_API_PASTE_INI"
|
||||
iniset $NOVA_CONF DEFAULT rootwrap_config "$NOVA_CONF_DIR/rootwrap.conf"
|
||||
iniset $NOVA_CONF DEFAULT scheduler_driver "$SCHEDULER"
|
||||
iniset $NOVA_CONF DEFAULT scheduler_default_filters "$FILTERS"
|
||||
iniset $NOVA_CONF DEFAULT dhcpbridge_flagfile "$NOVA_CONF"
|
||||
iniset $NOVA_CONF DEFAULT force_dhcp_release "True"
|
||||
iniset $NOVA_CONF DEFAULT default_floating_pool "$PUBLIC_NETWORK_NAME"
|
||||
|
Loading…
Reference in New Issue
Block a user