Bug 1676501 - HAProxy falling back to tcp mode for Octavia listen
Summary: HAProxy falling back to tcp mode for Octavia listen
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: puppet-tripleo
Version: 14.0 (Rocky)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z2
: 14.0 (Rocky)
Assignee: Brent Eagles
QA Contact: Bruna Bonguardo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-12 13:11 UTC by Carlos Goncalves
Modified: 2019-07-02 20:08 UTC (History)
5 users (show)

Fixed In Version: puppet-tripleo-9.4.0-0.20190307172345.b5220a7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-07-02 20:08:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1815603 0 None None None 2019-02-12 13:15:38 UTC
OpenStack gerrit 636376 0 None None None 2019-02-13 10:27:42 UTC
OpenStack gerrit 638456 0 None None None 2019-05-13 14:37:28 UTC
Red Hat Product Errata RHBA-2019:1672 0 None None None 2019-07-02 20:08:35 UTC

Description Carlos Goncalves 2019-02-12 13:11:44 UTC
[root@controller-0 etc]# docker restart haproxy-bundle-docker-0 
haproxy-bundle-docker-0

[root@controller-0 etc]# journalctl -n 100  | grep octavia
Feb 12 13:07:52 controller-0 dockerd-current[23229]: [WARNING] 042/130752 (11) : parsing [/etc/haproxy/haproxy.cfg:206] : 'option httplog' not usable with proxy 'octavia' (needs 'mode http'). Falling back to 'option tcplog'.
Feb 12 13:07:52 controller-0 haproxy[414676]: Proxy octavia started.


controllerX:/var/lib/config-data/puppet-generated/haproxy/etc/haproxy/haproxy.cfg

[...]
listen octavia
  bind 10.0.0.109:9876 transparent
  bind 172.17.1.21:9876 transparent
  http-request set-header X-Forwarded-Proto https if { ssl_fc }
  http-request set-header X-Forwarded-Proto http if !{ ssl_fc }
  option httpchk
  option httplog
  server controller-0.internalapi.localdomain 172.17.1.27:9876 check fall 5 inter 10000 rise 2
  server controller-1.internalapi.localdomain 172.17.1.20:9876 check fall 5 inter 2000 rise 2
  server controller-2.internalapi.localdomain 172.17.1.11:9876 check fall 5 inter 2000 rise 2
[...]


Listen block should include line "mode http"

Comment 3 Carlos Goncalves 2019-02-12 13:15:27 UTC
Please ignore "inter 10000" in controller-0. It was manually set to that value. Default was 2000, in line with other servers.

Comment 10 errata-xmlrpc 2019-07-02 20:08:27 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.

https://access.redhat.com/errata/RHBA-2019:1672


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