Bug 1257690 - haproxy should use UDP logging
Summary: haproxy should use UDP logging
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: 8.0 (Liberty)
Assignee: Jay Dobies
QA Contact: Udi Shkalim
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-27 16:47 UTC by Ryan O'Hara
Modified: 2023-09-14 03:04 UTC (History)
10 users (show)

Fixed In Version: openstack-tripleo-heat-templates-0.8.7-10.el7ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-07 21:39:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:0604 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 8 director Enhancement Advisory 2016-04-08 01:03:56 UTC

Description Ryan O'Hara 2015-08-27 16:47:14 UTC
It is higly recommended to use UDP logging for haproxy. Currently, rhel-osp-director will configure haproxy to log to the /dev/log UNIX socket. Since max_dgram_qlen it most likely quite small, you will likely get warnings at startup:

[ALERT] 238/115010 (13878) : sendto logger #1 failed: Resource temporarily unavailable (errno=11)

There are two solutions:

1. Use UDP logging by changing the log line to this:

   log 127.0.0.1 local0

2. Increase the max_dgram_qlen via sysctl.

   cat /proc/sys/net/unix/max_dgram_qlen
   # probably 10

Comment 4 Yanis Guenane 2015-09-11 13:55:53 UTC
Those 3 reviews address the issue mentioned in the ticket. Both solution 1 and 2.

However, tripleo-heat-templates does not configure rsyslog daemons on the machines, hence 127.0.0.1:514 in UDP is not available out of the box.

I think this request should be made as a RFE. (ie. make t-h-t configure rsyslog deamons on the hosts)

TripleO-Heat-Templates review (Solution 1): https://review.openstack.org/#/c/222602/
TripleO-Heat-Templates review (Solution 2): https://review.openstack.org/#/c/222612/
Puppet-TripleO review : https://review.openstack.org/#/c/222595/

Comment 5 Yanis Guenane 2015-10-16 09:49:33 UTC
Upstream review merged

Comment 12 errata-xmlrpc 2016-04-07 21:39:20 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://rhn.redhat.com/errata/RHEA-2016-0604.html

Comment 13 Red Hat Bugzilla 2023-09-14 03:04:22 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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