Leverage on VOLUME_DEVICE_NAME if Fuel 23/53723/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Tue, 13 Mar 2018 20:21:53 +0000 (21:21 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Tue, 13 Mar 2018 20:26:09 +0000 (21:26 +0100)
As Fuel sets VOLUME_DEVICE_NAME [1], the specific conditional
instruction can be removed.

[1] https://build.opnfv.org/ci/job/functest-fuel-baremetal-daily-master/18/console

Change-Id: Iee3fd7c969cf31c8017b73c6ffd646f0e33a9e73
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
functest/opnfv_tests/openstack/tempest/conf_utils.py

index 6121ab9..57a3fcd 100644 (file)
@@ -233,12 +233,7 @@ def configure_tempest_update_params(tempest_conf_file, res_dir,
     rconfig = ConfigParser.RawConfigParser()
     rconfig.read(tempest_conf_file)
     rconfig.set('compute', 'fixed_network_name', network_name)
-    if CI_INSTALLER_TYPE == 'fuel':
-        # backward compatibility till Fuel jobs set the right env var
-        rconfig.set('compute', 'volume_device_name', 'vdc')
-    else:
-        rconfig.set(
-            'compute', 'volume_device_name', env.get('VOLUME_DEVICE_NAME'))
+    rconfig.set('compute', 'volume_device_name', env.get('VOLUME_DEVICE_NAME'))
     if image_id is not None:
         rconfig.set('compute', 'image_ref', image_id)
     if IMAGE_ID_ALT is not None: