Bug 43171 - quota.py listener module can't handle removal
quota.py listener module can't handle removal
Status: REOPENED
Product: UCS
Classification: Unclassified
Component: Quota
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-12-12 15:34 CET by Florian Best
Modified: 2020-06-22 12:52 CEST (History)
3 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 Florian Best univentionstaff 2016-12-12 15:34:39 CET
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
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2017-09-14 11:48:10 CEST
Still reproducible with UCS 4.2-2 + UCS@school.
Comment 2 Jürn Brodersen univentionstaff 2018-10-25 12:17:16 CEST
Test 18_quota_cache_policy produces this traceback.
Comment 3 Stefan Gohmann univentionstaff 2019-01-03 07:22:54 CET
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.
Comment 4 Jürn Brodersen univentionstaff 2019-01-07 10:21:04 CET
As mentioned in comment 2, this can still happen.
-> Updated version field to 4.3