Bug 1319906
Summary: | Openshift Router does not save haproxy logs | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Ryan Howe <rhowe> |
Component: | RFE | Assignee: | Jacob Tanenbaum <jtanenba> |
Status: | CLOSED ERRATA | QA Contact: | Johnny Liu <jialiu> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.1.0 | CC: | aos-bugs, bleanhar, bperkins, erich, jokerman, jswensso, jtanenba, mbarrett, mmccomas, niharvey, pep, ramr, rhowe, tdawson, xtian |
Target Milestone: | --- | Keywords: | NeedsTestCase |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-09-27 09:36:36 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-03-21 19:07:04 UTC
Here's an example repo to build a custom haproxy based template router image and run it and send haproxy logs to a syslog daemon. https://github.com/ramr/openshift-haproxy-custom-logs The gist is to take the current haproxy-config.template and add the appropriate log configuration and rebuild a router image and then use that image. You can use these instructions as a guide: https://docs.openshift.com/enterprise/3.1/install_config/install/deploy_router.html#deploying-a-customized-haproxy-router https://docs.openshift.com/enterprise/3.1/install_config/install/deploy_router.html#rebuilding-your-router Note: The logs are sent to a syslog address (default is 127.0.0.1 port 514) and uses udp. See: https://github.com/ramr/openshift-haproxy-custom-logs/blob/master/haproxy-config.template#L11 for more details on usage. You can pass this config in via environment variables: oc env dc/router HAPROXY_ROUTER_SYSLOG_ADDRESS=127.0.0.1 HAPROXY_ROUTER_LOG_LEVEL=debug Adding an RFE tag - since this is newly requested functionality. The above workaround using a custom image is an interim solution for now. *** Bug 975533 has been marked as a duplicate of this bug. *** The PR to enable remote syslog has not merged. So it will be in 3.3 at the earliest. https://github.com/openshift/origin/pull/8332 https://github.com/openshift/origin/pull/8332 PR merged into origin. Waiting on documentation entries to merge https://github.com/openshift/openshift-docs/pull/1873 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 |