•  
     
    story #2504 Replicate Gerrit content onto Tuleap using Replication mecanism
Summary
admin
Replicate Gerrit content onto Tuleap using Replication mecanism
I have near real time synchronization between gerrit and Tuleap
* Bonus: when the repository is replicated, we see actual commiter name instead of "Gerrit replication" (in "Latest push" column)
Empty
Empty
Status
Empty
Done
Development
  • [ ] Does it involves User Interface? 
  • [ ] Are there any mockups?
  • [ ] Are permissions checked?
  • [ ] Does it need Javascript development?
  • [ ] Does it need a forge upgrade bucket?
  • [ ] Does it need to execute things in system events?
  • [ ] Does it impact project creation (templates)?
  • [ ] Is it exploratory?
* There is a special Tuleap user for gerrit replication (either one or one per gerrit server)
* On Tuleap side, update permissions (gitolite) to allow Write and Rewind only to this user when the repo is migrated


How to setup replication:
---
On gerrit server:
unzip ../gerrit-full-2.5.1.war
cp WEB-INF/plugins/replication.jar ../gerrit_dev/plugins/
cat etc/replication.config
---------------------------------------------
[remote "shunt"]
url = gitolite@shunt.cro.enalean.com:${name}.git
push = +refs/heads/*:refs/heads/*
push = +refs/tags/*:refs/tags/*
authGroup = shunt-replication
---------------------------------------------
ssh-keygen
first connexion (gitolite@shunt.cro.enalean.com) accept host (ssh)

Info about errors: logs/error_log

-- On tuleap
create user for gerrit
Upload gerrit2 SSH key

-- On gerrit side (to automate?)
create gerrit group named "shunt-replication"
no user in it
make group visible to all registered user

-- When you migrate a Tuleap repo to gerrit
Git read access to "refs/*" for shunt-replication group for each project to replicate
Details
#2504
Manuel Vacelet (vaceletm)
2013-03-18 17:13
2013-02-14 16:50
1474

References

Follow-ups

User avatar
dylan bowden (dylan)2013-03-05 14:38
  • Technical informations
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
  • Technical informations
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes