Skip to content

Commit 58de715

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Explicitly set scheduler_available_filters"
2 parents dc9ba8b + 4705861 commit 58de715

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

lib/nova

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ FORCE_CONFIG_DRIVE=${FORCE_CONFIG_DRIVE:-"False"}
103103
# should work in most cases.
104104
SCHEDULER=${SCHEDULER:-filter_scheduler}
105105

106-
# The following FILTERS contains SameHostFilter and DifferentHostFilter with
106+
# The following NOVA_FILTERS contains SameHostFilter and DifferentHostFilter with
107107
# the default filters.
108-
FILTERS="RetryFilter,AvailabilityZoneFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter,SameHostFilter,DifferentHostFilter"
108+
NOVA_FILTERS="RetryFilter,AvailabilityZoneFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter,SameHostFilter,DifferentHostFilter"
109109

110110
QEMU_CONF=/etc/libvirt/qemu.conf
111111

@@ -428,7 +428,7 @@ function create_nova_conf {
428428
iniset $NOVA_CONF wsgi api_paste_config "$NOVA_API_PASTE_INI"
429429
iniset $NOVA_CONF DEFAULT rootwrap_config "$NOVA_CONF_DIR/rootwrap.conf"
430430
iniset $NOVA_CONF scheduler driver "$SCHEDULER"
431-
iniset $NOVA_CONF filter_scheduler enabled_filters "$FILTERS"
431+
iniset $NOVA_CONF filter_scheduler enabled_filters "$NOVA_FILTERS"
432432
if [[ $SCHEDULER == "filter_scheduler" ]]; then
433433
iniset $NOVA_CONF scheduler workers "$API_WORKERS"
434434
fi

lib/tempest

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,11 @@ function configure_tempest {
386386
iniset $TEMPEST_CONFIG compute-feature-enabled block_migration_for_live_migration ${USE_BLOCK_MIGRATION_FOR_LIVE_MIGRATION:-False}
387387
iniset $TEMPEST_CONFIG compute-feature-enabled live_migrate_back_and_forth ${LIVE_MIGRATE_BACK_AND_FORTH:-False}
388388
iniset $TEMPEST_CONFIG compute-feature-enabled attach_encrypted_volume ${ATTACH_ENCRYPTED_VOLUME_AVAILABLE:-True}
389+
390+
if [[ -n "$NOVA_FILTERS" ]]; then
391+
iniset $TEMPEST_CONFIG compute-feature-enabled scheduler_enabled_filters ${NOVA_FILTERS}
392+
fi
393+
389394
if is_service_enabled n-cell; then
390395
# Cells doesn't support shelving/unshelving
391396
iniset $TEMPEST_CONFIG compute-feature-enabled shelve False

0 commit comments

Comments
 (0)