public-openrc: Add OS_CACERT even if admin-openrc lacks it

Fixes issue where OS_CACERT was missing from public-openrc when
admin-openrc does not include OS_CACERT, despite
kolla_public_openrc_cacert being set.

Closes-Bug: #2110549
Change-Id: I1dfc929d0a92ff9a2c0956654e3b8b2bdf2067d2
This commit is contained in:
Bartosz Bezak
2025-05-13 14:42:34 +02:00
committed by Pierre Riteau
parent c2ce28256c
commit 2393044b59
2 changed files with 9 additions and 2 deletions

View File

@@ -11,9 +11,10 @@ export OS_ENDPOINT_TYPE=publicURL
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_public_openrc_cacert is not none %}
export OS_CACERT={{ kolla_public_openrc_cacert }}
{% else %}
{{ line }}
{% endif %}
{% endfor %}
{% if kolla_public_openrc_cacert is not none %}
export OS_CACERT={{ kolla_public_openrc_cacert }}
{% endif %}

View File

@@ -0,0 +1,6 @@
---
fixes:
- |
Fixes ``public-openrc.sh`` missing the ``OS_CACERT`` variable when absent
from ``admin-openrc.sh``.
`LP#2110549 <https://bugs.launchpad.net/kayobe/+bug/2110549>`__