Closed Bug 920967 Opened 11 years ago Closed 11 years ago

[Socorro] Please update configuration of middleware on stage and production

Categories

(Infrastructure & Operations Graveyard :: WebOps: Socorro, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: adrian, Assigned: bburton)

Details

In file `/etc/socorro/common.conf`:
> export elasticSearchHostname='socorro-es.stage.webapp.phx1.mozilla.com'
> + export elasticsearch_urls='http://socorro-es.stage.webapp.phx1.mozilla.com:9200'
> export searchImplementationModule="socorro.external.elasticsearch"

The same will need to be done in prod, and could actually be done now, as part of this bug. There is no need to wait until the release to update that configuration. 

The diff for prod is: 

> + export elasticsearch_urls='http://socorro-es.webapp.phx1.mozilla.com:9200'
Assignee: server-ops-webops → bburton
Component: Server Operations: Web Operations → WebOps: Socorro
Product: mozilla.org → Infrastructure & Operations
bburton@althalus [10:31:55] [~/code/mozilla/sysadmins/puppet/trunk]
-> % svn diff
Index: modules/socorro/files/stage/etc-socorro/common.conf
===================================================================
--- modules/socorro/files/stage/etc-socorro/common.conf	(revision 75760)
+++ modules/socorro/files/stage/etc-socorro/common.conf	(working copy)
@@ -42,7 +42,7 @@
 export persistentBrokenDumpPathname=/home/socorro/persistent/fixbrokendumps.pickle
 export brokenFennecFixer=/data/bin/minidump_hack-fennec
 export brokenFirefoxLinuxFixer=/data/bin/minidump_hack-firefox_linux
-export elasticSearchHostname='socorro-es.stage.webapp.phx1.mozilla.com'
+export elasticSearchHostname='http://socorro-es.stage.webapp.phx1.mozilla.com:9200'
 export searchImplementationModule="socorro.external.elasticsearch"

 export PUB_USER='socorro'
bburton@althalus [10:31:59] [~/code/mozilla/sysadmins/puppet/trunk]
-> % svn ci -m "updating ES hostname for socorro stage, bug 920967"
Sending        trunk/modules/socorro/files/stage/etc-socorro/common.conf
Transmitting file data .
Committed revision 75779.
-> % svn diff
Index: modules/socorro/files/stage/etc-socorro/common.conf
===================================================================
--- modules/socorro/files/stage/etc-socorro/common.conf	(revision 75779)
+++ modules/socorro/files/stage/etc-socorro/common.conf	(working copy)
@@ -42,7 +42,8 @@
 export persistentBrokenDumpPathname=/home/socorro/persistent/fixbrokendumps.pickle
 export brokenFennecFixer=/data/bin/minidump_hack-fennec
 export brokenFirefoxLinuxFixer=/data/bin/minidump_hack-firefox_linux
-export elasticSearchHostname='http://socorro-es.stage.webapp.phx1.mozilla.com:9200'
+export elasticSearchHostname='socorro-es.stage.webapp.phx1.mozilla.com'
+export elasticsearch_urls='http://socorro-es.stage.webapp.phx1.mozilla.com:9200'
 export searchImplementationModule="socorro.external.elasticsearch"

 export PUB_USER='socorro'
bburton@althalus [10:48:11] [~/code/mozilla/sysadmins/puppet/trunk]
-> % svn ci -m "updating ES hostname for socorro stage, bug 920967"
Sending        trunk/modules/socorro/files/stage/etc-socorro/common.conf
Transmitting file data .
Committed revision 75782.
That last diff looks good to me.
-> % svn diff
Index: modules/socorro/files/prod/etc-socorro/common.conf
===================================================================
--- modules/socorro/files/prod/etc-socorro/common.conf	(revision 75760)
+++ modules/socorro/files/prod/etc-socorro/common.conf	(working copy)
@@ -38,6 +38,7 @@
 export brokenFennecFixer=/data/bin/minidump_hack-fennec
 export brokenFirefoxLinuxFixer=/data/bin/minidump_hack-firefox_linux
 export elasticSearchHostname='socorro-es.webapp.phx1.mozilla.com'
