Comment 5 for bug 1868986

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/train)

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)