Last modified: 2014-03-14 13:39:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T64529, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62529 - Create l10nupdate users and group with id 10002
Create l10nupdate users and group with id 10002
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
deployment-prep (beta) (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-11 13:20 UTC by Antoine "hashar" Musso (WMF)
Modified: 2014-03-14 13:39 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Antoine "hashar" Musso (WMF) 2014-03-11 13:20:38 UTC
The production manifests to install an application server rely on user/group l10nupdate with GID 10002 and an UID generated locally on each application server.  The home dir is hardcoded everywhere to point to /home/l10nupdate

On labs, /home is a shared folder and puppet can not set the uid/gid for /home/l10nupdate because NFS prevents to do so. Additionally each instance would assign a different UID to l10nupdate user which would cause the files to change of UID whenever puppet run on a different instance.

A way to solve it would be to create a l10nupdate user with UID 10002 and a l10nupdate group with GID 10002.  The ids would then be usable on the NFS server and they will be identical on each instances.
Comment 1 Antoine "hashar" Musso (WMF) 2014-03-11 13:39:48 UTC
As discussed with Coren, we need to fix the ID madness in production.
Comment 2 Antoine "hashar" Musso (WMF) 2014-03-11 13:48:04 UTC
Coren instructed to:

1) create a l10nupdate group at https://wikitech.wikimedia.org/wiki/Special:NovaServiceGroup  (done)

2) get rid of hardcoded gid/uid in puppet manifests
Comment 3 Gerrit Notification Bot 2014-03-11 14:15:25 UTC
Change 118071 had a related patch set uploaded by Hashar:
Tweak l10nupdate user/group creations for beta cluster

https://gerrit.wikimedia.org/r/118071
Comment 4 Gerrit Notification Bot 2014-03-14 13:38:43 UTC
Change 118071 merged by coren:
beta: skip l10nupdate user/group creation

https://gerrit.wikimedia.org/r/118071
Comment 5 Antoine "hashar" Musso (WMF) 2014-03-14 13:39:30 UTC
I did create a l10nupdate user using the wikitech interface and Coren tweaked it is uid/gid:

$ ldaplist -l passwd l10nupdate

dn: uid=l10nupdate,ou=people,dc=wikimedia,dc=org
	uid: l10nupdate
	objectClass: person
	objectClass: organizationalPerson
	objectClass: inetorgperson
	objectClass: ldappublickey
	objectClass: shadowaccount
	objectClass: posixaccount
	objectClass: top
	loginShell: /usr/local/bin/sillyshell
	uidNumber: 602
	gidNumber: 602
	sn: L10nupdate
	homeDirectory: /home/l10nupdate
	mail: hashar@free.fr
	cn: L10nupdate

Aka GID/UID set to 602.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links