You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vcl.apache.org by Dmitri Chebotarov <dc...@gmu.edu> on 2012/07/03 19:29:34 UTC

UID is not unique error while making reservation

Hi

While testing VCL 2.3 I've discovered following issue (I'm not sure if the same issue exists in 2.2.1):

...
/usr/bin/ssh -i /usr/local/vcl/etc/vcl/vcl.key  -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectionAttempts=1 -o ConnectTimeout=3 -l root -p 22 -x sandbox-vcl-19 '/usr/sbin/useradd -u 6 -d /home/dchebota -m dchebota -g vcl' 2>&1

2012-07-03 13:02:52|10095|563:555|new|utils.pm:run_ssh_command(5053)|run_ssh_command output:

|10095|563:555|new| useradd: UID 6 is not unique
...

My userid in vcl.user table is 6, and it conflicts with 'shutdown' user on the Linux system, which also has UID 6. 

I've modified the Linux.pm to add 500 to UIDs < 500. I think Linux starts with UID 500 for new user anyway:

# diff Linux.pm Linux-pm-old 
2851,2853d2850
< 		if ($user_uid < 500) {
< 			$user_uid = $user_uid + 500;
< 		}

This seemed to fixed the issue.

--
Thank you,

Dmitri Chebotarov
Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging
223 Aquia Building, Ffx, MSN: 1B5
Phone: (703) 993-6175
Fax: (703) 993-3404