Comment 12 for bug 1864409

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to puppet-tripleo (stable/ussuri)

Reviewed: https://review.opendev.org/731062
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=7c9cd6e6209ba8647007740f49916d08f81f18ee
Submitter: Zuul
Branch: stable/ussuri

commit 7c9cd6e6209ba8647007740f49916d08f81f18ee
Author: Michele Baldessari <email address hidden>
Date: Thu May 14 09:01:26 2020 +0200

    Only run the VIP creation code when enable_load_balancer is set to true

    When we use an external loadbalancer we do not want neither haproxy nor
    VIPs on our control plane, since they will be managed externally.

    So a user will usually include something like the following template:
    /usr/share/openstack-tripleo-heat-templates/environments/external-loadbalancer-vip.yaml
    or implement a similar set of parameters/resource mapping.
    The main needed params are: EnableLoadBalancer set to false, the
    noop-ing of the haproxy service via 'OS::TripleO::Services::HAproxy: OS::Heat::None'
    and the hard-coding of the external VIPs via the *VirtualFixedIPs
    parameters.

    To make sure we do not create the OVNDbs VIP we will use
    the listen_on_master_ip_only as the variable to
    determine if an external loadbalancer is used:
    - no -> external LB used
    - yes -> pcmk+haproxy i.e. our own loadbalancer

    We cannot use the enable_load_balancer hiera key that is normally
    set by haproxy, because the haproxy service will be nooped.

    Related-Bug: #1864409

    Change-Id: Ie313c0410ed684661aeea77158572035ddfcfcd5
    (cherry picked from commit 50c5e1e6a52798ecebd35c3a1892573ec454061b)