•  
     
    story #8051 cache user membership
Summary
grokmirror admin
cache user membership
I can stop the master server and have my operations that are running on slaves

-> this is not meant to be a "live cache" story, this can be done but later on

How it's used:

When I want to make my slave offline, as a grokmirror admin, on each slave I:

  • run "gitolite-tuleap-membership --create-cache"
    • This fetch the user membership (users.json)
  • edit gitolite-tuleap-membership and set use_cache = true;
  • And that's all, the slave now no longer depends on master

When operations are completed on the master, the slave should be re-connected (use_cache = false)

Work needed

  • A new option "use_cache" is added to 'tuleap-gitolite-membership' tool
  • A new CLI switch '--create-cache' is added to tuleap-gitolite-membership to fetch all membership of users
    • This leverage on the list of ssh keys already available in gitolite
    • A new REST route is added on Tuleap to fetch membership of a list of users at once (/!\ be careful, the target is 4000 users)
    • The result is stored as a json file (no need to store in a DB for the time being)
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?
Empty
Details
#8051
Manuel Vacelet (vaceletm)
2015-07-22 11:32
2015-04-30 10:05
8068

References

Follow-ups

User avatar
You have to wait for the updated REST route (already available in Tuleap dev and available next week in Tuleap entreprise).
User avatar
Nouha Terzi (terzino)2015-06-18 13:55
Ok thank you Yannis.

Should I wait for something else or it is enough (you told me about gitolite hook in the request tracker)?
User avatar
Nouha Terzi (terzino)2015-06-10 10:55
I tried this feature and didn't manage to make it work:
[root@tunlx218 etc]# /usr/share/tuleap-gitolite-membership/tuleap-gitolite-membership.php -k --create-cache

[RuntimeException]
The "--create-cache" option does not exist.

Please note that I am running:
[root@tunlx218 etc]# yum list tuleap-gitolite-membership
Installed Packages
tuleap-gitolite-membership.noarch 0.1-1.el @Tuleap

And didn't found a more recent release for this package. could you please check?

  • Permissions set to