From 0026043552c2db4b754320b00c2cbc6699f6c500 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Thu, 20 Sep 2018 13:39:56 +0200 Subject: Allow overriding default storage protocol MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It adds a new env var STORAGE_PROTOCOL to override storage_protocol in tempest. The default value is unchanged [1]. [1] https://docs.openstack.org/tempest/latest/sampleconf.html Co-Authored-By: Viktor Tikkanen Change-Id: I19e4e25212b6f6176e3b967e01eb634c15e4d474 Signed-off-by: Cédric Ollivier (cherry picked from commit a561c6ca316feb1a203327aa729ac0317f70df48) --- functest/opnfv_tests/openstack/tempest/conf_utils.py | 4 +++- functest/utils/env.py | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'functest') diff --git a/functest/opnfv_tests/openstack/tempest/conf_utils.py b/functest/opnfv_tests/openstack/tempest/conf_utils.py index 4cb8bd8c7..8eaf609ef 100644 --- a/functest/opnfv_tests/openstack/tempest/conf_utils.py +++ b/functest/opnfv_tests/openstack/tempest/conf_utils.py @@ -225,7 +225,9 @@ def configure_tempest_update_params( getattr(config.CONF, 'tempest_validation_ssh_timeout')) rconfig.set('object-storage', 'operator_role', getattr(config.CONF, 'tempest_object_storage_operator_role')) - + if not rconfig.has_section('volume'): + rconfig.add_section('volume') + rconfig.set('volume', 'storage_protocol', env.get('STORAGE_PROTOCOL')) rconfig.set( 'identity', 'v3_endpoint_type', os.environ.get('OS_INTERFACE', 'public')) diff --git a/functest/utils/env.py b/functest/utils/env.py index 1f649834d..3d8154ca9 100644 --- a/functest/utils/env.py +++ b/functest/utils/env.py @@ -34,7 +34,8 @@ INPUTS = { 'VOLUME_DEVICE_NAME': 'vdb', 'NAMESERVER': '8.8.8.8', 'NEW_USER_ROLE': 'Member', - 'USE_DYNAMIC_CREDENTIALS': 'True' + 'USE_DYNAMIC_CREDENTIALS': 'True', + 'STORAGE_PROTOCOL': 'iSCSI' } -- cgit 1.2.3-korg