Bug 23203 - [UMC] LDAP Server Timeout / Restart
[UMC] LDAP Server Timeout / Restart
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.0 - RC
Assigned To: Andreas Büsching
Stefan Gohmann
: interim-1
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-09 07:49 CEST by Stefan Gohmann
Modified: 2011-12-13 15:50 CET (History)
2 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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2011-08-09 07:49:15 CEST
Wenn der LDAP Server neu gestartet wird, so können keine UDM Module mehr bedient werden. Hier wäre eine Fehlermeldung oder ein Reconnect sinnvoll.

Es sollte auch geprüft werden, was passiert, wenn der ldap/idletimeout die Verbindung beendet.
Comment 1 Alexander Kläser univentionstaff 2011-09-20 16:45:28 CEST
Es scheint auch, dass in einer noch laufenden Session die Verbindung zum LDAP-Server abbrechen kann. Es wird die unten stehende Fehlermeldung ausgegeben. Nach einem erneuten Login ist alles wieder in Ordnung.

====================
Can't contact LDAP server
File '/usr/lib/pymodules/python2.6/notifier/threads.py', line 75, in _run
tmp = self._function()

File '/usr/lib/pymodules/python2.6/notifier/__init__.py', line 107, in __call__
return self._function( *tmp )

File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/__init__.py', line 242, in _thread
result = module.search( request.options.get( 'container' ), request.options[ 'objectProperty' ], request.options[ 'objectPropertyValue' ], superordinate )

File '/usr/lib/pymodules/python2.6/univention/management/console/modules/udm/ldap.py', line 227, in search
raise UDM_Error( str( e ) )
====================
Comment 2 Alexander Kläser univentionstaff 2011-09-20 16:47:17 CEST
FYI, der Timeout von LDAP-Server und UMC-Verbindung sind auch unterschiedlich gesetzt, so dass es dort genau zu dem Problem kommen kann:

root@master:~# ucr search ldap/idletimeout
ldap/idletimeout: 360

root@master:~# ucr search http.*timeout
umc/http/session/timeout: 600
Comment 3 Andreas Büsching univentionstaff 2011-10-04 17:50:48 CEST
Für die LDAP Verbindung wird jetzt ein Decorator verwendet (LDAP_COnnection), der die Verbindung wieder aufbaut, wenn die "alte" nicht mehr funktioniert.
Comment 4 Stefan Gohmann univentionstaff 2011-11-25 10:39:27 CET
Ja, das funktioniert.
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2011-12-13 15:50:33 CET
UCS 3.0-0 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer
neueren Version von UCS erneut auftreten, so sollte dieser Bug dupliziert
werden: "Clone This Bug"