Bug 46376 - DCMaster down: Loading UMC takes longer than 5, up to 35 seconds
DCMaster down: Loading UMC takes longer than 5, up to 35 seconds
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3
Assigned To: Stefan Gohmann
Dirk Wiesenthal
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-02-22 17:31 CET by Erik Damrose
Modified: 2018-03-14 14:38 CET (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 Erik Damrose univentionstaff 2018-02-22 17:31:30 CET
When the DC Master in a domain is not reachable, logging into the UMC or even the portal on a DC Backup takes a very long time. Only an empty page is shown. As a user i would think that the UMC is broken.

When analyzing the requests sent by the browser, the univention/get/session-info request is the culprit for the long wait. Only after it has been finished, the page content will load.

Maybe the new attribute about user_groups is causing this issue?
Comment 1 Erik Damrose univentionstaff 2018-02-22 17:33:38 CET
It makes no difference if single sign-on is used or not
Comment 2 Jürn Brodersen univentionstaff 2018-02-22 18:04:11 CET
Note:
session-info is mapped to session_info in the backend by cherrypy
Comment 3 Jürn Brodersen univentionstaff 2018-02-22 18:09:21 CET
getMachineConnection() connects by default to the ldap master. If no write connection is needed it can be called with ldap_master=False
'''
getMachineConnection(ldap_master=False)
'''

That might fix the problem
Comment 4 Stefan Gohmann univentionstaff 2018-02-23 20:45:46 CET
(In reply to Jürn Brodersen from comment #3)
> getMachineConnection() connects by default to the ldap master. If no write
> connection is needed it can be called with ldap_master=False
> '''
> getMachineConnection(ldap_master=False)
> '''
> 
> That might fix the problem

Yes, good catch.

Fixed:

86022fb2
https://git.knut.univention.de/univention/ucs/commit/86022fb2136a3a32c6577ce205cb6bbe99e2d1e4

univention-management-console (10.0.4-1) unstable; urgency=medium

 * By default, getMachineConnection connects to the DC master. This
   leads to timeouts if the DC master is not available (Bug #46376)

Changelog:
02c334b5
https://git.knut.univention.de/univention/ucs/commit/02c334b59d04ef83ac5ec9a711b4b23ff96aefba
Comment 5 Dirk Wiesenthal univentionstaff 2018-02-26 13:33:26 CET
Works great.
Comment 6 Stefan Gohmann univentionstaff 2018-03-14 14:38:19 CET
UCS 4.3 has been released:
 https://docs.software-univention.de/release-notes-4.3-0-en.html
 https://docs.software-univention.de/release-notes-4.3-0-de.html

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