Bug 53749 - S4-Connector: handle uidAlreadyUsed
S4-Connector: handle uidAlreadyUsed
Status: NEW
Product: UCS
Classification: Unclassified
Component: S4 Connector
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
Samba maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-09-06 12:59 CEST by Florian Best
Modified: 2021-09-06 12:59 CEST (History)
0 users

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 Florian Best univentionstaff 2021-09-06 12:59:49 CEST
Every Jenkins run of UCS@school we are seeing a reject:
https://jenkins.knut.univention.de:8181/job/UCSschool-5.0/job/Install%20Singleserver/Config=s4,TestGroup=base1,UCSRelease=public/ws/test/connector-s4.log

06.09.2021 01:21:50.371 LDAP        (PROCESS): sync to ucs:   [          user] [       add] 'uid=gd9e0ynrva,cn=lehrer,cn=users,ou=testou1235,dc=autotest201,dc=local'                                                                         
06.09.2021 01:21:50.447 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
06.09.2021 01:21:50.447 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/admin/handlers/users/user.py", line 1669, in _ldap_pre_ready
    self.request_lock('uid', self['username'])
  File "/usr/lib/python3/dist-packages/univention/admin/handlers/__init__.py", line 1691, in request_lock
    value = univention.admin.allocators.request(self.lo, self.position, name, value)
  File "/usr/lib/python3/dist-packages/univention/admin/allocators.py", line 209, in request
    return acquireUnique(lo, position, type, value, _type2attr[type], scope=_type2scope[type])
  File "/usr/lib/python3/dist-packages/univention/admin/allocators.py", line 203, in acquireUnique
    raise univention.admin.uexceptions.noLock(_('The attribute %r could not get locked.') % (type,))
univention.admin.uexceptions.noLock: The attribute 'uid' could not get locked.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/univention/s4connector/__init__.py", line 1448, in sync_to_ucs
    result = self.add_in_ucs(property_type, object, module, position)
  File "/usr/lib/python3/dist-packages/univention/s4connector/__init__.py", line 1189, in add_in_ucs
    res = ucs_object.create(serverctrls=serverctrls, response=response)
  File "/usr/lib/python3/dist-packages/univention/admin/handlers/__init__.py", line 540, in create
    self._ldap_pre_ready()
  File "/usr/lib/python3/dist-packages/univention/admin/handlers/users/user.py", line 1671, in _ldap_pre_ready
    raise univention.admin.uexceptions.uidAlreadyUsed(self['username'])
univention.admin.uexceptions.uidAlreadyUsed: gd9e0ynrva

06.09.2021 01:21:50.448 LDAP        (WARNING): sync to ucs was not successful, save rejected
06.09.2021 01:21:50.448 LDAP        (WARNING): object was: CN=gd9e0ynrva,CN=lehrer,CN=users,OU=testou1235,DC=autotest201,DC=local