From 91f8ed6386792bab2e670c8ebd74d3654f6b7231 Mon Sep 17 00:00:00 2001 From: Martin Kopec Date: Mon, 6 Jan 2020 13:43:02 +0000 Subject: [PATCH] Override tempest nova scheduler filters In Rocky and Queens tempest contains a default value for nova scheduler filters equal to all, which results in the mentioned bug when tests which are meant to be executed against specific filters are not enabled in the system. Overriding filters in tempest to only those which are available in the system will skip the tests which are meant for different filters. Change-Id: I98532113d3ad1339fdc4869686ad875b304f094e Closes-bug: 1857365 --- roles/validate-tempest/templates/configure-tempest.sh.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/validate-tempest/templates/configure-tempest.sh.j2 b/roles/validate-tempest/templates/configure-tempest.sh.j2 index b3149b100..2eb3761a0 100644 --- a/roles/validate-tempest/templates/configure-tempest.sh.j2 +++ b/roles/validate-tempest/templates/configure-tempest.sh.j2 @@ -180,6 +180,9 @@ $TEMPESTCONF --out etc/tempest.conf \ auth.use_dynamic_credentials true \ network-feature-enabled.port_security true \ {% endif %} + {% if release in ['queens', 'rocky'] %} + compute-feature-enabled.scheduler_available_filters RetryFilter,AvailabilityZoneFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter,PciPassthroughFilter \ + {% endif %} {% if release in ['newton', 'ocata', 'pike', 'queens'] %} compute-feature-enabled.attach_encrypted_volume False \ compute-feature-enabled.console_output true \