Bug 1195786

Summary: Retrace server UI was down due to permission issue on task status file
Product: [Fedora] Fedora EPEL Reporter: Shishir Prakash <sprakash>
Component: retrace-serverAssignee: Dave Wysochanski <dwysocha>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: dwysocha, jfilak, michal.toman, npatil
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-19 23:27:50 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:

Description Shishir Prakash 2015-02-24 14:58:22 UTC
Description of problem:
We found that the retrace server's GUI was down due to permission issue on /cores/retrace/tasks/314101131/status 

Looking at /var/log/httpd/ssl_error_log  i found the below error.

[Tue Feb 24 02:15:31 2015] [error] [client 10.64.0.192] mod_wsgi (pid=25086): Exception occurred processing WSGI script '/usr/share/retrace-server/manager.wsgi'.
[Tue Feb 24 02:15:31 2015] [error] [client 10.64.0.192] Traceback (most recent call last):
[Tue Feb 24 02:15:31 2015] [error] [client 10.64.0.192]   File "/usr/share/retrace-server/manager.wsgi", line 475, in application
[Tue Feb 24 02:15:31 2015] [error] [client 10.64.0.192]     statuscode = task.get_status()
[Tue Feb 24 02:15:31 2015] [error] [client 10.64.0.192]   File "/usr/lib/python2.6/site-packages/retrace/retrace.py", line 1583, in get_status
[Tue Feb 24 02:15:31 2015] [error] [client 10.64.0.192]     result = self.get(RetraceTask.STATUS_FILE, maxlen=8)
[Tue Feb 24 02:15:31 2015] [error] [client 10.64.0.192]   File "/usr/lib/python2.6/site-packages/retrace/retrace.py", line 1490, in get
[Tue Feb 24 02:15:31 2015] [error] [client 10.64.0.192]     with open(filename, "r") as f:
[Tue Feb 24 02:15:31 2015] [error] [client 10.64.0.192] IOError: [Errno 13] Permission denied: '/cores/retrace/tasks/314101131/status'


Looked at the permission of the directory /cores/retrace/tasks/314101131/status and it was jsibble.

i changed it back to retrace:gss-eng-collab and the issue got resolved.


How reproducible:
Change the permission of any task's status

Comment 2 Dave Wysochanski 2016-03-19 23:27:50 UTC
After the patches to fix https://bugzilla.redhat.com/show_bug.cgi?id=1313011#c13 this should not be possible anymore.

*** This bug has been marked as a duplicate of bug 1313011 ***