+export elasticsearch_urls='http://socorro-es.webapp.phx1.mozilla.com:9200'
 export searchImplementationModule="socorro.external.elasticsearch"

 export product='Firefox,Fennec,FennecAndroid'
bburton@althalus [11:12:03] [~/code/mozilla/sysadmins/puppet/trunk]
-> % svn ci -m "adding to ES config for socorro prod, bug 920967"
Sending        trunk/modules/socorro/files/prod/etc-socorro/common.conf
Transmitting file data .
Committed revision 75786.
Change has landed on production and mware httpd have been restarted

[root@sp-admin01.phx1 ~]# issue-multi-command mware "grep ela /etc/socorro/common.conf"
[sp-mware01.phx1.mozilla.com] running: grep ela /etc/socorro/common.conf
[sp-mware02.phx1.mozilla.com] running: grep ela /etc/socorro/common.conf
[sp-mware03.phx1.mozilla.com] running: grep ela /etc/socorro/common.conf
[sp-mware03.phx1.mozilla.com] finished: grep ela /etc/socorro/common.conf (0.314s)
[sp-mware03.phx1.mozilla.com] out: export elasticSearchHostname='socorro-es.webapp.phx1.mozilla.com'
[sp-mware03.phx1.mozilla.com] out: export elasticsearch_urls='http://socorro-es.webapp.phx1.mozilla.com:9200'
[sp-mware03.phx1.mozilla.com] out: export searchImplementationModule="socorro.external.elasticsearch"
[sp-mware02.phx1.mozilla.com] finished: grep ela /etc/socorro/common.conf (0.377s)
[sp-mware02.phx1.mozilla.com] out: export elasticSearchHostname='socorro-es.webapp.phx1.mozilla.com'
[sp-mware02.phx1.mozilla.com] out: export elasticsearch_urls='http://socorro-es.webapp.phx1.mozilla.com:9200'
[sp-mware02.phx1.mozilla.com] out: export searchImplementationModule="socorro.external.elasticsearch"
[sp-mware01.phx1.mozilla.com] finished: grep ela /etc/socorro/common.conf (0.557s)
[sp-mware01.phx1.mozilla.com] out: export elasticSearchHostname='socorro-es.webapp.phx1.mozilla.com'
[sp-mware01.phx1.mozilla.com] out: export elasticsearch_urls='http://socorro-es.webapp.phx1.mozilla.com:9200'
[sp-mware01.phx1.mozilla.com] out: export searchImplementationModule="socorro.external.elasticsearch"
[root@sp-admin01.phx1 ~]# issue-multi-command mware "service httpd restart"
[sp-mware01.phx1.mozilla.com] running: service httpd restart
[sp-mware02.phx1.mozilla.com] running: service httpd restart
[sp-mware03.phx1.mozilla.com] running: service httpd restart
[sp-mware02.phx1.mozilla.com] finished: service httpd restart (1.599s)
[sp-mware02.phx1.mozilla.com] out: Stopping httpd: [  OK  ]
[sp-mware02.phx1.mozilla.com] out: Starting httpd: [  OK  ]
[sp-mware01.phx1.mozilla.com] finished: service httpd restart (1.768s)
[sp-mware01.phx1.mozilla.com] out: Stopping httpd: [  OK  ]
[sp-mware01.phx1.mozilla.com] out: Starting httpd: [  OK  ]
[sp-mware03.phx1.mozilla.com] finished: service httpd restart (1.768s)
[sp-mware03.phx1.mozilla.com] out: Stopping httpd: [  OK  ]
[sp-mware03.phx1.mozilla.com] out: Starting httpd: [  OK  ]
Status: NEW → ASSIGNED
Looks good to me. It seems we didn't release yesterday so I can't verify this is truly working yet.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.