aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack/rally/rally.py
diff options
context:
space:
mode:
authorJuha Kosonen <juha.kosonen@nokia.com>2019-04-08 14:36:10 +0300
committerJuha Kosonen <juha.kosonen@nokia.com>2019-04-09 11:38:19 +0300
commitebc2b41505299846faeb2163d34d820a8ef2bdb2 (patch)
tree221791cb244e79117a0dea539fbcaa670b652907 /functest/opnfv_tests/openstack/rally/rally.py
parent8ee279600186f2713b4c181965d8d290d2644cfb (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>
Diffstat (limited to 'functest/opnfv_tests/openstack/rally/rally.py')
-rw-r--r--functest/opnfv_tests/openstack/rally/rally.py4
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 a6ec148cf..1f56e168c 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)