Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1676501

Summary: HAProxy falling back to tcp mode for Octavia listen
Product: Red Hat OpenStack Reporter: Carlos Goncalves <cgoncalves>
Component: puppet-tripleoAssignee: Brent Eagles <beagles>
Status: CLOSED ERRATA QA Contact: Bruna Bonguardo <bbonguar>
Severity: medium Docs Contact:
Priority: medium    
Version: 14.0 (Rocky)CC: bperkins, jjoyce, jschluet, slinaber, tvignaud
Target Milestone: z2Keywords: Triaged, ZStream
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: puppet-tripleo-9.4.0-0.20190307172345.b5220a7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-02 20:08:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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