HAProxy backends missing all servers when using "split" config

Bug #1872545 reported by Jason Anderson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Jason Anderson
Train
Fix Released
Medium
Mark Goddard
Ussuri
Fix Released
Medium
Jason Anderson

Bug Description

**Bug Report**

What happened: When using the "split" config template flavor, by default no servers will be added to the backend config, which causes all services to return 503s, as there is no backend behind the frontend.

What you expected to happen: HAProxy routes traffic to the host running the relevant service container.

How to reproduce it (minimal and precise):

Use "split" config template style. That's it!

An example of the very sad HAProxy config:

---
frontend horizon_front
    mode http
    http-request del-header X-Forwarded-Proto
    option httplog
    option forwardfor
    http-request set-header X-Forwarded-Proto https if { ssl_fc }
    bind 10.140.81.3:80
    default_backend horizon_back

backend horizon_back
    mode http
    balance source
---

description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

Fix proposed to branch: master
Review: https://review.opendev.org/719683

Changed in kolla-ansible:
assignee: nobody → Jason Anderson (jasonandersonatuchicago)
status: New → In Progress
Mark Goddard (mgoddard)
Changed in kolla-ansible:
importance: Undecided → Medium
Changed in kolla-ansible:
assignee: Jason Anderson (jasonandersonatuchicago) → Mark Goddard (mgoddard)
Changed in kolla-ansible:
assignee: Mark Goddard (mgoddard) → Jason Anderson (jasonandersonatuchicago)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.opendev.org/719683
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=6d00236edb5339e9877500cef9dc7169a17163b3
Submitter: Zuul
Branch: master

commit 6d00236edb5339e9877500cef9dc7169a17163b3
Author: Jason Anderson <email address hidden>
Date: Mon Apr 13 16:01:25 2020 -0500

    [haproxy-config] Fix missing servers in split cfg

    When using the split config style, all backends would be empty, which
    meant that HAProxy was unable to serve any traffic. This turned out to
    be due to a bad default in the split config template.

    Closes-Bug: #1872545
    Change-Id: I952e526e735e1d31445963f04d41d66bbdbfdee4

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/720472

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

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/720473

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

Reviewed: https://review.opendev.org/720472
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=e3cd5a0186fb8f4be4248ca1a2d1f16ececb65f4
Submitter: Zuul
Branch: stable/train

commit e3cd5a0186fb8f4be4248ca1a2d1f16ececb65f4
Author: Jason Anderson <email address hidden>
Date: Mon Apr 13 16:01:25 2020 -0500

    [haproxy-config] Fix missing servers in split cfg

    When using the split config style, all backends would be empty, which
    meant that HAProxy was unable to serve any traffic. This turned out to
    be due to a bad default in the split config template.

    Closes-Bug: #1872545
    Change-Id: I952e526e735e1d31445963f04d41d66bbdbfdee4
    (cherry picked from commit 6d00236edb5339e9877500cef9dc7169a17163b3)

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

Reviewed: https://review.opendev.org/720473
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=9f944d4bd1c1f4746c88b280a77f86be30cc6e61
Submitter: Zuul
Branch: stable/stein

commit 9f944d4bd1c1f4746c88b280a77f86be30cc6e61
Author: Jason Anderson <email address hidden>
Date: Mon Apr 13 16:01:25 2020 -0500

    [haproxy-config] Fix missing servers in split cfg

    When using the split config style, all backends would be empty, which
    meant that HAProxy was unable to serve any traffic. This turned out to
    be due to a bad default in the split config template.

    Closes-Bug: #1872545
    Change-Id: I952e526e735e1d31445963f04d41d66bbdbfdee4
    (cherry picked from commit 6d00236edb5339e9877500cef9dc7169a17163b3)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.