Skip to content

Commit 9f13719

Browse files
markgoddardyoctozepto
authored andcommitted
Fix ironic_ipxe healthcheck on Debian/Ubuntu
The healthcheck checks for a process called httpd, but these distros call it apache2. This results in the ironic_ipxe container being marked as unhealthy. This change fixes the issue by making the process name distro dependent. Change-Id: I0b0126e3071146e7f8593ba970ecbed65b36fcfa Closes-Bug: #1937037 (cherry picked from commit aa28675)
1 parent e0b798c commit 9f13719

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ansible/roles/ironic/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ ironic_ipxe_enable_healthchecks: "{{ enable_container_healthchecks }}"
170170
ironic_ipxe_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
171171
ironic_ipxe_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
172172
ironic_ipxe_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
173-
ironic_ipxe_healthcheck_test: ["CMD-SHELL", "healthcheck_listen httpd {{ ironic_ipxe_port }}"]
173+
ironic_ipxe_healthcheck_test: ["CMD-SHELL", "healthcheck_listen {% if kolla_base_distro in ['debian', 'ubuntu'] %}apache2{% else %}httpd{% endif %} {{ ironic_ipxe_port }}"]
174174
ironic_ipxe_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
175175
ironic_ipxe_healthcheck:
176176
interval: "{{ ironic_ipxe_healthcheck_interval }}"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes the container health check for the ``ironic_ipxe`` container on
5+
Debian and Ubuntu systems. `LP#1937037
6+
<https://bugs.launchpad.net/kolla-ansible/+bug/1937037>`__

0 commit comments

Comments
 (0)