Specify public keystone endpoint when creating client
Change-Id: Ib5bab9e7b21937e70f4f90a65b3b518705378b74
This commit is contained in:
parent
23b9d62dc5
commit
c72a3759b6
@ -25,7 +25,8 @@ class KeystoneNotFoundError(Exception):
|
||||
class TokenConf(object):
|
||||
"""The Token Validator configuration class."""
|
||||
|
||||
def __init__(self, mech_id, password, rms_url, tenant_name, version, user_domain_name, project_domain_name):
|
||||
def __init__(self, mech_id, password, rms_url, tenant_name,
|
||||
version, user_domain_name, project_domain_name):
|
||||
"""Initialize the Token Validator configuration.
|
||||
|
||||
:param mech_id: Username for Keystone
|
||||
@ -182,7 +183,8 @@ def _get_keystone_client(client, conf, keystone_ep, lcp_id):
|
||||
project_name=conf.tenant_name,
|
||||
auth_url=keystone_ep + '/v' + conf.version)
|
||||
sess = ksc_session.Session(auth=auth)
|
||||
_KEYSTONES[keystone_ep] = client.Client(session=sess)
|
||||
_KEYSTONES[keystone_ep] = client.Client(session=sess,
|
||||
interface='public')
|
||||
return _KEYSTONES[keystone_ep]
|
||||
except Exception:
|
||||
logger.critical(
|
||||
|
Loading…
x
Reference in New Issue
Block a user