Fix Ironic API healthcheck with backend TLS

Closes-Bug: #1990819
Change-Id: I12c451077114b77b11810f25eb5b6187cdf08ad9
This commit is contained in:
Pierre Riteau 2022-09-26 10:51:50 +02:00
parent e890f161ed
commit 5c55583b04
2 changed files with 6 additions and 1 deletions

View File

@ -149,7 +149,7 @@ ironic_api_enable_healthchecks: "{{ enable_container_healthchecks }}"
ironic_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}" ironic_api_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
ironic_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}" ironic_api_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
ironic_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}" ironic_api_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
ironic_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ ironic_api_listen_port }}"] ironic_api_healthcheck_test: ["CMD-SHELL", "healthcheck_curl {{ 'https' if ironic_enable_tls_backend | bool else 'http' }}://{{ api_interface_address | put_address_in_context('url') }}:{{ ironic_api_listen_port }}"]
ironic_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}" ironic_api_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
ironic_api_healthcheck: ironic_api_healthcheck:
interval: "{{ ironic_api_healthcheck_interval }}" interval: "{{ ironic_api_healthcheck_interval }}"

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes Ironic API healthchecks when backend TLS encryption is enabled.
`LP#1990819 <https://launchpad.net/bugs/1990819>`__