Set endpoint type variables to publicURL in public-openrc.sh

Change-Id: I9d7f0bf7daa6d1abe31de0e76a508820ed123c28
Story: 2007950
Task: 40426
This commit is contained in:
Pierre Riteau 2020-07-23 15:43:31 +02:00
parent 97373c0519
commit 271bc72dae
2 changed files with 14 additions and 0 deletions

View File

@ -5,6 +5,12 @@
export OS_AUTH_URL={{ public_openrc_auth_url }} export OS_AUTH_URL={{ public_openrc_auth_url }}
{% elif "export OS_INTERFACE" in line %} {% elif "export OS_INTERFACE" in line %}
export OS_INTERFACE=public export OS_INTERFACE=public
{% elif "export OS_ENDPOINT_TYPE" in line %}
export OS_ENDPOINT_TYPE=publicURL
{% elif "export OS_MANILA_ENDPOINT_TYPE" in line %}
export OS_MANILA_ENDPOINT_TYPE=publicURL
{% elif "export OS_MISTRAL_ENDPOINT_TYPE" in line %}
export OS_MISTRAL_ENDPOINT_TYPE=publicURL
{% elif "export OS_CACERT" in line and kolla_external_fqdn_cacert is not none %} {% elif "export OS_CACERT" in line and kolla_external_fqdn_cacert is not none %}
export OS_CACERT={{ kolla_external_fqdn_cacert }} export OS_CACERT={{ kolla_external_fqdn_cacert }}
{% else %} {% else %}

View File

@ -0,0 +1,8 @@
---
fixes:
- |
Changes the value of ``OS_ENDPOINT_TYPE``, ``OS_MANILA_ENDPOINT_TYPE``, and
``OS_MISTRAL_ENDPOINT_TYPE`` in ``public-openrc.sh`` to use ``publicURL``,
which should fix issues with legacy CLI tools on hosts without access to
the internal API. See `story 2007950
<https://storyboard.openstack.org/#!/story/2007950>`__ for details.