Default haproxy logging settings doesn't work with rsyslog (charmhelpers/contrib/openstack/templates)

Bug #1697002 reported by Jorge Niedbalski
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Charm Helpers
Fix Released
Medium
Jorge Niedbalski
OpenStack Base Layer
Fix Released
Undecided
Unassigned
OpenStack Keystone Charm
Fix Released
Medium
Unassigned
OpenStack Nova Cloud Controller Charm
Fix Released
Medium
Unassigned

Bug Description

[Description]

The HAProxyContext creates the /etc/haproxy/haproxy.cfg file from charmhelpers/contrib/openstack/templates, the logging in the global configuration
section is defined as:

    log {{ local_host }} local0
    log {{ local_host }} local1 notice

This doesn't works with the default rsyslog configuration installed
by the package (trusty, xenial) /etc/rsyslog.d/49-haproxy.conf.

# Create an additional socket in haproxy's chroot in order to allow logging via
# /dev/log to chroot'ed HAProxy processes
$AddUnixListenSocket /var/lib/haproxy/dev/log

# Send HAProxy messages to a dedicated logfile
if $programname startswith 'haproxy' then /var/log/haproxy.log
&~

We should fix the template to make it work by default.

Tags: sts

Related branches

tags: added: sts
Changed in charm-helpers:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Jorge Niedbalski (niedbalski)
Changed in charm-helpers:
status: In Progress → Fix Committed
James Page (james-page)
Changed in charm-helpers:
status: Fix Committed → Triaged
Changed in charm-keystone:
status: New → Triaged
Changed in charm-nova-cloud-controller:
status: New → Triaged
Changed in charm-keystone:
importance: Undecided → Medium
Changed in charm-nova-cloud-controller:
importance: Undecided → Medium
Changed in charm-helpers:
status: Triaged → Fix Released
Revision history for this message
James Page (james-page) wrote :

Marking charm tasks as Fix Released as this would have been included in the 17.08 charms release.

Changed in charm-keystone:
status: Triaged → Fix Released
Changed in charm-nova-cloud-controller:
status: Triaged → Fix Released
Revision history for this message
Nobuto Murata (nobuto) wrote :
Nobuto Murata (nobuto)
Changed in layer-openstack:
status: New → Fix Committed
Changed in layer-openstack:
milestone: none → 22.04
Changed in layer-openstack:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.