Page MenuHomePhabricator
Paste P3637

steps to create a Gerrit test instance in labs
ActivePublic

Authored by Paladox on Aug 3 2016, 9:18 PM.
Tags
None
Referenced Files
F4424567: steps to create a Gerrit test instance in labs
Sep 1 2016, 10:33 PM
F4424563: steps to create a Gerrit test instance in labs
Sep 1 2016, 10:28 PM
F4424531: steps to create a Gerrit test instance in labs
Sep 1 2016, 10:15 PM
F4424516: steps to create a Gerrit test instance in labs
Sep 1 2016, 10:10 PM
F4424404: steps to create a Gerrit test instance in labs
Sep 1 2016, 8:55 PM
F4420994: steps to create a Gerrit test instance in labs
Aug 31 2016, 9:07 PM
F4420992: steps to create a Gerrit test instance in labs
Aug 31 2016, 9:06 PM
F4420613: steps to create a Gerrit test instance in labs
Aug 31 2016, 6:12 PM
Subscribers
None
1. Create a fresh instance to run Gerrit itself
2. Before you apply any role on it, make sure if you: either use the existing "gerrit-mysql" instance as db backend or follow mysql setup instructions at https://phabricator.wikimedia.org/P3939 to make a new one. (don't manually install mysql on localhost). If you don't use "gerrit-mysql",make sure the "gerrit::jetty::db_host" is set to the correct server in Hiera (example: https://wikitech.wikimedia.org/w/index.php?title=Hiera%3AGit&type=revision&diff=819031&oldid=816844) The DB part should be running _before_ you start the Gerrit service.
3. Look in https://wikitech.wikimedia.org/wiki/Special:NovaInstance (Instance ID) for instance address to put in "gerrit::jetty::db_host": <id>
4. go to hiera in wikitech (Hiera:<project_name>) https://wikitech.wikimedia.org/wiki/Hiera:Git and add this unless it's already there from before
"gerrit::jetty::db_host": <from step 3>
"role::gerrit::server::ipv4": <instance-ip>
"gerrit::host": <the domain you setup in horizon>
5. apply role::gerrit::server in wikitech
6. sudo puppet agent -tv
7. /usr/bin/java -jar gerrit.war init -d review_site --batch --no-auto-start
8. sudo apt-get --purge remove gerrit
9. sudo puppet agent -tv (<< that should reinstall it).
(it's normal to see some errors until here)
10. cd /var/lib/gerrit2/ & java -jar gerrit.war reindex -d review_site --threads 4
11. sudo puppet agent -tv
12. sudo puppet agent -tv

Event Timeline

Paladox edited the content of this paste. (Show Details)
Paladox edited the content of this paste. (Show Details)
Paladox edited the content of this paste. (Show Details)
Paladox edited the content of this paste. (Show Details)
Paladox edited the content of this paste. (Show Details)
Paladox edited the content of this paste. (Show Details)
Paladox edited the content of this paste. (Show Details)
Dzahn changed the title of this paste from gerrit check list to steps to create a Gerrit test instance in labs.Aug 31 2016, 6:00 PM
Dzahn edited the content of this paste. (Show Details)
Dzahn edited the content of this paste. (Show Details)
Dzahn edited the content of this paste. (Show Details)
Dzahn edited the content of this paste. (Show Details)