haproxy.cfg logs to localhost:514/UDP, rsyslog not configured to listen on 514/UDP since before Ubuntu 12.04
Bug #1668601 reported by
Frode Nordahl
This bug report is a duplicate of:
Bug #1697002: Default haproxy logging settings doesn't work with rsyslog (charmhelpers/contrib/openstack/templates).
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Fix Released
|
Medium
|
Jorge Niedbalski |
Bug Description
haproxy is set up to log to localhost:514/UDP. rsyslog is not set up to listen, and has not been since before Ubuntu 12.04. Subsequently we are not logging haproxy events.
haproxy package for trusty and newer installs rsyslog configuration that enables /dev/log node in /var/lib/haproxy chroot.
haproxy package for precise does not run haproxy in chroot so we can use system /dev/log directly.
I suggest using /dev/log instead of localhost in haproxy configuration to enable logging of haproxy events.
Related branches
lp:~niedbalski/charm-helpers/fix-1697002
- Felipe Reyes (community): Approve
-
Diff: 12 lines (+2/-2)1 file modifiedcharmhelpers/contrib/openstack/templates/haproxy.cfg (+2/-2)
description: | updated |
Changed in charm-helpers: | |
assignee: | nobody → Frode Nordahl (fnordahl) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in charm-helpers: | |
assignee: | Frode Nordahl (fnordahl) → nobody |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
status: | In Progress → Fix Released |
To post a comment you must log in.
Ubuntu 12.04 does not run haproxy in chroot, thus it can also make use of /dev/log out of the box.