taskSavane - Tasks: task #1030, Determine whether a group is...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

task #1030: Determine whether a group is managed by Savane

Submitted by:  Sylvain Beucler <beuc>
Submitted on:  Sun 07 Nov 2004 10:43:23 AM UTC  
 
Should Start On: Sun 07 Nov 2004 12:00:00 AM UTCShould be Finished on: Mon 06 Nov 2006 11:00:00 PM UTC
Category: BackendStatus: None
Priority: 1 - LaterPlanned Release: 
Assigned to: NoneOpen/Closed: Open
Privacy: PublicFor/By: None

Wed 14 Sep 2005 11:35:12 AM UTC, comment #4:

Well, in fact, they are not removed from the system. Quite annoying.

Mathieu Roy <yeupou>
Project Administrator
Wed 14 Sep 2005 11:33:48 AM UTC, comment #3:

We haven't seen a Savane installation with more than 65536 groups but I would make Savane requiring a recent 2.6 kernel to run the backend with more than 32 groups. While for now, you need pretty big installation to reach that case.

What if, instead, we would make sure the frontend does not allow to create a group with a name that exists on the system already? That would solve part of the issue.
We would no longer have any risk of ruining an existing group.

And, in the end, while groups are still in the database, one can find out whether they were generated by savane or not, with a 2 line perl script calling Savane.pm
Since there are no longer groups destroyed the harsh way (by hand or almost with a DELETE call) but destroyed if their status match D (or something like that, I dont remember) by sv_cleaner, we should never have a group on the system created by Savane still existing while missing in the database.

But I dont remember sv_cleaner calling groupdel (and it wont fit, since sv_cleaner is unlikely to be run from each server providing services based on ssh). So I dont remember how deleted groups are removed from the system.

Mathieu Roy <yeupou>
Project Administrator
Wed 14 Sep 2005 11:18:42 AM UTC, comment #2:

That's an interesting issue.

Note that the current 2.6 kernels support 65536 groups per users, though (provided, as mentioned elsewhere, that your sysconf(3) returns accurate values).

Else you could maintain a list of groups that the backend truly created (ie that weren't created before for other purposes). This also requires an upgrade script that would trust that the current group list in the DB never overrode any previously existing groups.
When creating a new group, and if the group already exists, the project should be skipped and some output be produced on stderr (well as usual).

Sylvain Beucler <beuc>
Project Administrator
Wed 14 Sep 2005 09:48:30 AM UTC, comment #1:

Something crossed my mind: would that mean that user "svnnobody" would be member of something between 500 and 5000 groups? Ouch, event recompiling the kernel wouldnt do.

Mathieu Roy <yeupou>
Project Administrator
Sun 07 Nov 2004 10:43:23 AM UTC, original submission:

Automatically add a 'svnobody' to groups created by Savane, so we can determine whether the group is managed by Savane later on.

'svnobody' is not member of 'svusers'.

We also need to add a script in update/ to add 'svnobody' as member of all projects present in the database and the system.

Check this URL for more details:
https://mail.gna.org/public/savane-dev/2004-11/msg00084.html

Sylvain Beucler <beuc>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by yeupou (Updated the item)
  • -unavailable- added by beuc (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 14 Sep 2005 09:48:30 AM UTCyeupouShould be Finished onSun 07 Nov 2004 12:00:00 AM UTC=>Mon 06 Nov 2006 11:00:00 PM UTC
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup