Bug 1326224 - [RFE] [Neutron] [LBaaS v2] Add process monitor for haproxy
Summary: [RFE] [Neutron] [LBaaS v2] Add process monitor for haproxy
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron-lbaas
Version: 9.0 (Mitaka)
Hardware: Unspecified
OS: Unspecified
Target Milestone: Upstream M3
: 11.0 (Ocata)
Assignee: Nir Magnezi
QA Contact: Toni Freger
: 1269981 (view as bug list)
Depends On:
Blocks: 1046780 1273812 1415828 1431152
TreeView+ depends on / blocked
Reported: 2016-04-12 08:19 UTC by Nir Magnezi
Modified: 2020-09-10 09:35 UTC (History)
17 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
This enahncement implements the 'ProcessMonitor' class in the 'HaproxyNSDriver' class (v2), This class utilizes the 'external_process' module to monitor and respawn HAProxy processes if and when needed. The LBaaS agent (v2) loads 'external_process' related options and take a configured action when HAProxy dies unexpectedly.
Clone Of:
: 1415828 (view as bug list)
Last Closed: 2017-05-17 19:28:33 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Launchpad 1565801 0 None None None 2016-04-12 08:19:07 UTC
OpenStack gerrit 327966 0 None None None 2016-06-13 12:27:36 UTC
OpenStack gerrit 344658 0 None None None 2016-09-01 19:55:32 UTC
OpenStack gerrit 345263 0 None None None 2016-07-24 20:29:21 UTC
Red Hat Product Errata RHEA-2017:1245 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 11.0 Bug Fix and Enhancement Advisory 2017-05-17 23:01:50 UTC

Description Nir Magnezi 2016-04-12 08:19:07 UTC
Description of problem:
Bug 1325861 (launchpad #1565511) aims to solve cases where the lbaas agent goes offline.
To have a complete high-availability solution for lbaas agent with haproxy running in namespace, we would also want to handle a case where the haproxy process itself stopped.

This[1] neutron spec offers the following approach:
"We propose monitoring those processes, and taking a configurable action, making neutron more resilient to external failures."

[1] http://specs.openstack.org/openstack/neutron-specs/specs/juno/agent-child-processes-status.html

Comment 2 Assaf Muller 2016-06-04 01:21:01 UTC
*** Bug 1269981 has been marked as a duplicate of this bug. ***

Comment 10 Nir Yechiel 2016-09-01 14:53:17 UTC
Both patches look to be merged.

Comment 11 Assaf Muller 2016-09-01 19:55:32 UTC
https://review.openstack.org/#/c/327966/ was reverted, adding https://review.openstack.org/#/c/344658/ as an external tracker.

Comment 18 Assaf Muller 2017-01-13 20:15:51 UTC
Patch has been merged upstream.

Comment 23 Nir Magnezi 2017-02-15 13:40:32 UTC
How to test:
1. Create a Loadbalancer
2. Create a Listener
3. Create Pool and memebers
4. Verify loadbalancing functionality.
5. Kill the haproxy process
6. Wait for ~30 sec and see if it respawns.
7. Redo step #4

Comment 28 Alexander Stafeyev 2017-03-23 11:27:16 UTC
fits what I have in my deployment. 



Comment 29 errata-xmlrpc 2017-05-17 19:28:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.