Fixes HA Proxy backend check for ODL

This patch removed listen_options for ODL:
https://review.openstack.org/#/c/562036/

Which introduced a regression where default options were then applied
for ODL, including httpchk.  This does not work with ODL because ODL
will not respond to an HTTP GET without specific paths used.  This patch
adds the correct path that may be used to issue HTTP backend check.

Closes-Bug: 1768037

Change-Id: I60bdfc436044851ac02449c262d382b07b888f79
Signed-off-by: Tim Rozet <trozet@redhat.com>
This commit is contained in:
Tim Rozet 2018-04-30 10:28:17 -04:00
parent 1a73b868ce
commit c53ea2512f
2 changed files with 7 additions and 0 deletions

View File

@ -1492,6 +1492,8 @@ class tripleo::haproxy (
mode => 'http',
member_options => union($haproxy_member_options, $internal_tls_member_options),
service_network => $opendaylight_network,
listen_options => merge($default_listen_options,
{ 'option' => [ 'httpchk GET /controller/nb/v2/neutron', 'httplog' ] }),
}
::tripleo::haproxy::endpoint { 'opendaylight_ws':

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes HA Proxy with OpenDaylight to use the correct HTTP URL for backend
check. See https://bugs.launchpad.net/tripleo/+bug/1768037