... | ... |
@@ -103,9 +103,9 @@ FORCE_CONFIG_DRIVE=${FORCE_CONFIG_DRIVE:-"False"} |
103 | 103 |
# should work in most cases. |
104 | 104 |
SCHEDULER=${SCHEDULER:-filter_scheduler} |
105 | 105 |
|
106 |
-# The following FILTERS contains SameHostFilter and DifferentHostFilter with |
|
106 |
+# The following NOVA_FILTERS contains SameHostFilter and DifferentHostFilter with |
|
107 | 107 |
# 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" |
|
109 | 109 |
|
110 | 110 |
QEMU_CONF=/etc/libvirt/qemu.conf |
111 | 111 |
|
... | ... |
@@ -428,7 +428,7 @@ function create_nova_conf { |
428 | 428 |
iniset $NOVA_CONF wsgi api_paste_config "$NOVA_API_PASTE_INI" |
429 | 429 |
iniset $NOVA_CONF DEFAULT rootwrap_config "$NOVA_CONF_DIR/rootwrap.conf" |
430 | 430 |
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" |
|
432 | 432 |
if [[ $SCHEDULER == "filter_scheduler" ]]; then |
433 | 433 |
iniset $NOVA_CONF scheduler workers "$API_WORKERS" |
434 | 434 |
fi |
... | ... |
@@ -386,6 +386,11 @@ function configure_tempest { |
386 | 386 |
iniset $TEMPEST_CONFIG compute-feature-enabled block_migration_for_live_migration ${USE_BLOCK_MIGRATION_FOR_LIVE_MIGRATION:-False} |
387 | 387 |
iniset $TEMPEST_CONFIG compute-feature-enabled live_migrate_back_and_forth ${LIVE_MIGRATE_BACK_AND_FORTH:-False} |
388 | 388 |
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 |
+ |
|
389 | 394 |
if is_service_enabled n-cell; then |
390 | 395 |
# Cells doesn't support shelving/unshelving |
391 | 396 |
iniset $TEMPEST_CONFIG compute-feature-enabled shelve False |