Bug 1003574

Summary: after clean installation spacewalk-splice-checkin complains about /var/log/splice/general.log
Product: [Retired] Subscription Asset Manager Reporter: Jan Hutař <jhutar>
Component: SpliceAssignee: Splice Developers <splice-devel>
Status: CLOSED ERRATA QA Contact: mkovacik
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: NightlyCC: cduryee, jmatthew, sthirugn, tomckay, vkuznets
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-01 11:23:13 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 Jan Hutař 2013-09-02 12:03:44 UTC
Description of problem:
After clean installation, when you run spacewalk-splice-checkin under splice user, it complains about permission errors on log file.


Version-Release number of selected component (if applicable):
spacewalk-splice-tool-0.40-1.el6sam.noarch


How reproducible:
always


Steps to Reproduce:
1. Install SAM+Splice using documentation
2. # su - splice -s /bin/bash
3. $ spacewalk-splice-checkin


Actual results:
$ spacewalk-splice-checkin 
[Errno 13] Permission denied: '/var/log/splice/general.log'
Unable to initialize logging config with: /etc/splice/logging/basic.cfg
[...]


Expected results:
That error should not be there and the tool should be able to write to /var/log/splice/general.log


Additional info:
mkovacik fixed this to me with `chcon -R splice:splice /var/log/splice/`.

Comment 3 Vitaly Kuznetsov 2013-09-13 11:02:41 UTC
Verified with Snapshot 6:

# ls -la /var/log/splice/general.log 
-rw-rw-r--. 1 apache splice 0 Sep 13 07:01 /var/log/splice/general.log
# ls -ld /var/log/splice
drwxrwxr-x. 3 apache splice 4096 Sep 11 12:49 /var/log/splice

SST run succeeds.

Comment 5 errata-xmlrpc 2013-10-01 11:23:13 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