Reviewed: https://review.opendev.org/716915 Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=79747c4d8dfcad54a120d3f587501e8e7300d5b7 Submitter: Zuul Branch: stable/train
commit 79747c4d8dfcad54a120d3f587501e8e7300d5b7 Author: Mark Goddard <email address hidden> Date: Wed Mar 25 11:00:31 2020 +0000
Fix HAProxy prechecks during scale-out with limit
Deploy HAProxy on one or more servers. Add another server to the inventory in the haproxy group, and run the following:
kolla-ansible prechecks --limit <new host>
The following task will fail:
TASK [haproxy : Checking if kolla_internal_vip_address and kolla_external_vip_address are not pingable from any node]
This happens because ansible does not execute on hosts where haproxy/keepalived is running, and therefore does not know that the VIP should be active.
This change skips VIP prechecks when not all HAProxy hosts are in the play.
Closes-Bug: #1868986
Change-Id: Ifbc73806b768f76f803ab01c115a9e5c2e2492ac (cherry picked from commit f3350d4e130b17b4035a8b67420d7015fc6cc99b)
Reviewed: https:/ /review. opendev. org/716915 /git.openstack. org/cgit/ openstack/ kolla-ansible/ commit/ ?id=79747c4d8df cad54a120d3f587 501e8e7300d5b7
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit 79747c4d8dfcad5 4a120d3f587501e 8e7300d5b7
Author: Mark Goddard <email address hidden>
Date: Wed Mar 25 11:00:31 2020 +0000
Fix HAProxy prechecks during scale-out with limit
Deploy HAProxy on one or more servers. Add another server to the
inventory in the haproxy group, and run the following:
kolla-ansible prechecks --limit <new host>
The following task will fail:
TASK [haproxy : Checking if kolla_internal_ vip_address and
kolla_ external_ vip_address are not pingable from any node]
This happens because ansible does not execute on hosts where keepalived is running, and therefore does not know that the VIP
haproxy/
should be active.
This change skips VIP prechecks when not all HAProxy hosts are in the
play.
Closes-Bug: #1868986
Change-Id: Ifbc73806b768f7 6f803ab01c115a9 e5c2e2492ac 4035a8b67420d70 15fc6cc99b)
(cherry picked from commit f3350d4e130b17b