Skip to content

Commit e0d6111

Browse files
author
Ken'ichi Ohmichi
committed
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
1 parent 227f20c commit e0d6111

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/nova

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ FORCE_CONFIG_DRIVE=${FORCE_CONFIG_DRIVE:-"True"}
9898
# should work in most cases.
9999
SCHEDULER=${SCHEDULER:-nova.scheduler.filter_scheduler.FilterScheduler}
100100

101+
# The following FILTERS contains SameHostFilter and DifferentHostFilter with
102+
# the default filters.
103+
FILTERS="RetryFilter,AvailabilityZoneFilter,RamFilter,DiskFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter,SameHostFilter,DifferentHostFilter"
104+
101105
QEMU_CONF=/etc/libvirt/qemu.conf
102106

103107
# Set default defaults here as some hypervisor drivers override these
@@ -507,6 +511,7 @@ function create_nova_conf {
507511
iniset $NOVA_CONF DEFAULT api_paste_config "$NOVA_API_PASTE_INI"
508512
iniset $NOVA_CONF DEFAULT rootwrap_config "$NOVA_CONF_DIR/rootwrap.conf"
509513
iniset $NOVA_CONF DEFAULT scheduler_driver "$SCHEDULER"
514+
iniset $NOVA_CONF DEFAULT scheduler_default_filters "$FILTERS"
510515
iniset $NOVA_CONF DEFAULT dhcpbridge_flagfile "$NOVA_CONF"
511516
iniset $NOVA_CONF DEFAULT force_dhcp_release "True"
512517
iniset $NOVA_CONF DEFAULT default_floating_pool "$PUBLIC_NETWORK_NAME"

0 commit comments

Comments
 (0)