Add the choice of interface for keystoneclient
authorLinda Wang <wangwulin@huawei.com>
Thu, 27 Apr 2017 07:01:24 +0000 (07:01 +0000)
committerLinda Wang <wangwulin@huawei.com>
Tue, 2 May 2017 06:14:44 +0000 (06:14 +0000)
commit4d86cd2a8934a247319ea13d1be19bb4e631afd5
tree1daacbdfdfc52093ba536f542b8e8f264b513ffe
parent90238c6c2c6b8c63062f3fe1c1611d594d72604b
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>
functest/ci/check_os.sh
functest/tests/unit/utils/test_openstack_utils.py
functest/utils/openstack_utils.py