Configure the param auth_version in tempest.conf 47/35847/1
authorLinda Wang <wangwulin@huawei.com>
Wed, 7 Jun 2017 02:19:32 +0000 (02:19 +0000)
committerLinda Wang <wangwulin@huawei.com>
Wed, 7 Jun 2017 02:19:32 +0000 (02:19 +0000)
1. If the auth_url is "https://192.168.31.222:443/identity-admin/v3", the
   auth_version in tempest.conf is supposed to be "v3", not "id".
2. For rally 0.8.1. it is a bug when obtaining the auth_version, please see
   [1], which has been fixed in rally master.

[1]: https://review.openstack.org/#/c/468599/

Change-Id: Ia7474938a741a0954f17f7c7650544dbc0a28853
Signed-off-by: Linda Wang <wangwulin@huawei.com>
functest/opnfv_tests/openstack/tempest/conf_utils.py

index 15365cc..4eb5661 100644 (file)
@@ -290,6 +290,11 @@ def configure_tempest_update_params(tempest_conf_file,
     config.set('identity', 'password',
                CONST.__getattribute__('tempest_identity_user_password'))
     config.set('identity', 'region', 'RegionOne')
+    if os_utils.is_keystone_v3():
+        auth_version = 'v3'
+    else:
+        auth_version = 'v2'
+    config.set('identity', 'auth_version', auth_version)
     config.set(
         'validation', 'ssh_timeout',
         CONST.__getattribute__('tempest_validation_ssh_timeout'))