Bug 52367 - Doc: create_spn_account.sh should evaluate create_spn_account_timeout
Doc: create_spn_account.sh should evaluate create_spn_account_timeout
Status: CLOSED FIXED
Product: UCS manual
Classification: Unclassified
Component: General
unspecified
Other All
: P5 normal (vote)
: UCS 4.4-7
Assigned To: Felix Botner
Erik Damrose
:
Depends on: 51835
Blocks:
  Show dependency treegraph
 
Reported: 2020-11-16 09:34 CET by Felix Botner
Modified: 2021-02-15 09:51 CET (History)
4 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?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.206
Enterprise Customer affected?:
School Customer affected?: Yes
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 Felix Botner univentionstaff 2020-11-16 09:34:12 CET
+++ This bug was initially created as a clone of Bug #51835 +++

# univention-app info
UCS: 4.4-5 errata710
Installed: samba4=4.10 self-service=4.0 self-service-backend=4.0 ucsschool=4.4 v6
Upgradable:

Scenario:
In "98univention-samba4-dns.inst" we create a SPN account named "dns-hostname$" using the script "create_spn_account.sh". Because the user is created via UDM on the UCS Master, but must be available on the local machine for upcoming steps in the join script, the script waits until it can find the account in the local Samba AD directory:

https://github.com/univention/univention-corporate-server/blob/4.4-5/services/univention-samba4/scripts/create_spn_account.sh#L131

There is a $timeout variable that defaults to "1200" (2 hours). The variable can be changed via "create_spn_account_timeout".

Expected behavior:
I can define "create_spn_account_timeout" prior to the join and this affects the timeout. There are environments where the 2 hours are not enough (see also Bug #47609).

Observed behavior:
"create_spn_account_timeout" does not get evaluated and the joinscript aborts after waiting for 2 hours for the "dns-hostname$" account to be available in the local Samba AD.
As a consequence the whole join aborts. This is especially painful if the join itself takes several hours in larger environments and has to be presumed manually after waiting long enough for the replication and s4-connector to catch up.

Possible solution:
"create_spn_account.sh" could simply do a "eval $(ucr shell create/spn/account/timeout)". This way "create/spn/account/timeout" could be defined via a UCR policy and would be set locally at the beginning of the join and before "98univention-samba4-dns.inst" is called.
Comment 1 Felix Botner univentionstaff 2020-11-16 09:39:00 CET
added chapter join to extended-docs/performance-guide-4.4.xml

4efc7523da69222af58f2421f232545c19c548ba
Comment 2 Erik Damrose univentionstaff 2020-11-16 09:59:01 CET
OK: Text in new chapter
OK: No errors in jenkins build

Reopen: As discussed, please merge to UCS 5
Comment 3 Felix Botner univentionstaff 2020-11-16 10:20:48 CET
491aebe8e0c2323f9480ea6f1e4c24a94ad0055e
doc/extended-docs/performance-guide-5.0.xml
Comment 4 Erik Damrose univentionstaff 2020-11-16 11:21:26 CET
OK: merge to ucs 5
Verified