Error reloading HAProxy configuring a route with an ip_whitelist value annotation longer than 64 arguments

Solution Unverified - Updated -

Issue

Adding 62 IPs/ranges or more to the haproxy.router.openshift.io/ip_whitelist annotation, the router fails to reload the configuration.

# oc logs -f router-1-cv5nd -n default
E0706 10:49:47.595860       1 limiter.go:137] error reloading router: exit status 1
[ALERT] 186/104947 (1075) : parsing [/var/lib/haproxy/conf/haproxy.config:245]: line too long, truncating at word 65, position 826: <192.168.13.62>.
[ALERT] 186/104947 (1075) : Error(s) found in configuration file : /var/lib/haproxy/conf/haproxy.config
[ALERT] 186/104947 (1075) : Fatal errors found in configuration.

Adding 61 IPs/ranges or less to the haproxy.router.openshift.io/ip_whitelist annotation, the router reloads successfully.

I0706 10:43:24.592134       1 router.go:441] Router reloaded:
 - Checking http://localhost:80 ...
 - Health check ok : 0 retry attempt(s).

Environment

  • OpenShift
    • 3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.