Bug 42770 - Test 61_udm-users.14_user_creation_with_uidNumber_already_in_use.test in jenkins
Test 61_udm-users.14_user_creation_with_uidNumber_already_in_use.test in jenkins
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: UDM
unspecified
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Florian Best
Stefan Gohmann
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-10-25 23:30 CEST by Dirk Wiesenthal
Modified: 2017-04-04 18:29 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Wiesenthal univentionstaff 2016-10-25 23:30:32 CEST
http://jenkins.knut.univention.de:8080/view/App%20Center/job/UCS-4.1/job/Apps/job/kix4otrs7/job/App%20Autotest%20MultiEnv/10/SambaVersion=s4,Systemrolle=master/testReport/junit/61_udm-users/14_user_creation_with_uidNumber_already_in_use/test/

[2016-10-23 21:32:17.047615] Creating users/user object with /usr/sbin/udm-test users/user create --position cn=users,dc=autotest101,dc=local --set username=mkakhv6dgl --set firstname=kcf6o9eieb --set lastname=ym36el2rqu --set uidNumber=5000 --set password=univention
(2016-10-23 21:32:17.225003) Traceback (most recent call last):
(2016-10-23 21:32:17.225035)   File "14_user_creation_with_uidNumber_already_in_use", line 19, in <module>
(2016-10-23 21:32:17.225048)     udm.create_user(uidNumber = uid_number)
(2016-10-23 21:32:17.225061)   File "/usr/lib/pymodules/python2.7/univention/testing/udm.py", line 337, in create_user
(2016-10-23 21:32:17.225075)     return (self.create_object('users/user', wait_for_replication, check_for_drs_replication, **attr), attr['username'])
(2016-10-23 21:32:17.225088)   File "/usr/lib/pymodules/python2.7/univention/testing/udm.py", line 194, in create_object
(2016-10-23 21:32:17.225102)     raise UCSTestUDM_CreateUDMObjectFailed({'module': modulename, 'kwargs': kwargs, 'returncode': child.returncode, 'stdout': stdout, 'stderr': stderr})
(2016-10-23 21:32:17.225122) univention.testing.udm.UCSTestUDM_CreateUDMObjectFailed: {'returncode': 3, 'stdout': "The uidNumber is already in use as a gidNumber: '5000'\n", 'stderr': '', 'module': 'users/user', 'kwargs': {'username': 'mkakhv6dgl', 'firstname': 'kcf6o9eieb', 'lastname': 'ym36el2rqu', 'uidNumber': '5000', 'position': 'cn=users,dc=autotest101,dc=local', 'password': 'univention'}}
[2016-10-23 21:32:17.225145] Cleanup after exception: <class 'univention.testing.udm.UCSTestUDM_CreateUDMObjectFailed'> {'returncode': 3, 'stdout': "The uidNumber is already in use as a gidNumber: '5000'\n", 'stderr': '', 'module': 'users/user', 'kwargs': {'username': 'mkakhv6dgl', 'firstname': 'kcf6o9eieb', 'lastname': 'ym36el2rqu', 'uidNumber': '5000', 'position': 'cn=users,dc=autotest101,dc=local', 'password': 'univention'}}
[2016-10-23 21:32:17.225155] Performing UCSTestUDM cleanup...
[2016-10-23 21:32:17.225163] UCSTestUDM cleanup done
Comment 1 Florian Best univentionstaff 2016-10-26 11:08:34 CEST
# univention-ldapsearch gidNumber=5000 dn -LLL gidNumber
dn: cn=Domain Admins,cn=groups,dc=school,dc=local
gidNumber: 5000

→ The Domain Admins group already has the gidNumber 5000. The range is just wrong.

ucs-test (7.0.6-16):
r73592 | Bug #42770: fix uid-number range
Comment 2 Stefan Gohmann univentionstaff 2017-02-13 08:59:25 CET
OK, looks good.
Comment 3 Stefan Gohmann univentionstaff 2017-04-04 18:29:44 CEST
UCS 4.2 has been released:
 https://docs.software-univention.de/release-notes-4.2-0-en.html
 https://docs.software-univention.de/release-notes-4.2-0-de.html

If this error occurs again, please use "Clone This Bug".