Page MenuHomePhabricator
Paste P9586

Upgrade guide
ActivePublic

Authored by Paladox on Nov 11 2019, 11:56 PM.
Tags
None
Referenced Files
F31062379: raw.txt
Nov 11 2019, 11:56 PM
Subscribers
None
Before:
* Tyler builds gerrit 2.16 using wmf/stable-2.16 following doc on Gerrit (wikitech)
* Tyler uploads to archiva.
* Tyler creates a change in deploy/wmf/stable-2.16 for the 2.16.13 update.
On the day:
* Take a backup of all the repos on gerrit1001.
* Disable puppet on gerrit1001 and gerrit2001
* Merge https://gerrit.wikimedia.org/r/#/q/topic:gerrit-upgrade-2.16+(status:open+OR+status:merged) (though there appears to be change) (also we'll do this https://gerrit.wikimedia.org/r/#/c/operations/puppet/+/488093/ sometime after)
* Change the branch on the scap master to deploy/wmf/stable-2.16 and deploy it to gerrit2001.
* Re enable puppet on gerrit2001 and run it.
* Start gerrit up on gerrit2001 (Note: it won't run schema updates on the repo, but gerrit *should* be able to start).
* If things look ok then move onto gerrit1001 (this process will require init).
* Scap deploy to gerrit1001.
* Re-enable puppet on gerrit1001 and run it.
* Stop gerrit.
* run init (inside /var/lib/gerrit2) (sudo -u gerrit2 java -jar review_site/bin/gerrit.war init -d review_site (make sure you click n for copying the gerrit.war and plugins, if you doin't press it, it'll copy things breaking plugins due to permissions)). (Also remember to click n for deleting the db tables).
* Start gerrit up.
* Start the online indexer (it may have already started).
** ssh -p 29418 <user>@gerrit.wikimedia.org gerrit index start changes and ssh -p 29418 <user>@gerrit.wikimedia.org gerrit index start projects and ssh -p 29418 <user>@gerrit.wikimedia.org gerrit index start groups
*** Note that some of the indexers may already run (e.g when we did init). Do not use --force unless it never did the upgrade. Also the online indexer pay start as soon as you start gerrit.