Page MenuHomePhabricator

Tool Maintainers badly overcounted
Closed, ResolvedPublic

Description

8727 is the count of all posixAccounts under ou=people,dc=wikimedia,dc=org, not the count of members of cn=project-tools,ou=groups,dc=wikimedia,dc=org

Event Timeline

The number of tool maintainers should be just below 1000 at the moment; the number of tools seems to match up roughly (not sure where the extra 13 directories come from, though).

valhallasw@tools-bastion-03:/home$ ls | wc -l
967
valhallasw@tools-bastion-03:/data/project$ ls | wc -l
1511

However, @Krenair measured more tool maintainers:

krenair@bastion-01:~$ ldapsearch -x cn=tools | grep member: -c
1063

which might mean we have almost a hundred users that never got so far to actually log in?

bd808 triaged this task as High priority.Aug 31 2016, 12:21 AM

And a third number:

tools-bastion-02.tools:~
bd808$ ldapsearch -LLL -x cn=project-tools|grep 'member: '|wc -l
1225

I guess the next mystery to solve here is which of cn=project-tools,ou=groups,dc=wikimedia,dc=org and cn=tools,ou=projects,dc=wikimedia,dc=org is the actual membership roster of the tools project.

And a third number:

tools-bastion-02.tools:~
bd808$ ldapsearch -LLL -x cn=project-tools|grep 'member: '|wc -l
1225

I guess the next mystery to solve here is which of cn=project-tools,ou=groups,dc=wikimedia,dc=org and cn=tools,ou=projects,dc=wikimedia,dc=org is the actual membership roster of the tools project.

I think it's the former, see T138150

I think it's the former, see T138150

cn=project-tools,ou=groups,dc=wikimedia,dc=org is the one I had picked at some point during Striker development as well. I of course didn't make any notes about why I chose that one. I'll be documenting the LDAP layout as maintained by OpenStackManager soon as I start figuring out how account creation works.

Change 307960 had a related patch set uploaded (by BryanDavis):
Count members of tools project, not all posix users

https://gerrit.wikimedia.org/r/307960

I'll be documenting the LDAP layout as maintained by OpenStackManager soon as I start figuring out how account creation works.

Great, that'd be T138151 :)

Change 307960 merged by jenkins-bot:
Count members of tools project, not all posix users

https://gerrit.wikimedia.org/r/307960

bd808 claimed this task.

https://toolsadmin.wikimedia.org/ is now reporting 1225 maintainers which matches the output of ldapsearch -LLL -x cn=project-tools|grep 'member: '|wc -l

Mentioned in SAL [2016-09-01T17:12:09Z] <bd808> Updated striker to ac555bd; fixes T144064