Bug 20604 - univention-shares sollte zunächst prüfen, ob der LDAP-Server erreichbar ist
univention-shares sollte zunächst prüfen, ob der LDAP-Server erreichbar ist
Status: CLOSED WONTFIX
Product: UCS
Classification: Unclassified
Component: General
UCS 2.3
Other Linux
: P5 normal (vote)
: UCS 3.0-2
Assigned To: Lukas Walter
Florian Best
: interim-2
: 19500 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-05 09:04 CET by Michael Basse
Modified: 2012-07-20 15:25 CEST (History)
4 users (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:
klaeser: Patch_Available+


Attachments
Patch zur vorherigen Überprüfung, ob LDAP-Server erreichbar ist (209 bytes, patch)
2010-11-05 09:38 CET, Michael Basse
Details | Diff
Patch zum Abfangen der Exception auf Python Ebene (886 bytes, patch)
2011-10-17 09:41 CEST, Lukas Walter
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Basse univentionstaff 2010-11-05 09:04:00 CET
Der durch univention-shares angelegte cron-job

/etc/univention/templates/files/etc/cron.d/univention-shares führt keine Prüfung aus, ob der LDAP-Server erreichbar ist. Somit wird jedesmal eine Mail verschickt, die wie folgt aussieht

Traceback (most recent call last):
  File "/usr/sbin/univention-share-replication", line 50, in ?
    lo = univention.uldap.getMachineConnection()
  File "/usr/lib/python2.4/site-packages/univention/uldap.py", line 91, in
getMachineConnection
    lo=access(host=baseConfig['ldap/master'], base=baseConfig['ldap/base'],
binddn=baseConfig['ldap/hostdn'], bindpw=bindpw, start_tls=start_tls,
decode_ignorelist=decode_ignorelist)
  File "/usr/lib/python2.4/site-packages/univention/uldap.py", line 113, in __init__
    self.__open()
  File "/usr/lib/python2.4/site-packages/univention/uldap.py", line 152, in __open
    self.lo.start_tls_s()
  File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 532, in start_tls_s
    return self._ldap_call(self._l.start_tls_s)
  File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 96, in _ldap_call
    result = func(*args,**kwargs)
ldap.SERVER_DOWN: {'desc': "Can't contact LDAP server"}

Besonders im Schulumfeld, wo einige Schulen länger nicht erreichbar sind, häuft sich der Mail-Verkehr leider erheblich.
Comment 1 Michael Basse univentionstaff 2010-11-05 09:38:51 CET
Created attachment 2803 [details]
Patch zur vorherigen Überprüfung, ob LDAP-Server erreichbar ist
Comment 2 Stefan Gohmann univentionstaff 2010-11-05 09:46:09 CET
Im Produkt sollte das direkt auf Python Ebene per try / except abgefangen werden.
Comment 3 Lukas Walter univentionstaff 2011-10-17 09:41:00 CEST
Created attachment 3643 [details]
Patch zum Abfangen der Exception auf Python Ebene

Der folgende Patch löst das Problem direkt auf Python Ebene indem er das script abbricht wenn eine 'ldap.SERVER_DOWN' exception auftritt.
Comment 4 Florian Best univentionstaff 2011-10-17 12:51:47 CEST
*** Bug 19500 has been marked as a duplicate of this bug. ***
Comment 5 Stefan Gohmann univentionstaff 2012-04-13 19:34:10 CEST
Der Patch ist OK, vielleicht die Meldung noch in "Can't contact LDAP server" ändern, das ist geläufiger.
Comment 6 Lukas Walter univentionstaff 2012-04-17 14:36:51 CEST
Paket ist in UCS 3.0 nicht mehr vorhanden.

WONTFIX
Comment 7 Florian Best univentionstaff 2012-06-20 09:16:46 CEST
(In reply to comment #6)
> Paket ist in UCS 3.0 nicht mehr vorhanden.
> 
> WONTFIX
Paket "univention-shares" ist in UCS3 nicht mehr vorhanden.

# apt-cache policy univention-shares
N: Unable to locate package univention-shares
Comment 8 Stefan Gohmann univentionstaff 2012-07-20 15:25:08 CEST
UCS 3.0-2 has been released: 
  http://forum.univention.de/viewtopic.php?f=54&t=1905

If this error occurs again, please use "Clone This Bug".