aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack/tempest/conf_utils.py
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2017-03-09 16:43:02 +0400
committerMichael Polenchuk <mpolenchuk@mirantis.com>2017-03-14 12:44:07 +0400
commit3b006a6a3742325c0fe4ccc557b7a8e140f2cab2 (patch)
tree8b367b35719caaedd9da8937ec00d4155139071f /functest/opnfv_tests/openstack/tempest/conf_utils.py
parent11d59071a11fcec1ef9fcd323070c6d4f151c7cd (diff)
[tempest/defcore] Configure volume device name
Actually attach_detach_volume must be skipped because the device name ain't reliable and that's using a hard-coded device name in config. This test should just get the device info after the attach and use that rather than the hard-coded config option in Tempest that ain't likely to work - the test should have been written more dynamically. However, set volume device name to "vdc" since "vdb" is used for config drive when force_config_drive=True is in action. Change-Id: Ic70de93a609df932c7749a94f71505e927df1b79 Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
Diffstat (limited to 'functest/opnfv_tests/openstack/tempest/conf_utils.py')
-rw-r--r--functest/opnfv_tests/openstack/tempest/conf_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/conf_utils.py b/functest/opnfv_tests/openstack/tempest/conf_utils.py
index 2c113367b..dc08aa25d 100644
--- a/functest/opnfv_tests/openstack/tempest/conf_utils.py
+++ b/functest/opnfv_tests/openstack/tempest/conf_utils.py
@@ -153,6 +153,8 @@ def configure_tempest_update_params(tempest_conf_file,
'compute',
'fixed_network_name',
CONST.tempest_private_net_name)
+ config.set('compute', 'volume_device_name',
+ CONST.tempest_volume_device_name)
if CONST.tempest_use_custom_images:
if IMAGE_ID is not None:
config.set('compute', 'image_ref', IMAGE_ID)