Bug 565882

Summary: cobbler still uses mod_python on F12
Product: [Community] Spacewalk Reporter: Michael Mráka <mmraka>
Component: ServerAssignee: Justin Sherrill <jsherril>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: low    
Version: 0.8CC: cperry, dgoodwin, felix, jpazdziora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: spacewalk-backend-0.8.19-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-26 15:17:21 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:
Bug Depends On:    
Bug Blocks: 653453    

Description Michael Mráka 2010-02-16 16:08:44 UTC
Description of problem:
We moved away from mod_python (to mod_wsgi) on F12 but cobbler still uses mod_python.

Version-Release number of selected component (if applicable):
spacewalk 0.8

How reproducible:
always

Steps to Reproduce:
1. install spacewalk 0.8
2. enable /server-info in /etc/httpd/conf/http.conf
3. visit http://spacewalk/server-info
  
Actual results:
Loaded Modules: mod_wsgi.c, mod_ssl.c, mod_python.c, ...
Server Version: Apache/2.2.14 (Unix) DAV/2 mod_python/3.3.1 Python/2.6.2 mod_ssl/2.2.14 OpenSSL/1.0.0-fips-beta4 mod_wsgi/2.5
...
Current Configuration:
In file: /etc/httpd/conf.d/cobbler.conf
  33: <Directory "/var/www/cobbler/svc/">
  35:   PythonHandler services
  36:   PythonDebug on
  37:   PythonPath "sys.path + ['/var/www/cobbler/svc/']"
    : </Directory>
...
In file: /etc/httpd/conf.d/cobbler.conf
  33: <Directory "/var/www/cobbler/svc/">
  34:   SetHandler mod_python
    : </Directory>

Expected results:
no mod_python

Additional info:

Comment 1 Justin Sherrill 2010-02-22 15:22:27 UTC
Commits in spacewalk that converted it to use mod_wsgi

7d05c99a080951a4c055648f6cd9ab4eae74c5ef


For us we still wanted to be able to use mod_python in RHEL 5, so this basically adds a wrapper that emulates mod_python.  It doesn't emulate it at 100%, so it may not work 100% for cobbler.

-Justin

Comment 2 Devan Goodwin 2010-06-18 11:30:01 UTC
Cobbler has been updated to use mod_wsgi as of 2.0.4. cobbler-web still using mod_python, this will be addressed, but I don't believe this is a factor for Spacewalk.

Comment 3 Felix Kaechele 2010-10-22 07:32:04 UTC
Any news on the cobbler-web mod_wsgi port?

Comment 4 Devan Goodwin 2010-10-22 12:07:48 UTC
Nothing yet, I had a start of a patch to switch the web UI to mod_wsgi as well but did not have time to complete it. I can provide if anyone would like to pick up the work.

Comment 5 Jan Pazdziora 2010-11-19 16:03:41 UTC
Mass-moving to space13.

Comment 6 Jan Pazdziora 2010-11-26 15:17:21 UTC
(In reply to comment #1)
> Commits in spacewalk that converted it to use mod_wsgi
> 
> 7d05c99a080951a4c055648f6cd9ab4eae74c5ef

Marking as done for spacewalk-backend-0.8.19-1.