Bug 1503637 - Setting 'timeout server' twice per backend
Summary: Setting 'timeout server' twice per backend
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 3.7.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.7.0
Assignee: Ivan Chavero
QA Contact: zhaozhanqi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-18 14:04 UTC by Eric Paris
Modified: 2022-08-04 22:20 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
No doc update
Clone Of:
Environment:
Last Closed: 2018-04-05 09:29:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Origin (Github) 17030 0 None None None 2017-10-26 18:23:27 UTC
Red Hat Product Errata RHBA-2018:0636 0 None None None 2018-04-05 09:30:13 UTC

Description Eric Paris 2017-10-18 14:04:19 UTC
registry.ops.openshift.com/openshift3/ose-haproxy-router:v3.7.0-0.143.3

I see:
[WARNING] 290/134805 (70512) : parsing [/var/lib/haproxy/conf/haproxy.config:65696] : overwriting 'timeout server' which was already specified

Then looking in haproxy.config I see:

# Plain http backend
backend be_http:eparis:mysql
  mode http
  option redispatch
  option forwardfor
  balance leastconn
  timeout server  6000s 
  timeout server  6000s

  timeout check 5000ms
  http-request set-header X-Forwarded-Host %[req.hdr(host)]
  http-request set-header X-Forwarded-Port %[dst_port]
  http-request set-header X-Forwarded-Proto http if !{ ssl_fc }
  http-request set-header X-Forwarded-Proto https if { ssl_fc }
  http-request set-header Forwarded for=%[src];host=%[req.hdr(host)];proto=%[req.hdr(X-Forwarded-Proto)]
  cookie 375f768162a6325b8c5955d0ac580c09 insert indirect nocache httponly
  server pod:mysql-1-pcgdb:mysql:10.130.22.80:3306 10.130.22.80:3306 cookie d7a223c82911fcca53f8e25f62d412a6 weight 200 check inter 5000ms

Comment 1 Ivan Chavero 2017-10-19 09:11:54 UTC
The directive will appear if ROUTER_DEFAULT_SERVER_TIMEOUT is set and if there's this annotation on reouter definition: haproxy.router.openshift.io/timeout

Is this being specifically setup or is happening when there are default values?

Comment 3 Ben Bennett 2017-10-26 18:23:44 UTC
PR https://github.com/openshift/origin/issues/17030

Comment 4 zhaozhanqi 2017-11-03 07:00:17 UTC
Verified this bug on v3.7.0-0.190.0

Set the timeout for the route

$oc annotate route service-unsecure haproxy.router.openshift.io/timeout=3s

Check the haproxy.config:

backend be_http:zq:service-unsecure
  mode http
  option redispatch
  option forwardfor
  balance roundrobin
  timeout server  3s

  timeout check 5000ms

Comment 8 errata-xmlrpc 2018-04-05 09:29:37 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-2018:0636


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