endpoint_type option not used with single tenant
Currently we are not able to specify the endpoint_type for Neutron, Nova and Cinder clients with single tenant. publicURL is configured by default but it could be nice to have the possibility to choose anything else. Change-Id: Ibb791cacc0e08de2d87b4348f84c9e573849ec51 Closes-Bug: #1776229
This commit is contained in:
parent
9b7c7eed20
commit
dff637ad27
@ -0,0 +1,6 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
[`bug 1776229 <https://bugs.launchpad.net/trove/+bug/1776229>`_]
|
||||
endpoint_type is now working with single tenant which gives the possibility
|
||||
to override the publicURL value.
|
@ -91,7 +91,8 @@ def nova_client_trove_admin(context, region_name=None, password=None):
|
||||
session=ks_session,
|
||||
service_type=CONF.nova_compute_service_type,
|
||||
region_name=region_name or CONF.os_region_name,
|
||||
insecure=CONF.nova_api_insecure)
|
||||
insecure=CONF.nova_api_insecure,
|
||||
endpoint_type=CONF.nova_compute_endpoint_type)
|
||||
|
||||
if CONF.nova_compute_url and CONF.nova_proxy_admin_tenant_id:
|
||||
client.client.endpoint_override = "%s/%s/" % (
|
||||
@ -113,7 +114,8 @@ def cinder_client_trove_admin(context, region_name=None):
|
||||
session=ks_session,
|
||||
service_type=CONF.cinder_service_type,
|
||||
region_name=region_name or CONF.os_region_name,
|
||||
insecure=CONF.cinder_api_insecure)
|
||||
insecure=CONF.cinder_api_insecure,
|
||||
endpoint_type=CONF.cinder_endpoint_type)
|
||||
|
||||
if CONF.cinder_url and CONF.nova_proxy_admin_tenant_id:
|
||||
client.client.management_url = "%s/%s/" % (
|
||||
@ -134,7 +136,8 @@ def neutron_client_trove_admin(context, region_name=None):
|
||||
session=ks_session,
|
||||
service_type=CONF.neutron_service_type,
|
||||
region_name=region_name or CONF.os_region_name,
|
||||
insecure=CONF.neutron_api_insecure)
|
||||
insecure=CONF.neutron_api_insecure,
|
||||
endpoint_type=CONF.neutron_endpoint_type)
|
||||
|
||||
if CONF.neutron_url:
|
||||
client.management_url = CONF.neutron_url
|
||||
|
Loading…
x
Reference in New Issue
Block a user