Bug 54791 - School replica join: 97univention-s4-connector.inst DNS configuration times out in big environments
School replica join: 97univention-s4-connector.inst DNS configuration times o...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: S4 Connector
UCS 4.4
Other Linux
: P5 normal (vote)
: UCS 5.0-2-errata
Assigned To: Julia Bremer
Arvid Requate
:
Depends on:
Blocks: 55877 55137 55218 55880 55938 57027
  Show dependency treegraph
 
Reported: 2022-05-23 17:08 CEST by Julia Bremer
Modified: 2024-02-23 13:26 CET (History)
5 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 6: Setup Problem: Issue for the setup process
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.103
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2022051821000145
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 Julia Bremer univentionstaff 2022-05-23 17:08:54 CEST
At a school customer, with ~150.000 users, we've seen the following error pretty often during the join of a new school replica server:


Wait for bind9: .Restarting bind9 (via systemctl): bind9.service.
Restarting samba-ad-dc (via systemctl): samba-ad-dc.service.
....................................................................................................Restarting bind9 (via systemctl): bind9.service.
....................................................................................................Restarting bind9 (via systemctl): bind9.service.

See "systemctl status bind9.service" and "journalctl -xe" for details.
 failed!
**************************************************************
* ERROR: Failed to configure Samba4 as backend for bind.     *
*        Please check the samba and the s4-connector logfile.*
**************************************************************


This happened, because during the join thousands of objects have been created in UCS and have been added as pickle files for the s4connector. 
When starting the s4connector during the join, all those files are then processed in order of creation.
Oftentimes, the DNS zones necessary for this joinscript are not synced before the timeout of ~20 minutes is reached.
The customer then has to wait until the zone is synced and restart the join.
It would be good if we could sync the objects needed for the join to complete earlier than the other less important objects.
Comment 1 Arvid Requate univentionstaff 2022-05-23 20:36:15 CEST
Addressing Bug 49442 could help too but may not be enough.
Comment 4 Julia Bremer univentionstaff 2022-08-02 18:06:54 CEST
Package: univention-squid-kerberos
Version: 9.0.0-2A~5.0.0.202208021733
Branch: ucs_5.0-0
Scope: errata5.0-2

Package: univention-s4-connector
Version: 14.0.10-3A~5.0.0.202208021732
Branch: ucs_5.0-0
Scope: errata5.0-2


Package: univention-samba4
Version: 9.0.8-4A~5.0.0.202208021731
Branch: ucs_5.0-0
Scope: errata5.0-2

32823a5d39 Bug #54791: yaml
37713fbfbd Bug #54791: CHangelog
b9a44f98b7 Bug #54791: cfg for testing
59d3076b98 Bug #54791: schoolserver join often fails in big environments



resync_object_from_ucs.py has been modified to have the new flag --first, which resyncs an object and gives the newly created pickle file a negative timestamp as its name. Because of this, objects can be put to the beginning of the queue. 

The Joinscripts 97univention-s4-connector 98univention-samba4-dn and 98univention-squid-samba4 have been modified to use this flag.
Comment 5 Arvid Requate univentionstaff 2022-08-03 18:25:59 CEST
82bdfddeda | Advisory markup
bb970f8ee6 | Advisory wording
730d6cf240 | Cleanup: Adjust spacing in help message

Verified:
* Code review
* Test run with the new cfg scenario
* Test of file ordering with locale/default='en_US.UTF-8:UTF-8' and locale/default='de_DE.UTF-8:UTF-8'
* Package update
* Advisories