HAProxy falling back to tcp mode for Octavia listen

Bug #1815603 reported by Carlos Goncalves
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Brent Eagles

Bug Description

[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 2000 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".

Original report: https://bugzilla.redhat.com/show_bug.cgi?id=1676501

Brent Eagles (beagles)
Changed in tripleo:
status: New → Confirmed
importance: Undecided → High
milestone: none → stein-3
assignee: nobody → Brent Eagles (beagles)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-tripleo (master)

Fix proposed to branch: master
Review: https://review.openstack.org/636376

Changed in tripleo:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-tripleo (master)

Reviewed: https://review.openstack.org/636376
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=ec9766716338f20ee94e43074b2369527ba56cf5
Submitter: Zuul
Branch: master

commit ec9766716338f20ee94e43074b2369527ba56cf5
Author: Brent Eagles <email address hidden>
Date: Tue Feb 12 09:24:24 2019 -0330

    Change haproxy mode to http for octavia

    We should be using 'http' instead of the configured default of tcp as
    the transaction mode for octavia.

    Change-Id: Ia23e794009b0c69eb9b24d991fa4ab857a00545f
    Closes-Bug: #1815603

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

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/638456

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-tripleo (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/638457

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-tripleo (stable/rocky)

Reviewed: https://review.openstack.org/638456
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=d2c020c6f4bdbd8cc0ce87290f31c75b0565a724
Submitter: Zuul
Branch: stable/rocky

commit d2c020c6f4bdbd8cc0ce87290f31c75b0565a724
Author: Brent Eagles <email address hidden>
Date: Tue Feb 12 09:24:24 2019 -0330

    Change haproxy mode to http for octavia

    We should be using 'http' instead of the configured default of tcp as
    the transaction mode for octavia.

    Change-Id: Ia23e794009b0c69eb9b24d991fa4ab857a00545f
    Closes-Bug: #1815603
    (cherry picked from commit ec9766716338f20ee94e43074b2369527ba56cf5)

tags: added: in-stable-rocky
tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-tripleo (stable/queens)

Reviewed: https://review.openstack.org/638457
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=25c13e70785267642be28684e12b4a87f68e1f6b
Submitter: Zuul
Branch: stable/queens

commit 25c13e70785267642be28684e12b4a87f68e1f6b
Author: Brent Eagles <email address hidden>
Date: Tue Feb 12 09:24:24 2019 -0330

    Change haproxy mode to http for octavia

    We should be using 'http' instead of the configured default of tcp as
    the transaction mode for octavia.

    Change-Id: Ia23e794009b0c69eb9b24d991fa4ab857a00545f
    Closes-Bug: #1815603
    (cherry picked from commit ec9766716338f20ee94e43074b2369527ba56cf5)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-tripleo 10.3.0

This issue was fixed in the openstack/puppet-tripleo 10.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-tripleo 9.4.0

This issue was fixed in the openstack/puppet-tripleo 9.4.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/puppet-tripleo 8.5.0

This issue was fixed in the openstack/puppet-tripleo 8.5.0 release.

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.