diff options
author | Linda Wang <wangwulin@huawei.com> | 2017-04-27 07:01:24 +0000 |
---|---|---|
committer | Linda Wang <wangwulin@huawei.com> | 2017-05-02 06:14:44 +0000 |
commit | 4d86cd2a8934a247319ea13d1be19bb4e631afd5 (patch) | |
tree | 1daacbdfdfc52093ba536f542b8e8f264b513ffe /functest/utils | |
parent | 90238c6c2c6b8c63062f3fe1c1611d594d72604b (diff) |
Add the choice of interface for keystoneclient
1. When functest is running on external host not jumpserver,
keystoneclient is used to retrieve or create projects/tenants
and users, which would fail to establish connection to the admin
endpoint.
2. Keystoneclient will connect to the public endpoint by setting the
env OS_INTERFACE to be public.
3. Remove the admin endpoint check in check_os.sh.
JIRA: FUNCTEST-801
Change-Id: I324f5c8fdf61447319070a23f6b6bc6b1bbc1d48
Signed-off-by: Linda Wang <wangwulin@huawei.com>
Diffstat (limited to 'functest/utils')
-rw-r--r-- | functest/utils/openstack_utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/functest/utils/openstack_utils.py b/functest/utils/openstack_utils.py index 929a761e..49b9c840 100644 --- a/functest/utils/openstack_utils.py +++ b/functest/utils/openstack_utils.py @@ -198,7 +198,9 @@ def get_keystone_client_version(): def get_keystone_client(other_creds={}): sess = get_session(other_creds) - return keystoneclient.Client(get_keystone_client_version(), session=sess) + return keystoneclient.Client(get_keystone_client_version(), + session=sess, + interface=os.getenv('OS_INTERFACE', 'admin')) def get_nova_client_version(): |