Bug 975452 - Ensuring permissions are correct on logging between spacewalk-splice-tool and splice mod_wsgi app
Summary: Ensuring permissions are correct on logging between spacewalk-splice-tool and...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Subscription Asset Manager
Classification: Retired
Component: Splice
Version: 1.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 1.3
Assignee: Splice Developers
QA Contact: mkovacik
URL:
Whiteboard:
Depends On:
Blocks: sam13-tracker
TreeView+ depends on / blocked
 
Reported: 2013-06-18 13:47 UTC by John Matthews
Modified: 2013-10-01 10:58 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-01 10:58:18 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2013:1390 0 normal SHIPPED_LIVE Release 1.3 of Subscription Asset Manager 2013-10-01 14:43:14 UTC

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


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