Closed Bug 519542 Opened 15 years ago Closed 15 years ago

Update addons.mozilla.org on Sep 29

Categories

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

All
Other
task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: clouserw, Assigned: dmoore)

References

()

Details

Attachments

(1 file)

This is a production AMO push for 5.1.  Steps are below, please paste the output of all commands into this bug.  I expect there to be downtime so please use a maintenance page.  Steps to follow:

1)There are three new defines to copy from config.php.default to config.php:

SPHINX_HOST & SPHINX_PORT: I don't know these values, but chizu should.  He also says this is ready to go, but I don't have many details here.  I guess it's using the same hardware as preview.amo.
MAILCHIMP_API_KEY: This is the same one as preview.amo is using.

2) Run a script.  This may take a while:
   cd /bin/run_once/
   python uniquify_usernames.py

3) Setup Sphinx: cd /site/app/config/ and follow the directions at https://intranet.mozilla.org/WebSites#Sphinx .  Skip step 1, 5, and 6.  Look at preview.amo if in doubt or ask webdev.
   
4) Run the attached 5.1 SQL (I'll attach it soon - I'm waiting on the sql servers...)

5) Update addons.mozilla.org.  There are a couple local changes which need to
be reverted.  Double check this but I think you should only need to run from
/site/app/:
    svn revert -R .
    svn up

6) Update services.addons.mozilla.org with `svn up`

7) Restart apache to pick up gettext changes

8) Clear all caches (Zeus, memcache, local cake cache) on both AMO and SAMO.

9) Update the ca_gen2 template on forums.amo.  Should just be an svn up.

10) Add the maintenance.php blog cron job.  Copy from preview, just change the file path.

I still need to tag the site so this bug is serving as advanced notice for now.
Please wait for a comment from me here before updating.  Thanks.
Step 3 is being completed in advance by chizu on pm-app-sphinx0[12].
Assignee: server-ops → dmoore
New load-balanced VIP has been created and enabled:

pm-app-sphinx.mozilla.org (10.2.83.69)

This balances between pm-app-sphinx0[12] on ports 3312 and 3313
SPHINX_HOST = 10.2.83.69
SPHINX_PORT = 3313
Attached file 5.1.sql
(In reply to comment #4)
> Created an attachment (id=403658) [details]
> 5.1.sql

This took a little over an hour to run on the dev box
Everything is tagged.  I expect to be online tonight
One more step that I missed is to `svn up` the template we're using on forums.amo.  Jeremy said he made it an external so it should be easy to find and update.

Thanks.
> One more step that I missed is to `svn up` the template we're using on
> forums.amo.  Jeremy said he made it an external so it should be easy to find
> and update.

Oh, that is step 9.  Well, it's an external so that should help you find it.
5.1 sql executed on tm-amo01-master01
SAMO updated to revision 52595.
AMO updated to revision Updated to revision 52595.
ca_gen2 template on forums.amo updated to revision 52595.
cronjob installed
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Reopening until bug 519634 is fixed.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
SAMO config updated per Step 1
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Calling this fixed (and slightly crossing fingers); we know the following works, in addition to the regular, basic stuff:

* Search
* SAMO
* Developer Hub

There were a few developer hub bugs (one with localization), and all have been filed -- verified fixed.
Status: RESOLVED → VERIFIED
Still only serving from San Jose.  Is that on purpose or can DNS be updated back to amo.glb.mozilla.net?
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
We can revert back to amo.glb.mozilla.net, will take care of it shortly.
Back to global distribution
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: