Pass interface to keystone client

without this, ceilometer will only ever work with public endpoint
of Identity API v3, which does not work for some network topologies.

Change-Id: I00b7e420fcfce11f7c245a73ab1d007f939f74ad
This commit is contained in:
Pavlo Shchelokovskyy 2024-11-12 11:52:17 +00:00
parent 09c9d05ae9
commit fcfa13ebb3

View File

@ -43,6 +43,7 @@ def get_client(conf, trust_id=None, requests_session=None,
"""Return a client for keystone v3 endpoint, optionally using a trust."""
session = get_session(conf, requests_session=requests_session, group=group)
return ks_client_v3.Client(session=session, trust_id=trust_id,
interface=conf[group].interface,
region_name=conf[group].region_name)