Univention Bugzilla – Bug 49959
ucs-test: ucs_uid = ucs_object.get('uid', [None])[0]: AttributeError: 'NoneType' object has no attribute 'get'
Last modified: 2019-08-22 15:30:15 CEST
03.08.2019 06:22:04.900 LDAP (PROCESS): sync from ucs: [windowscomputer] [ add] cn=f6e0i1p5xx,DC=autotest071,DC=local 03.08.2019 06:22:04.947 LDAP (PROCESS): sync from ucs: [windowscomputer] [ modify] cn=f6e0i1p5xx,DC=autotest071,DC=local 03.08.2019 06:22:04.952 LDAP (PROCESS): sync from ucs: [ group] [ modify] cn=computers,cn=groups,DC=autotest071,DC=local 03.08.2019 06:22:04.964 LDAP (PROCESS): sync from ucs: [windowscomputer] [ modify] cn=f6e0i1p5xx,DC=autotest071,DC=local 03.08.2019 06:22:04.969 LDAP (PROCESS): sync from ucs: [windowscomputer] [ modify] cn=f6e0i1p5xx,DC=autotest071,DC=local 03.08.2019 06:22:06.039 LDAP (PROCESS): sync to ucs: [windowscomputer] [ modify] cn=f6e0i1p5xx,dc=AutoTest071,dc=local 03.08.2019 06:22:06.112 LDAP (ERROR ): failed in post_con_modify_functions 03.08.2019 06:22:06.113 LDAP (ERROR ): Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/univention/s4connector/__init__.py", line 1577, in sync_to_ucs f(self, property_type, object) File "/usr/lib/python2.7/dist-packages/univention/s4connector/s4/computer.py", line 112, in windowscomputer_sync_s4_to_ucs_check_rename ucs_uid = ucs_object.get('uid', [None])[0] AttributeError: 'NoneType' object has no attribute 'get'
Looks like the test didn't wait for the sync and already deleted the object in OpenLDAP?
Look like, yes. The lines after the traceback are: 03.08.2019 06:22:06.113 LDAP (WARNING): sync to ucs was not successfull, save rejected 03.08.2019 06:22:06.114 LDAP (WARNING): object was: CN=f6e0i1p5xx,DC=autotest071,DC=local 03.08.2019 06:22:11.134 LDAP (PROCESS): sync from ucs: [windowscomputer] [ modify] cn=f6e0i1p5xx,DC=autotest071,DC=local 03.08.2019 06:22:11.139 LDAP (PROCESS): sync from ucs: [windowscomputer] [ delete] cn=f6e0i1p5xx,DC=autotest071,DC=local
Created attachment 10149 [details] bug49959.patch This may fix it.
a9af64e91a | Fix 8dc9a2ed71 | Advisory
OK: windowscomputer is ignored OK: YAML
<http://errata.software-univention.de/ucs/4.4/239.html>