diff --git a/ansible/roles/haproxy/tasks/precheck.yml b/ansible/roles/haproxy/tasks/precheck.yml index 2669d5fb82..cd4f6cc555 100644 --- a/ansible/roles/haproxy/tasks/precheck.yml +++ b/ansible/roles/haproxy/tasks/precheck.yml @@ -115,7 +115,7 @@ state: stopped when: - enable_haproxy | bool - - container_facts['haproxy'] is not defined + - "host_running_haproxy == 'None'" - inventory_hostname in groups['haproxy'] - name: Checking if kolla_internal_vip_address is in the same network as api_interface on all nodes diff --git a/releasenotes/notes/fix-haproxy-monitor-precheck-487b85f4e93313b1.yaml b/releasenotes/notes/fix-haproxy-monitor-precheck-487b85f4e93313b1.yaml new file mode 100644 index 0000000000..933afee4b1 --- /dev/null +++ b/releasenotes/notes/fix-haproxy-monitor-precheck-487b85f4e93313b1.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes an issue with the HAProxy monitor VIP precheck when some instances of + HAProxy are running and others are not. See `bug 1866617 + `__.