Closed
Bug 853577
Opened 13 years ago
Closed 13 years ago
puppet upgrade to mod_wsgi 3.4-1 stops loading mod_wsgi
Categories
(Infrastructure & Operations Graveyard :: WebOps: Other, task)
Infrastructure & Operations Graveyard
WebOps: Other
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: cturra, Assigned: cturra)
References
Details
this morning i stumbled across the new input production environment having this issue...
last night puppet updated mod_wsgi to 3.4-1.el6.rfx and in the process reset the conf.d/wsgi.conf file to comment out the LoadModule mod_wsgi. i have resolved this on input (new prod) and generic prod by managing the wsgi.conf file in puppet!
| Assignee | ||
Comment 1•13 years ago
|
||
:rbryce found this happening on pp-app-input01 also.
[root@pp-app-input01 ~]# apachectl configtest
Syntax error on line 1 of /etc/httpd/conf/domains/input.mozilla.org.conf:
Invalid command 'WSGISocketPrefix', perhaps misspelled or defined by a module not included in the server configuration
committed fix in revision 61838 to use the *NEW* input modules wsgi.conf 'file' resource.
Info: Applying configuration version '61838'
Notice: /Stage[main]/Httpd-app-input/File[/etc/httpd/conf.d/wsgi.conf]/content:
--- /etc/httpd/conf.d/wsgi.conf 2013-03-20 04:54:23.000000000 -0700
+++ /tmp/puppet-file20130321-14350-47qnab-0 2013-03-21 12:13:50.000000000 -0700
@@ -1,14 +1,3 @@
-#################################################################################
-# mod_python and mod_wsgi compatibility note
-#################################################################################
-# mod_wsgi will deadlock if run in daemon mode while mod_python is enabled
-# do not enable both mod_python and mod_wsgi if you are going to use the
-# WSGIDaemonProcess directive
-# In previous version of mod_wsgi, apache would segfault when both mod_wsgi
-# and mod_python were enabled. This update does not guarantee that will not
-# happen.
-#################################################################################
-# Do not enable mod_python and mod_wsgi in the same apache process.
-#################################################################################
+# File managed by puppet b/c some mod_wsgi yum updates disable this :(
-#LoadModule wsgi_module modules/mod_wsgi.so
+LoadModule wsgi_module modules/mod_wsgi.so
Info: FileBucket adding {md5}ab1416f3992f859b434ab086f79127cc
Info: /Stage[main]/Httpd-app-input/File[/etc/httpd/conf.d/wsgi.conf]: Filebucketed /etc/httpd/conf.d/wsgi.conf to main with sum ab1416f3992f859b434ab086f79127cc
Notice: /Stage[main]/Httpd-app-input/File[/etc/httpd/conf.d/wsgi.conf]/content: content changed '{md5}ab1416f3992f859b434ab086f79127cc' to '{md5}c7f771476c1c0484ca7f6304fce71aaf'
Notice: Finished catalog run in 30.54 seconds
[root@pp-app-input01 ~]# apachectl configtest
Syntax OK
Comment 2•13 years ago
|
||
pp-input-01 is still having issues. This node is disabled in Zeus at the moment with 2 nodes handling the requests.
Comment 3•13 years ago
|
||
downtimed the host and Zeus nagios checks for 7 days.
| Assignee | ||
Comment 4•13 years ago
|
||
(In reply to Rick Bryce [:rbryce] from comment #2)
> pp-input-01 is still having issues. This node is disabled in Zeus at the
> moment with 2 nodes handling the requests.
note: pp-input-01 is having unrelated issues. as discussed earlier, we're going to cut our losses here and hold off resolving this single host issue with the brand new input cluster targeting a go-live next week.
| Assignee | ||
Comment 5•13 years ago
|
||
bedrock-dev was another victim. i have pushed a fix for this revision 61924.
Comment 7•13 years ago
|
||
Intranet cluster in HCI, too.
| Assignee | ||
Comment 8•13 years ago
|
||
resolved intranet cluster with svn revision 62010.
| Assignee | ||
Comment 9•13 years ago
|
||
it's been a bit now since we saw any more hosts affected by this. marking as r/fixed.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 10•13 years ago
|
||
This just happened to graphs1.dmz.scl3, causing problems for graphs.mozilla.org.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 11•13 years ago
|
||
updated puppet module for graphs to include permanent wsgi.conf fix.
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
Comment 12•13 years ago
|
||
Happened on graphite1.dmz.phx1, snippets1.dev.webapp.phx1 and maybe a couple more during :dumitru's oncall shift...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 14•13 years ago
|
||
add input-dev to the list.
Let's turn mod_wsgi into a module that handles the config file and the package install, rather than directly realizing it everywhere. I don't like the precedent of turning every package into a module, but I think this case warrants it. If not a module, than some other technique that always does both things.
| Assignee | ||
Comment 15•13 years ago
|
||
i created a webapp::mod_wsgi module to manage this. in addition, i went through all the webapp modules that realize(Package["mod_wsgi"]) and replaced that line any all other references to mod_wsgi with an include to thew new webapp::mod_wsgi module.
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Updated•7 years ago
|
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•