diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-05-02 14:44:08 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-05-02 19:01:52 +0200 |
commit | 8b1d0f43e54f478582195ac31a14da5db0745585 (patch) | |
tree | f7e7b864214fb413e7bb05d662eac11e9fc052f9 /functest/opnfv_tests/openstack/rally/rally.py | |
parent | 7d817d2bafa8c8416d64d6ca097b36480e078ca5 (diff) |
Manage block_migration in Rally
It creates a new env var BLOCK_MIGRATION (True by default) to allow
block migration for live migration in Rally.
It updates scenarios and blacklisting to take that env vars into account.
Change-Id: I41129432798ae9e40fe23bbe2c2162df4c0dff80
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 940e49a6cdf7ae0f8286c953952a9757ba63a20b)
Diffstat (limited to 'functest/opnfv_tests/openstack/rally/rally.py')
-rw-r--r-- | functest/opnfv_tests/openstack/rally/rally.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/functest/opnfv_tests/openstack/rally/rally.py b/functest/opnfv_tests/openstack/rally/rally.py index f7c1ac400..dd1f039f8 100644 --- a/functest/opnfv_tests/openstack/rally/rally.py +++ b/functest/opnfv_tests/openstack/rally/rally.py @@ -117,6 +117,7 @@ class RallyBase(singlevm.VmReady2): task_args['smoke'] = self.smoke task_args['volume_version'] = self.VOLUME_VERSION task_args['volume_service_type'] = self.VOLUME_SERVICE_TYPE + task_args['block_migration'] = env.get("BLOCK_MIGRATION").lower() if self.ext_net: task_args['floating_network'] = str(self.ext_net.name) @@ -327,6 +328,8 @@ class RallyBase(singlevm.VmReady2): with open(RallyBase.BLACKLIST_FILE, 'r') as black_list_file: black_list_yaml = yaml.safe_load(black_list_file) + if env.get('BLOCK_MIGRATION').lower() == 'true': + func_list.append("block_migration") if not self._migration_supported(): func_list.append("no_migration") if not self._network_trunk_supported(): |