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

Bug 1341312

Summary: Environmental Variable to change the check interval for haproxy.
Product: OpenShift Container Platform Reporter: Ryan Howe <rhowe>
Component: NetworkingAssignee: Jacob Tanenbaum <jtanenba>
Networking sub component: router QA Contact: zhaozhanqi <zzhao>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: aloughla, aos-bugs, bbennett, bperkins, eparis, erich, tdawson, xtian
Version: 3.2.0   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-27 09:33:22 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:
Bug Depends On:    
Bug Blocks: 1267746    

Description Ryan Howe 2016-05-31 19:11:36 UTC
Description of problem:

Would like to the ablity to set the haproxy templates values for httpcheck for route backends. 

This would be set when deploying the OpenShift router as and Environment Variable. 

For example we would want to change "5000ms" and set if using a variable passed in the DC. 

Example:

ROUTER_BACKEND_CHECKINTER = "VALUE" 


Configuration link show one area this is set.  

https://github.com/openshift/origin/blob/master/images/router/haproxy/conf/haproxy-config.template#L258

Comment 5 Ben Bennett 2016-08-08 15:23:59 UTC
Jacob, we just need to shepherd in the PR.

Comment 6 Eric Rich 2016-08-12 19:02:27 UTC
(In reply to Ben Bennett from comment #5)
> Jacob, we just need to shepherd in the PR.

While https://github.com/openshift/origin/pull/9099 is in it would be better if we had: https://github.com/openshift/origin/pull/10342

Comment 7 Ben Bennett 2016-08-16 20:08:39 UTC
https://github.com/openshift/origin/pull/10342 has merged.

Comment 8 Troy Dawson 2016-08-18 20:25:53 UTC
This has been merged into ose and is in OSE v3.3.0.22 or newer.

Comment 10 zhaozhanqi 2016-08-19 06:42:05 UTC
verified this bug with router image
openshift3/ose-haproxy-router:v3.3.0.22(id=185850e07ab4)

the global set the inter time is using env for router, like:

oc env dc router ROUTER_BACKEND_CHECK_INTERVAL=50ms

and can set the private route using annotate like

oc annotate route test-service router.openshift.io/haproxy.health.check.interval=13m -n zzhao

Comment 11 openshift-github-bot 2016-09-14 21:43:35 UTC
Commits pushed to master at https://github.com/openshift/openshift-docs

https://github.com/openshift/openshift-docs/commit/b0c600a9f2f91de8ba839616ab1de071d95dc520
Adding notes to document Bug 1341312 and Bug 1319906

https://github.com/openshift/openshift-docs/commit/7c78f0ec73be37ad127fa6b9bb7200d3d67d5393
Merge pull request #2845 from ahardin-rh/sferich888-PR2183

Adding notes to document Bug 1341312 and Bug 1319906

Comment 13 errata-xmlrpc 2016-09-27 09:33:22 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-2016:1933