contrail-charms: add option to chose if public or internal Openstack endpoints are configured

Bug #1766281 reported by Bernhard Koessler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.1
Fix Committed
Medium
Andrey Pavlov
R5.0
Invalid
Medium
Unassigned
Trunk
Fix Committed
Medium
Andrey Pavlov

Bug Description

Currently, juju charms retrieve public URL from Openstack endpoints. In some environments it is preferable to configure internal/admin Openstack endpoints.

Code Reference: https://github.com/Juniper/contrail-charms/blob/82f4093e24c55e471d6cdd4965366529cd7bbf2c/contrail-openstack/hooks/contrail_openstack_utils.py#L108

Contrail networking 4.1.0 with Canonical Openstack/juju charms.

e.g. for WebUI config in https://github.com/Juniper/contrail-charms/blob/master/contrail-controller/templates/controller.conf

[WEBUI]
# http_listen_port = 8080
# https_listen_port = 8143
# webui_storage_enable = False

{%- if compute_service_ip %}
{%- if version >= 40100 %}
compute_manager_ip = {{ compute_service_ip }}
{%- else %}
nova_api_ip = {{ compute_service_ip }}
{%- endif %}
{%- endif %}

{%- if image_service_ip %}
{%- if version >= 40100 %}
image_manager_ip = {{ image_service_ip }}
{%- else %}
glance_api_ip = {{ image_service_ip }}
{%- endif %}
{%- endif %}

{%- if network_service_ip and (version >= 40001) %}
network_manager_ip = {{ network_service_ip }}
{%- endif %}

information type: Proprietary → Public
Changed in juniperopenstack:
assignee: nobody → Andrey Pavlov (apavlov-e)
Revision history for this message
Andrey Pavlov (apavlov-e) wrote :

it's not applicable to R5.x

Revision history for this message
Andrey Pavlov (apavlov-e) wrote :

option use-internal-endpoints (similar to OpenStacks' charms) added for contrail-openstack charm.

https://github.com/Juniper/contrail-charms/commit/15545a66ee28b4e0a1ee15c0904860709e158984

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.