Bug 975452

Summary: Ensuring permissions are correct on logging between spacewalk-splice-tool and splice mod_wsgi app
Product: [Retired] Subscription Asset Manager Reporter: John Matthews <jmatthew>
Component: SpliceAssignee: Splice Developers <splice-devel>
Status: CLOSED ERRATA QA Contact: mkovacik
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.3CC: cduryee, vkuznets
Target Milestone: rc   
Target Release: 1.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-01 10:58:18 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: 833466    

Description John Matthews 2013-06-18 13:47:59 UTC
Description of problem:

Intent is to allow users to delete existing logging files and re-run our tools without getting into a permission error


spacewalk-splice-tool was running as root and if it started prior to splice mod_wsgi some logging files under /var/log/splice would be owned by root.  This would cause splice mod_wsgi app to be unable to log any info.

To replicate this issue.
1) Delete logs under /var/log/splice/*.log
2) Run spacewalk-splice-tool
3) Verify that new log files are group owned by 'splice' and group readable/writeable

Comment 1 John Matthews 2013-06-18 13:49:00 UTC
This bug is intended for SAM 1.3.0 GA.

Not for Beta

Comment 2 Chris Duryee 2013-08-08 14:44:23 UTC
mod_wsgi runs in the splice group now, this bz should be fixed.

Marking as ON_QA.

Comment 4 Vitaly Kuznetsov 2013-08-26 12:31:26 UTC
Verified with spacewalk-splice-tool-0.40-1.el6sam:

# ls -la /var/log/splice/
total 9788
drwxrwxr-x.  3 apache splice    4096 Aug 26 08:28 .
drwxr-xr-x. 20 root   root      4096 Aug 25 03:09 ..
drwxrwxr-x.  2 splice splice    4096 Aug 14 14:29 celery
-rw-r--r--.  1 splice splice       0 Aug 26 08:28 general.log
-rw-r--r--.  1 splice splice       0 Aug 26 08:28 report_server.log
-rw-r--r--.  1 splice splice    3327 Aug 26 08:28 spacewalk_splice_tool.log
-rw-r--r--.  1 splice splice     756 Aug 26 08:28 splice.log

Comment 6 errata-xmlrpc 2013-10-01 10:58:18 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.

http://rhn.redhat.com/errata/RHEA-2013-1390.html