It sets OS_INTERFACE to force the use of public endpoints as the
internal and management endpoints are unreachable from jumphost.
It also sets OS_REGION_NAME to avoid the fallback mechanism in tempest
selecting the first endpoint listed in catalog (here internal) [1]
EXTERNAL_NETWORK is defined to allow running Functest testcases in
parallel.
[1] https://github.com/openstack/tempest/blob/21.0.0/tempest/lib/auth.py#L583
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: I9933316479d1830d3f37dcae19940be0c8f185b1
trap "{ sudo rm -rf $TMP_DIR; }" EXIT
-touch env
+cat > env << EOF
+EXTERNAL_NETWORK=public
+EOF
cat > openstack.creds << EOF
-export OS_AUTH_URL='http://identity-airship.intel-pod17.opnfv.org:80/v3'
+export OS_AUTH_URL=http://identity-airship.intel-pod17.opnfv.org:80/v3
export OS_USER_DOMAIN_NAME=default
export OS_PROJECT_DOMAIN_NAME=default
export OS_USERNAME=admin
export OS_PROJECT_NAME=admin
export OS_PASSWORD=password123
export OS_IDENTITY_API_VERSION=3
+export OS_INTERFACE=public
+export OS_REGION_NAME=intel-pod17
EOF
# check/download images
exit 1
;;
esac
-