Univention Bugzilla – Bug 43171
quota.py listener module can't handle that a parent container has been removed
Last modified: 2022-05-19 10:29:55 CEST
I removed a UCS@school OU. The listener.log showed: 12.12.16 15:24:58.131 LISTENER ( PROCESS ) : updating 'ou=du386,dc=school,dc=local' command d UNIVENTION_DEBUG_BEGIN : uldap.__open host=xen7.school.local port=7389 base=dc=school,dc=local UNIVENTION_DEBUG_END : uldap.__open host=xen7.school.local port=7389 base=dc=school,dc=local UNIVENTION_DEBUG_BEGIN : uldap.__open host=xen7.school.local port=7389 base=dc=school,dc=local UNIVENTION_DEBUG_END : uldap.__open host=xen7.school.local port=7389 base=dc=school,dc=local Traceback (most recent call last): File "/usr/lib/univention-directory-listener/system/quota.py", line 214, in handler _add_all_shares_below_this_container_to_dn_list(dn) File "/usr/lib/univention-directory-listener/system/quota.py", line 170, in _add_all_shares_below_this_container_to_dn_list for dn, attr in lo.search(base=container_dn, filter='(&(objectClass=univentionShare)(univentionShareHost=%s))' % _get_fqdn(), attr=['dn']): File "/usr/lib/pymodules/python2.7/univention/uldap.py", line 284, in search res = self.lo.search_ext_s(base, ldap_scope, filter, attr, serverctrls=serverctrls, clientctrls=None, timeout=timeout, sizelimit=sizelimit) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 918, in search_ext_s return self._apply_method_s(SimpleLDAPObject.search_ext_s,*args,**kwargs) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 860, in _apply_method_s return func(self,*args,**kwargs) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 553, in search_ext_s return self.result(msgid,all=1,timeout=timeout)[1] File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 465, in result resp_type, resp_data, resp_msgid = self.result2(msgid,all,timeout) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 469, in result2 resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all,timeout) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 476, in result3 resp_ctrl_classes=resp_ctrl_classes File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 483, in result4 ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop) File "/usr/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call result = func(*args,**kwargs) ldap.NO_SUCH_OBJECT: {'matched': 'dc=school,dc=local', 'desc': 'No such object'} 12.12.16 15:24:58.211 LISTENER ( WARN ) : at least one delete handler failed
Still reproducible with UCS 4.2-2 + UCS@school.
Test 18_quota_cache_policy produces this traceback.
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018. Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact your partner or Univention for any questions. If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.
As mentioned in comment 2, this can still happen. -> Updated version field to 4.3
*** Bug 52765 has been marked as a duplicate of this bug. ***