Closed
Bug 907922
Opened 12 years ago
Closed 12 years ago
[stage] add WSGIPythonHome to mod_wsgi apache configs
Categories
(Infrastructure & Operations Graveyard :: WebOps: Socorro, task, P3)
Infrastructure & Operations Graveyard
WebOps: Socorro
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: rhelmer, Assigned: bburton)
References
Details
(Whiteboard: [push interrupt])
We are switching to virtualenv (instead of our hacky vendor-dir-ish thing, known as "thirdparty").
For this to work we just need this directive in Apache on stage:
WSGIPythonHome /data/socorro/socorro-virtualenv
I've tested this on dev and it works ok - there's a socorro PR on our side that needs to land, no reason to wait on this though.
| Assignee | ||
Updated•12 years ago
|
Priority: -- → P3
Whiteboard: [push interrupt]
| Assignee | ||
Comment 1•12 years ago
|
||
-> % svn diff
Index: modules/webapp/files/crashstats-stage/etc-httpd/domains/crash-stats-django.allizom.org.conf
===================================================================
--- modules/webapp/files/crashstats-stage/etc-httpd/domains/crash-stats-django.allizom.org.conf (revision 73638)
+++ modules/webapp/files/crashstats-stage/etc-httpd/domains/crash-stats-django.allizom.org.conf (working copy)
@@ -1,5 +1,7 @@
# vim: syntax=apache
+WSGIPythonHome /data/socorro/socorro-virtualenv
+
<VirtualHost *:80 *:81>
ServerName crash-stats.allizom.org
@@ -12,7 +14,6 @@
Alias /static/ "/data/www/crash-stats.allizom.org/socorro/webapp-django/static/"
- WSGIPythonHome /data/socorro/socorro-virtualenv
WSGIDaemonProcess crashstats_stage processes=16 threads=4 maximum-requests=1000 display-name=crashstats_stage
WSGIProcessGroup crashstats_stage
WSGIScriptAlias / /data/www/crash-stats.allizom.org/socorro/webapp-django/wsgi/socorro-crashstats.wsgi process-group=crashstats_stage application-group=crashstats_stage
bburton@althalus [02:45:47] [~/code/mozilla/sysadmins/puppet/trunk]
-> % svn ci -m "adding support for virtualenv to socorro crashstats stage, bug 907922"
Sending trunk/modules/webapp/files/crashstats-stage/etc-httpd/domains/crash-stats-django.allizom.org.conf
Transmitting file data .
Committed revision 73639.
| Assignee | ||
Comment 2•12 years ago
|
||
Index: modules/webapp/files/socorro-stage/web/etc-httpd/domains/crash-stats.allizom.com.conf
===================================================================
--- modules/webapp/files/socorro-stage/web/etc-httpd/domains/crash-stats.allizom.com.conf (revision 65839)
+++ modules/webapp/files/socorro-stage/web/etc-httpd/domains/crash-stats.allizom.com.conf (working copy)
@@ -1,4 +1,7 @@
# vim: syntax=apache
+
+WSGIPythonHome /data/socorro/socorro-virtualenv
+
<VirtualHost *:80>
ServerName crash-stats.allizom.org
ServerAlias crash-stats-phx.allizom.org
bburton@althalus [02:56:52] [~/code/mozilla/sysadmins/puppet/trunk]
-> % svn ci -m "adding support for virtualenv to socorro crashstats stage, bug 907922"
Sending trunk/modules/webapp/files/socorro-stage/web/etc-httpd/domains/crash-stats.allizom.com.conf
Transmitting file data .
Committed revision 73641.
Status: NEW → ASSIGNED
| Reporter | ||
Comment 3•12 years ago
|
||
Sorry :( to clarify, this is needed for:
crash-reports
socorro-mware
It's not needed for crash-stats
| Assignee | ||
Comment 4•12 years ago
|
||
-> % svn diff
Index: modules/webapp/files/socorro-stage/collector/etc-httpd/domains/crash-reports.mozilla.com.conf
===================================================================
--- modules/webapp/files/socorro-stage/collector/etc-httpd/domains/crash-reports.mozilla.com.conf (revision 73637)
+++ modules/webapp/files/socorro-stage/collector/etc-httpd/domains/crash-reports.mozilla.com.conf (working copy)
@@ -1,5 +1,7 @@
# vim: syntax=apache
WSGIPythonPath /data/socorro/application:/data/socorro/thirdparty:/data/socorro/application/scripts
+WSGIPythonHome /data/socorro/socorro-virtualenv
+
<VirtualHost *:81>
ServerName crash-reports.allizom.org
ServerAlias crash-reports-phx.allizom.org
Index: modules/webapp/files/socorro-stage/mware/etc-httpd/domains/socorro-mware.mozilla.com.conf
===================================================================
--- modules/webapp/files/socorro-stage/mware/etc-httpd/domains/socorro-mware.mozilla.com.conf (revision 73637)
+++ modules/webapp/files/socorro-stage/mware/etc-httpd/domains/socorro-mware.mozilla.com.conf (working copy)
@@ -1,6 +1,8 @@
WSGISocketPrefix /var/run/wsgi/bpapi_s
WSGISocketPrefix /var/run/wsgi/bpapi_nossl
WSGIPythonPath /data/socorro/application:/data/socorro/thirdparty:/data/socorro/application/scripts
+WSGIPythonHome /data/socorro/socorro-virtualenv
+
<VirtualHost *:80>
ServerName socorro-mware-stage-zlb.webapp.phx1.mozilla.com
bburton@althalus [03:05:25] [~/code/mozilla/sysadmins/puppet/trunk]
-> % svn ci -m "adding support for virtualenv to socorro crashstats stage, bug 907922"
Sending trunk/modules/webapp/files/socorro-stage/collector/etc-httpd/domains/crash-reports.mozilla.com.conf
Sending trunk/modules/webapp/files/socorro-stage/mware/etc-httpd/domains/socorro-mware.mozilla.com.conf
Transmitting file data ..
Committed revision 73642.
| Assignee | ||
Comment 5•12 years ago
|
||
Confirmed deployed and happy.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 6•12 years ago
|
||
(In reply to Brandon Burton [:solarce] from comment #1)
> -> % svn diff
> Index:
> modules/webapp/files/crashstats-stage/etc-httpd/domains/crash-stats-django.
> allizom.org.conf
> ===================================================================
> ---
> modules/webapp/files/crashstats-stage/etc-httpd/domains/crash-stats-django.
> allizom.org.conf (revision 73638)
> +++
> modules/webapp/files/crashstats-stage/etc-httpd/domains/crash-stats-django.
> allizom.org.conf (working copy)
> @@ -1,5 +1,7 @@
> # vim: syntax=apache
>
> +WSGIPythonHome /data/socorro/socorro-virtualenv
> +
> <VirtualHost *:80 *:81>
> ServerName crash-stats.allizom.org
>
> @@ -12,7 +14,6 @@
>
> Alias /static/
> "/data/www/crash-stats.allizom.org/socorro/webapp-django/static/"
>
> - WSGIPythonHome /data/socorro/socorro-virtualenv
> WSGIDaemonProcess crashstats_stage processes=16 threads=4
> maximum-requests=1000 display-name=crashstats_stage
> WSGIProcessGroup crashstats_stage
> WSGIScriptAlias /
> /data/www/crash-stats.allizom.org/socorro/webapp-django/wsgi/socorro-
> crashstats.wsgi process-group=crashstats_stage
> application-group=crashstats_stage
> bburton@althalus [02:45:47] [~/code/mozilla/sysadmins/puppet/trunk]
> -> % svn ci -m "adding support for virtualenv to socorro crashstats stage,
> bug 907922"
> Sending
> trunk/modules/webapp/files/crashstats-stage/etc-httpd/domains/crash-stats-
> django.allizom.org.conf
> Transmitting file data .
> Committed revision 73639.
Note: This change was backed out because it actually makes django sad, so we backed it out
Sending trunk/modules/webapp/files/socorro-stage/web/etc-httpd/domains/crash-stats.allizom.com.conf
Transmitting file data .
Committed revision 73646.
Updated•9 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
•