Use internal URLs for openstackclient commands

Openstackclient uses public urls by default. They can be not
accessible.

Change-Id: If58d1780d50e63fae5166273353e0eefa7f2df5d
This commit is contained in:
Andrey Pavlov 2016-11-03 08:48:45 +00:00
parent 54303d3268
commit b5a0ec86b7
1 changed files with 1 additions and 0 deletions

View File

@ -167,6 +167,7 @@ def preexec_fn(user_uid, user_gid, user_home):
def openstackclient_preexec_fn():
def result():
os.environ["OS_IDENTITY_API_VERSION"] = "3"
os.environ["OS_INTERFACE"] = "internal"
os.environ["OS_PROJECT_DOMAIN_NAME"] = 'default'
os.environ["OS_PASSWORD"] = VARIABLES['openstack']['user_password']
os.environ["OS_USERNAME"] = VARIABLES['openstack']['user_name']