Bug 1348674

Summary: [haproxy] frontend 'main' has no 'bind' directive in default configuration
Product: [Fedora] Fedora Reporter: Carl George <carl>
Component: haproxyAssignee: Ryan O'Hara <rohara>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: bperkins, cheese, rohara
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: haproxy-1.6.7-2.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 18:55:46 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:
Attachments:
Description Flags
fix syntax in haproxy.cfg none

Description Carl George 2016-06-21 18:02:52 UTC
Description of problem:

The default HAProxy configuration file prevents the service from starting.

    # journalctl -u haproxy
    -- Logs begin at Tue 2016-06-21 14:47:31 UTC, end at Tue 2016-06-21 15:01:10 UTC. --
    Jun 21 15:01:10 f24.ius.io systemd[1]: Started HAProxy Load Balancer.
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]: haproxy-systemd-wrapper: executing /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -Ds
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]: [ALERT] 172/150110 (2054) : parsing [/etc/haproxy/haproxy.cfg:67] : 'frontend' cannot handle unexpected argument '*:5000'.
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]: [ALERT] 172/150110 (2054) : parsing [/etc/haproxy/haproxy.cfg:67] : please use the 'bind' keyword for listening addresses.
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]: [ALERT] 172/150110 (2054) : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]: [WARNING] 172/150110 (2054) : config : frontend 'main' has no 'bind' directive. Please declare it as a backend if this was intended.
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]: [WARNING] 172/150110 (2054) : config : missing timeouts for frontend 'main'.
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]:    | While not properly invalid, you will certainly encounter various problems
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]:    | with such a configuration. To fix this, please ensure that all following
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]:    | timeouts are set to a non-zero value: 'client', 'connect', 'server'.
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]: [ALERT] 172/150110 (2054) : Fatal errors found in configuration.
    Jun 21 15:01:10 f24.ius.io haproxy-systemd-wrapper[2052]: haproxy-systemd-wrapper: exit, haproxy RC=256

Version-Release number of selected component (if applicable):

haproxy-1.6.5-3.fc24.x86_64

Steps to Reproduce:

1. dnf install haproxy
2. systemctl start haproxy.service

Comment 1 Carl George 2016-06-21 18:14:10 UTC
Created attachment 1170352 [details]
fix syntax in haproxy.cfg

Comment 2 Fedora Update System 2016-07-15 17:22:46 UTC
haproxy-1.6.7-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-d7ef3cba5d

Comment 3 Fedora Update System 2016-07-16 22:57:33 UTC
haproxy-1.6.7-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-d7ef3cba5d

Comment 4 Fedora Update System 2016-07-27 18:55:41 UTC
haproxy-1.6.7-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.