Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 670967

Summary: Running mod_python and mod_wsgi on RHEL causes WSGI requests to hang indefinitely
Product: [Retired] Pulp Reporter: Jay Dobies <jason.dobies>
Component: z_otherAssignee: Jason Connor <jconnor>
Status: CLOSED NOTABUG QA Contact: Preethi Thomas <pthomas>
Severity: urgent Docs Contact:
Priority: low    
Version: unspecifiedCC: mmccune, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-15 06:21:15 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 Jay Dobies 2011-01-19 19:18:48 UTC
It's a known bug; mod_wsgi says it shouldn't be run with mod_python but we've never seen issues before. mod_python is used in the repo securing, so we need a wsgi hook into the auth code.

Comment 1 Jay Dobies 2011-01-19 19:30:34 UTC
This isn't a fix, but it's a temporary hack to allow Pulp to function on RHEL 5. Since I doubt anyone is using the auth hooks right now anyway, this seemed like a fair trade off.


commit	e69350104b1e357e8059d85d5bc0c65f6fe65ec3
tree	ad64ff976c6e1e910d0a4751a1c8b83a8b9bab60


670967 - Temporarily disbled the repo auth checks until we write a
mod_wsgi hook for it.


etc/httpd/conf.d/pulp.conf

Comment 2 Jay Dobies 2011-01-19 20:16:08 UTC
commit	2535d4ab0036e6c0f4d3355644dd22c68f12af0a
tree	30f0cd45d3b2e3a612bb67acd270e0714c6a9fc4


670967 - Removed mod_python as a dependency since it will conflict with
mod_wsgi.


pulp.spec

Comment 3 Jay Dobies 2011-02-04 15:20:15 UTC
Considering this bug fixed. We'll treat the rewriting of the auth hook in mod_wsgi as a new feature.

To verify, install on RHEL. If you can do anything against the server, it worked.

Comment 4 Preethi Thomas 2011-02-04 15:42:47 UTC
verified

[root@unused yum.repos.d]# rpm -q pulp
pulp-0.0.134-1
  [root@unused yum.repos.d]# pulp-admin -u admin -p admin repo list
No repositories available to list


[root@unused yum.repos.d]# pulp-admin auth login -u admin -p admin
User credentials successfully stored at [/root/.pulp]

Comment 5 Preethi Thomas 2011-03-02 17:56:07 UTC
Reopening

Looks like the the dependency got back in the spec

[root@dell-per805-01 ~]# pulp-admin -u admin -p admin repo list
error: operation failed: <!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@localhost 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.3 (Red Hat) Server at dell-per805-01.rhts.eng.bos.redhat.com Port 443</address>
</body></html>

[root@dell-per805-01 ~]# rpm -q mod_python
mod_python-3.2.8-3.1
[root@dell-per805-01 ~]# rpm -e mod_python
[root@dell-per805-01 ~]# service pulp-server restart
Stopping httpd: [  OK  ]
Stopping Qpid AMQP daemon: [  OK  ]
Stopping mongod: [  OK  ]
Starting mongod: [  OK  ]
Starting Qpid AMQP daemon: [  OK  ]
Starting httpd: [  OK  ]
[root@dell-per805-01 ~]# pulp-admin -u admin -p admin repo list
No repositories available to list

Comment 6 Sayli Karmarkar 2011-07-15 06:21:15 UTC
Closing this bug. No more mod_python :)