Bug 621680
| Summary: | ISE on running pulp repo list- Permission Error with pulp log files | ||
|---|---|---|---|
| Product: | [Retired] Pulp | Reporter: | Preethi Thomas <pthomas> |
| Component: | z_other | Assignee: | Mike McCune <mmccune> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | unspecified | CC: | dgao, mmccune, pkilambi, whayutin |
| Target Milestone: | --- | Keywords: | QA-Closed, Triaged |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-10-20 16:11:40 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Preethi Thomas
2010-08-05 19:41:33 UTC
[root@preethi ~]# rpm -qa |grep pulp pulp-0.0.47-1.git.4.a7865df.fc13.noarch pulp-tools-0.0.47-1.git.4.a7865df.fc13.noarch verified
[root@preethi pulp]# pulp -u admin -p admin repo list
+-------------------------------------------+
List of Available Repositories
+-------------------------------------------+
Label rhel-x86_64-client-vt-5
Name rhel-x86_64-client-vt-5
Feed {u'url': u'satellite.rhn.redhat.com/rhel-x86_64-client-vt-5', u'type': u'rhn', u'supported_types': [u'yum', u'local', u'rhn']}
Arch x86_64
Sync Schedule None
Packages 47
Label f12
Name f12
Feed {u'url': u'http://download.devel.redhat.com/released/F-12/GOLD/Fedora/i386/os/', u'type': u'yum', u'supported_types': [u'yum', u'local', u'rhn']}
Arch i386
Sync Schedule None
Packages 27
Label rhel-i386-server-5
Name rhel-i386-server-5
Feed {u'url': u'satellite.rhn.redhat.com/rhel-i386-server-5', u'type': u'rhn', u'supported_types': [u'yum', u'local', u'rhn']}
Arch i386
Sync Schedule None
Packages 42
Label f13
Name f13
Feed {u'url': u'http://download.devel.redhat.com/released/F-13/GOLD/Fedora/x86_64/os/', u'type': u'yum', u'supported_types': [u'yum', u'local', u'rhn']}
Arch x86_64
Sync Schedule None
Packages 27
Label f13-1
Name f13-1
Feed {u'url': u'http://download.devel.redhat.com/released/F-13/GOLD/Fedora/x86_64/os/', u'type': u'yum', u'supported_types': [u'yum', u'local', u'rhn']}
Arch x86_64
Sync Schedule None
Packages 29
Label f13-2
Name f13-2
Feed {u'url': u'http://download.devel.redhat.com/released/F-13/GOLD/Fedora/x86_64/os/', u'type': u'yum', u'supported_types': [u'yum', u'local', u'rhn']}
Arch x86_64
Sync Schedule None
Packages 29
[root@preethi pulp]# rpm -qa |grep pulp
pulp-tools-0.0.47-1.git.24.80a77dd.fc13.noarch
pulp-0.0.47-1.git.24.80a77dd.fc13.noarch
*** Bug 625483 has been marked as a duplicate of this bug. *** Reopening as David ran into the issue with a fresh install.
Copying from the above bug
dgao 2010-08-19 11:13:25 EDT
Description of problem:
There's a permission issue with /var/log/pulp if pulp-admin is immediately
executed after a fresh rpm install. The folder, and subsequently all the pulp
log files are owned by root with permission of 644. As a result, pulp-admin
fails.
[dgao@pulp ~]$ pulp-admin -u admin -p admin repo list
ERROR: must be root to execute
[dgao@pulp ~]$ su -
Password:
[root@pulp ~]# pulp-admin -u admin -p admin repo list
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
root@pulp and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<hr>
<address>Apache/2.2.16 (Fedora) Server at localhost Port 8811</address>
</body></html>
[root@pulp ~]#
[root@pulp ~]# ls -larth /var/log/pulp
total 12K
drwxr-xr-x. 16 root root 4.0K Aug 19 11:04 ..
drwxr-xr-x. 2 root root 4.0K Aug 19 11:04 .
-rw-r--r--. 1 root root 1.9K Aug 19 11:10 pulptools.log
[root@pulp ~]# tail /var/log/httpd/pulp_webservices.error
[Thu Aug 19 11:10:00 2010] [error] [client ::1] File
"/usr/lib/python2.6/site-packages/pulp/webservices/application.py", line 51, in
wsgi_application
[Thu Aug 19 11:10:00 2010] [error] [client ::1] start_logging()
[Thu Aug 19 11:10:00 2010] [error] [client ::1] File
"/usr/lib/python2.6/site-packages/pulp/logs.py", line 98, in start_logging
[Thu Aug 19 11:10:00 2010] [error] [client ::1]
configure_pulp_grinder_logging()
[Thu Aug 19 11:10:00 2010] [error] [client ::1] File
"/usr/lib/python2.6/site-packages/pulp/logs.py", line 50, in
configure_pulp_grinder_logging
[Thu Aug 19 11:10:00 2010] [error] [client ::1] check_log_file(pulp_file)
[Thu Aug 19 11:10:00 2010] [error] [client ::1] File
"/usr/lib/python2.6/site-packages/pulp/logs.py", line 33, in check_log_file
[Thu Aug 19 11:10:00 2010] [error] [client ::1] raise RuntimeError('Cannot
write to log directory: %s' % dir_path)
[Thu Aug 19 11:10:00 2010] [error] [client ::1] RuntimeError: Cannot write to
log directory: /var/log/pulp
[Thu Aug 19 11:10:00 2010] [info] [client ::1] Connection closed to child 6
with standard shutdown (server 127.0.0.1:8811)
[root@pulp ~]#
I will verify if this is occurring on a fresh install or not. I checked this on a fresh install on a newly created Fedora 13 x86_64 virtual machine with pulp-0.0.67-1.fc13.noarch and it did not occur. sending back to QA verified installed a new vm f12 x86_64 with pulp.noarch 0:0.0.68-1.fc12 [root@localhost yum.repos.d]# pulp-admin repo -u admin -p admin create --id=f13 --name=f13 --arch=x86_64 --feed=yum:http://download.devel.redhat.com/released/F-13/GOLD/Fedora/x86_64/os/ Successfully created Repo [ f13 ] [root@localhost yum.repos.d]# pulp-admin -u admin -p admin repo list +------------------------------------------+ List of Available Repositories +------------------------------------------+ Label f13 Name f13 Feed {u'url': u'http://download.devel.redhat.com/released/F-13/GOLD/Fedora/x86_64/os/', u'type': u'yum', u'supported_types': [u'yum', u'local', u'rhn']} Arch x86_64 Sync Schedule None Packages 0 Files 0 Closed after review. |