Bug 1419127 - [RFE] Configure haproxy router logging facility
Summary: [RFE] Configure haproxy router logging facility
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: ---
Assignee: Ben Bennett
QA Contact: Meng Bo
Depends On:
TreeView+ depends on / blocked
Reported: 2017-02-03 16:14 UTC by Sergi Jimenez Romero
Modified: 2017-11-29 22:06 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Feature: Add environment variable to configure haproxy router logging facility Reason: So that the syslog facility can be set Result: Users can separate their log traffic as desired
Clone Of:
Last Closed: 2017-04-12 19:11:15 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0884 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.5 RPM Release Advisory 2017-04-12 22:50:07 UTC

Description Sergi Jimenez Romero 2017-02-03 16:14:49 UTC
> 3. What is the nature and description of the request?  

Current router image template doesn't allow to set logging facility while it does for logging level. 

> 4. Why does the customer need this? (List the business requirements here)  

As a sysadmin , when sending logs from haproxy to other logging endpoints sometimes you need to change the facility.

> 5. How would the customer like to achieve this? (List the functional requirements here)  

Modifying the current image template, it should still default to `local1` but allow customisation for logging facility.

> 6. For each functional requirement listed, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented.  

Example scenario: Using router template, build a new router image setting a user-defined logging facility (i.e. local7), through a variable (i.e. ROUTER_LOG_FACILITY).

> 10. List any affected packages or components.  
router image template

Comment 2 Sergi Jimenez Romero 2017-02-03 16:24:55 UTC
Have created the following PR upstream:


Comment 4 Ben Bennett 2017-03-28 14:51:13 UTC
This PR was merged in February and will be in the 3.5 release.

Comment 5 Sergi Jimenez Romero 2017-03-28 14:57:48 UTC
(In reply to Ben Bennett from comment #4)
> This PR was merged in February and will be in the 3.5 release.

Thanks for the update Ben, will inform the customer.

Comment 6 zhaozhanqi 2017-03-30 07:39:50 UTC
Verified this bug on 3.5.5 with haproxy image:

registry.ops.openshift.com/openshift3/ose-haproxy-router    v3.5.5              fe47b6d4e2fd

1. setup the env and make sure the router is running
2. set log level:
3. check the router
   oc rsh $router_pod cat haproxy.config | grep log
   log local2 warning

Comment 8 errata-xmlrpc 2017-04-12 19:11:15 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.


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