Complete staging set up for android.git.linaro.org

Registered by Milo Casagrande

We need to set up a gerrit instance on the android git staging server, in order to study the migration of the service, and eventually turn the staging instance into the new production one.

Blueprint information

Status:
Complete
Approver:
Tyler Baker
Priority:
High
Drafter:
Milo Casagrande
Direction:
Approved
Assignee:
Stevan Radaković
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon 2013.04
Started by
Milo Casagrande
Completed by
Tyler Baker

Related branches

Sprints

Whiteboard

Meta:
Headline: Complete set up of the staging android git server to match existing server.
Acceptance: Code reviews are also possible on the android git staging instance and there is a git-ro setup that works just as well as the actual server.

[milo, 2013-04-09] Spent a great deal of time figuring out why git-ro was not correctly working: the Apache RewriteLock directive was not configured, and the RewriteMap one was not being locked correctly, resulting in borked output. Took a while since error log was swamped by other messages as well.
[milo, 2013-04-10] Need to file a ticket to Canonical IS in order to get clear picture of how gerrit was configured on the server, and to get also the DB dump.
[milo, 2013-04-10] Latest version of gerrit 2.5.2 has been copied on the server under /srv/gerrit.
[milo, 2013-04-10] Canonical IS provided DB dumps, all copied on the staging server.
[milo, 2013-04-11] After discovering I had a problem with my DNS, I can finally see the staging instances: http://staging.review.android.git.linaro.org/ and http://staging.android.git.linaro.org
[stevanr, 2013-04-11] create-git-hooks.sh was taken from git.linaro.org actually, paths are updated, script is about to be deployed to staging.android.git.l.o by Philip.
[stevanr, 2013-04-11] script was already in place at /srv/gerrit/linaro/git/scripts/create-git-hooks.sh, added crontab entry for root as */15 * * * * /srv/gerrit/linaro/git/scripts/create-git-hooks.sh
[stevanr, 2013-04-26] clone.bundles prove to give more then 30% increase for larger repos. The new script for creating/updating clone.bundle files has been added to staging.android.git.linaro.org to run every Monday at 2am as root: 0 2 * * 0 /srv/gerrit/linaro/git/scripts/create-clone-bundles.sh

(?)

Work Items

Work items:
[milo] Copy gerrit configuration from actual production server: DONE
[milo] Install gerrit on staging instance: DONE
[milo] Set up git-ro access for potential automated build usage: DONE
[stevanr] Set up scripts to create update-server-info post-update hooks just like it's done on the android.git.linaro.org: DONE
[milo] Configure gerrit LDAP integration with Linaro Login: DONE
[stevanr] Setup android.git.l.o locally with repo clone.bundle feature and do some some test comparing with/without it: DONE
Email Vish about the new process to use: TODO

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.