Bug 44275 - S4 Connector noLock problem
S4 Connector noLock problem
Status: RESOLVED DUPLICATE of bug 44294
Product: UCS
Classification: Unclassified
Component: S4 Connector
UCS 4.2
Other Linux
: P5 major (vote)
: ---
Assigned To: Arvid Requate
Samba maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-04-04 08:18 CEST by Cristina
Modified: 2018-04-14 14:14 CEST (History)
1 user (show)

See Also:
What kind of report is it?: ---
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 Cristina 2017-04-04 08:18:18 CEST
Hi,

I had an issue with a computer of my domain and I had to delete it (from the group 'Computers' and its DNSs). When I tried to join this computer to my domain again, I got the following S4 Connector error:

04.04.2017 08:08:29,479 LDAP        (INFO   ): __set_values: Skip: description
04.04.2017 08:08:29,479 LDAP        (INFO   ): __set_values: Set: objectSid
04.04.2017 08:08:29,479 LDAP        (INFO   ): __set_values: set attribute, ucs_key: sambaRID - value: 1118
04.04.2017 08:08:29,487 LDAP        (INFO   ): __set_values: module computers/windows has no custom attributes
04.04.2017 08:08:29,487 LDAP        (INFO   ): set key in ucs-object: sambaRID
04.04.2017 08:08:29,487 LDAP        (INFO   ): __set_values: Set: operatingSystemVersion
04.04.2017 08:08:29,487 LDAP        (INFO   ): __set_values: set attribute, ucs_key: operatingSystemVersion - value: [u'6.1 (7601)']
04.04.2017 08:08:29,495 LDAP        (INFO   ): __set_values: module computers/windows has no custom attributes
04.04.2017 08:08:29,495 LDAP        (INFO   ): set key in ucs-object: operatingSystemVersion
04.04.2017 08:08:29,495 LDAP        (INFO   ): __set_values: Set: sAMAccountName
04.04.2017 08:08:29,495 LDAP        (INFO   ): __set_values: no ucs_attribute found in <univention.s4connector.attribute instance at 0x3daa7a0>
04.04.2017 08:08:29,495 LDAP        (INFO   ): __set_values: Set: operatingSystem
04.04.2017 08:08:29,496 LDAP        (INFO   ): __set_values: set attribute, ucs_key: operatingSystem - value: [u'Windows 7 Professional']
04.04.2017 08:08:29,503 LDAP        (INFO   ): __set_values: module computers/windows has no custom attributes
04.04.2017 08:08:29,503 LDAP        (INFO   ): set key in ucs-object: operatingSystem
04.04.2017 08:08:29,503 LDAP        (INFO   ): __set_values: Set: cn
04.04.2017 08:08:29,504 LDAP        (INFO   ): __set_values: set attribute, ucs_key: name - value: [u'IDGTRM5124']
04.04.2017 08:08:29,512 LDAP        (INFO   ): __set_values: module computers/windows has no custom attributes
04.04.2017 08:08:29,515 LDAP        (ERROR  ): Unknown Exception during sync_to_ucs
04.04.2017 08:08:29,517 LDAP        (ERROR  ): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1493, in sync_to_ucs
    result = self.modify_in_ucs(property_type, object, module, position)
  File "/usr/lib/pymodules/python2.7/univention/s4connector/__init__.py", line 1276, in modify_in_ucs
    return ucs_object.modify() and self.__modify_custom_attributes(property_type, object, ucs_object, module, position)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 317, in modify
    return self._modify(modify_childs, ignore_license=ignore_license)
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 807, in _modify
    ml = self._ldap_modlist()
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/computers/windows.py", line 595, in _ldap_modlist
    self.machineSid = self.getMachineSid(self.lo, self.position, self.oldattr['uidNumber'][0], self.get('sambaRID'))
  File "/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py", line 1149, in getMachineSid
    univention.admin.allocators.request(self.lo, self.position, 'sid', sid)
  File "/usr/lib/pymodules/python2.7/univention/admin/allocators.py", line 196, in request
    return acquireUnique(lo, position, type, value, _type2attr[type], scope=_type2scope[type])
  File "/usr/lib/pymodules/python2.7/univention/admin/allocators.py", line 185, in acquireUnique
    univention.admin.locking.lock(lo, position, type, value, scope=scope)
  File "/usr/lib/pymodules/python2.7/univention/admin/locking.py", line 98, in lock
    raise univention.admin.uexceptions.noLock(_('The attribute %r could not get locked.') % (type,))
noLock: The attribute 'sid' could not get locked.


The computer didn't appear in the 'Computers' group, but its DNSs were added. Is there something I might be missing or is this indeed a bug?

Thanks,

Cristina.
Comment 1 Arvid Requate univentionstaff 2017-04-05 12:51:36 CEST
This looks like a duplicate of Bug 44294.

*** This bug has been marked as a duplicate of bug 44294 ***