Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1287325

Summary: HAProxy logs show up in /var/log/swift/swift.log
Product: Red Hat OpenStack Reporter: Marius Cornea <mcornea>
Component: rhosp-directorAssignee: Chris Jones <chjones>
Status: CLOSED CURRENTRELEASE QA Contact: Udi Shkalim <ushkalim>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0 (Kilo)CC: bkopilov, bperkins, fdinitto, hfukumot, jcoufal, lars, mburns, michele, pportant, rhel-osp-director-maint, shu-takamoto, tvignaud
Target Milestone: ---Keywords: InstallerIntegration, Triaged, ZStream
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-08 15:40:37 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: 1235795    
Attachments:
Description Flags
swift log none

Description Marius Cornea 2015-12-02 00:10:19 UTC
Created attachment 1101145 [details]
swift log

Description of problem:
HAProxy logs show up in /var/log/swift/swift.log 

Version-Release number of selected component (if applicable):
RHEL-OSP 7.1

How reproducible:
100%

Steps to Reproduce:
1. Check /var/log/swift/swift.log on the overcloud controller

Actual results:
HAProxy logs show up.

Expected results:
Only swift related logs are shown.

Additional info:
Attaching swift.log

Comment 3 bkopilov 2016-02-10 10:05:41 UTC
*** Bug 1306170 has been marked as a duplicate of this bug. ***

Comment 4 Mike Burns 2016-02-10 12:54:39 UTC
*** Bug 1242737 has been marked as a duplicate of this bug. ***

Comment 5 Mike Burns 2016-04-07 21:00:12 UTC
This bug did not make the OSP 8.0 release.  It is being deferred to OSP 10.

Comment 7 Peter Portante 2016-08-29 17:16:47 UTC
One can use the "programname" field in rsyslog to also select which logs go where instead of facility.

E.g.

if $programname == 'haproxy' then
    action(type="omfile", file="/var/log/haproxy.log")
    stop
endif


Then be sure to order that before the openstack-swift.conf file.

-peter

Comment 8 Lars Kellogg-Stedman 2016-08-29 17:22:54 UTC
Re: comment #7, that's largely what I was thinking.

In particular, I think that we should just modify all the configs to log using the "daemon" facility and then use programname to filtering to separate log files, and leave the local* facilities for use by the local administrator.

Comment 9 Peter Portante 2016-08-29 17:27:36 UTC
That seems like a reasonable solution.

Comment 12 Chris Jones 2018-01-08 15:40:37 UTC
This is fixed in OSP12