Update scheduler_available_filters 13/69013/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Tue, 26 Nov 2019 01:24:20 +0000 (02:24 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Tue, 26 Nov 2019 08:46:49 +0000 (09:46 +0100)
Else few tests are skipped if DifferentHostFilter is not available.

Change-Id: Idfc524216dc8503e590d4fed569a43e99ea22123
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit c8a4d5f41f90dcbc60e3b276ed560b3b10be7bef)

functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf.yaml
functest/opnfv_tests/openstack/tempest/tempest.py

index 2d9346f..01bbaa3 100644 (file)
@@ -20,6 +20,7 @@ compute-feature-enabled:
     rdp_console: false
     rescue: true
     resize: true
+    scheduler_available_filters: RetryFilter,AvailabilityZoneFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter,SameHostFilter,DifferentHostFilter
     serial_console: true
     shelve: true
     snapshot: true
index d30d594..6269540 100644 (file)
@@ -270,13 +270,6 @@ class TempestCommon(singlevm.VmReady2):
             # enable multinode tests
             rconfig.set('compute', 'min_compute_nodes', compute_cnt)
             rconfig.set('compute-feature-enabled', 'live_migration', True)
-        filters = ['RetryFilter', 'AvailabilityZoneFilter', 'ComputeFilter',
-                   'ComputeCapabilitiesFilter', 'ImagePropertiesFilter',
-                   'ServerGroupAntiAffinityFilter',
-                   'ServerGroupAffinityFilter']
-        rconfig.set(
-            'compute-feature-enabled', 'scheduler_available_filters',
-            functest_utils.convert_list_to_ini(filters))
         if os.environ.get('OS_REGION_NAME'):
             rconfig.set('identity', 'region', os.environ.get('OS_REGION_NAME'))
         if env.get("NEW_USER_ROLE").lower() != "member":