diff options
author | Juha Kosonen <juha.kosonen@nokia.com> | 2019-04-08 14:36:10 +0300 |
---|---|---|
committer | Juha Kosonen <juha.kosonen@nokia.com> | 2019-04-09 11:30:49 +0000 |
commit | 6a52d19860dd98429125e56085a6a77f66280ded (patch) | |
tree | ea510c9a092705462817c3f7766626b59c0edea8 /functest/opnfv_tests/openstack/rally/rally.py | |
parent | c14d14e1d940a16c8bcac51a81577a2b30cc7270 (diff) |
Set cinder service type in rally tests
As a precondition for executing scenarios requiring volume, Rally
expects the presence of service named as "cinder". In a case when
there is only cinderv2 and cinderv3 configured in the system, Rally
fails to validate a testcase even the volume service is working ok.
Testcases in question changed to use v3.
Change-Id: I42e7f846e80d3647df274b2e03add94c9f0a34d6
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
(cherry picked from commit ebc2b41505299846faeb2163d34d820a8ef2bdb2)
Diffstat (limited to 'functest/opnfv_tests/openstack/rally/rally.py')
-rw-r--r-- | functest/opnfv_tests/openstack/rally/rally.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/functest/opnfv_tests/openstack/rally/rally.py b/functest/opnfv_tests/openstack/rally/rally.py index f4c968faa..dc64aa0fb 100644 --- a/functest/opnfv_tests/openstack/rally/rally.py +++ b/functest/opnfv_tests/openstack/rally/rally.py @@ -58,6 +58,8 @@ class RallyBase(singlevm.VmReady2): TENANTS_AMOUNT = 3 ITERATIONS_AMOUNT = 10 CONCURRENCY = 4 + VOLUME_VERSION = 3 + VOLUME_SERVICE_TYPE = "volumev3" BLACKLIST_FILE = os.path.join(RALLY_DIR, "blacklist.yaml") TASK_DIR = os.path.join(getattr(config.CONF, 'dir_rally_data'), 'task') TEMP_DIR = os.path.join(TASK_DIR, 'var') @@ -113,6 +115,8 @@ class RallyBase(singlevm.VmReady2): task_args['iterations'] = self.ITERATIONS_AMOUNT task_args['concurrency'] = self.CONCURRENCY task_args['smoke'] = self.smoke + task_args['volume_version'] = self.VOLUME_VERSION + task_args['volume_service_type'] = self.VOLUME_SERVICE_TYPE if self.ext_net: task_args['floating_network'] = str(self.ext_net.name) |