Switch endpoint_type to publicURL
We were using adminURL to talk to Keystone API but in most cases, we run Tempest from outside of admin network for security reasons. We now use public URL, so the public network, which is what we expect our cloud users to do. Change-Id: Iefcca23dc7593148cfa836d588d484cac0707851
This commit is contained in:
@ -520,32 +520,32 @@ class ClientManager(object):
|
||||
if "v2.0" in conf.get("identity", "uri"):
|
||||
self.identity = identity_client.IdentityClient(
|
||||
_auth, conf.get_defaulted('identity', 'catalog_type'),
|
||||
self.identity_region, endpoint_type='adminURL',
|
||||
self.identity_region, endpoint_type='publicURL',
|
||||
**default_params)
|
||||
else:
|
||||
self.identity = identity_v3_client.IdentityClient(
|
||||
_auth, conf.get_defaulted('identity', 'catalog_type'),
|
||||
self.identity_region, endpoint_type='adminURL',
|
||||
self.identity_region, endpoint_type='publicURL',
|
||||
**default_params)
|
||||
|
||||
self.tenants = ProjectsClient(
|
||||
_auth,
|
||||
conf.get_defaulted('identity', 'catalog_type'),
|
||||
self.identity_region,
|
||||
'adminURL',
|
||||
'publicURL',
|
||||
self.identity_version,
|
||||
**default_params)
|
||||
|
||||
self.set_roles_client(
|
||||
auth=_auth,
|
||||
conf=conf,
|
||||
endpoint_type='adminURL',
|
||||
endpoint_type='publicURL',
|
||||
default_params=default_params)
|
||||
|
||||
self.set_users_client(
|
||||
auth=_auth,
|
||||
conf=conf,
|
||||
endpoint_type='adminURL',
|
||||
endpoint_type='publicURL',
|
||||
default_params=default_params)
|
||||
|
||||
self.images = images_client.ImagesClient(
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
We were using adminURL to talk to Keystone API but in most cases, we run Tempest
|
||||
from outside of admin network for security reasons. We now use public URL, so the
|
||||
public network, which is what we expect our cloud users to do.
|
Reference in New Issue
Block a user