Bug 571769 - error while retrieving kickstart file through proxy
Summary: error while retrieving kickstart file through proxy
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Proxy Server
Version: 0.9
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space12
TreeView+ depends on / blocked
 
Reported: 2010-03-09 13:39 UTC by Marcus Moeller
Modified: 2010-11-19 16:17 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-11-19 16:17:04 UTC
Embargoed:


Attachments (Terms of Use)

Description Marcus Moeller 2010-03-09 13:39:58 UTC
Description of problem:

While trying to retrieve a kickstart file through a Spacewalk proxy server I got the following error (logged in /var/log/httpd/error_log) :

[Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonHeaderParserHandler proxy.apacheServer::HeaderParserHandler: Traceback (most recent call last):
[Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonHeaderParserHandler proxy.apacheServer::HeaderParserHandler:   File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch\n    result = object(req)
[Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonHeaderParserHandler proxy.apacheServer::HeaderParserHandler:   File "/usr/share/rhn/proxy/apacheServer.py", line 45, in __call__\n    from apacheHandler import getComponentType
[Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonHeaderParserHandler proxy.apacheServer::HeaderParserHandler:   File "/usr/share/rhn/proxy/apacheHandler.py", line 29, in ?\n    from common import rhnApache, rhnFlags, log_debug, log_error, CFG, \\
[Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonHeaderParserHandler proxy.apacheServer::HeaderParserHandler:   File "/usr/share/rhn/common/rhnApache.py", line 26, in ?\n    from server import apache
[Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonHeaderParserHandler proxy.apacheServer::HeaderParserHandler: ImportError: No module named server
[Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonCleanupHandler proxy.apacheServer::CleanupHandler: Traceback (most recent call last):
[Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonCleanupHandler proxy.apacheServer::CleanupHandler:   File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch\n    result = object(req)
[Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonCleanupHandler proxy.apacheServer::CleanupHandler:   File "/usr/share/rhn/proxy/apacheServer.py", line 56, in __call__\n    HandlerWrap.svrHandlers = self.get_handler_factory(req)()
[Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonCleanupHandler proxy.apacheServer::CleanupHandler:   File "/usr/share/rhn/proxy/apacheServer.py", line 78, in get_handler_factory\n    from apacheHandler import apacheHandler
[Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonCleanupHandler proxy.apacheServer::CleanupHandler:   File "/usr/share/rhn/proxy/apacheHandler.py", line 29, in ?\n    from common import rhnApache, rhnFlags, log_debug, log_error, CFG, \\
[Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonCleanupHandler proxy.apacheServer::CleanupHandler:   File "/usr/share/rhn/common/rhnApache.py", line 26, in ?\n    from server import apache
[Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonCleanupHandler proxy.apacheServer::CleanupHandler: ImportError: No module named server

Comment 1 Miroslav Suchý 2010-03-09 13:50:30 UTC
can you please provide
  rpm -qa |grep spacewalk
from proxy server

Comment 2 Marcus Moeller 2010-03-09 14:08:31 UTC
Here you are:

spacewalk-backend-libs-0.8.45-1.el5
spacewalk-ssl-cert-check-1.9-1.el5
spacewalk-proxy-broker-0.8.3-1.el5
spacewalk-proxy-management-0.8.3-1.el5
spacewalk-pxt-0.8.17-1.el5
spacewalk-proxy-docs-0.8.1-1.el5
spacewalk-proxy-common-0.8.3-1.el5
spacewalk-backend-0.8.45-1.el5
spacewalk-proxy-redirect-0.8.3-1.el5
spacewalk-proxy-package-manager-0.8.3-1.el5
spacewalk-base-minimal-0.8.17-1.el5
spacewalk-monitoring-selinux-0.8.3-1.el5
spacewalk-base-0.8.17-1.el5
spacewalk-koan-0.2.5-1.el5
spacewalk-proxy-installer-0.8.3-1.el5
spacewalk-certs-tools-0.8.7-1.el5
spacewalk-proxy-html-0.8.1-1.el5
spacewalk-proxy-selinux-0.8.1-1.el5
spacewalk-proxy-monitoring-0.8.1-1.el5

Comment 3 Justin Sherrill 2010-04-19 14:44:07 UTC
This should be fixed in spacewalk 1.0 as we have moved rhnApache.py to the spacewalk-backend-common from spacewalk-backend-server.  If you would like your proxy server to work in the meantime, simply:

1.   download the following file to /usr/share/rhn/common/

http://git.fedorahosted.org/git/?p=spacewalk.git;a=blob_plain;f=backend/common/apache.py;h=79b687f5da4f4e9019b9ad67ba122f1d7526e678;hb=HEAD

2.  Modify /usr/share/rhn/common/rhnApache.py  and change:

from server import apache

to

from common import apache


-Justin

Comment 4 Jan Pazdziora (Red Hat) 2010-10-27 08:32:36 UTC
Mass-aligning under space12, so that we don't lose track of this bugzilla. This however does not mean that we plan (will be able to) address this bug in Spacewalk 1.2.

Comment 6 Jan Pazdziora (Red Hat) 2010-11-19 16:17:04 UTC
With Spacewalk 1.2 released, marking as CLOSED CURRENTRELEASE.

https://www.redhat.com/archives/spacewalk-list/2010-November/msg00111.html


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