Bug 47234 - Singleserver join error: "Warning: 'univention-samba4slavepdc' is not configured."
Singleserver join error: "Warning: 'univention-samba4slavepdc' is not configu...
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3-1-errata
Assigned To: Sönke Schwardt-Krummrich
Jürn Brodersen
:
Depends on: 47226
Blocks: 47254
  Show dependency treegraph
 
Reported: 2018-06-22 11:47 CEST by Jürn Brodersen
Modified: 2018-06-27 14:37 CEST (History)
3 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?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.309
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 Jürn Brodersen univentionstaff 2018-06-22 11:47:16 CEST
+++ This bug was initially created as a clone of Bug #47226 +++

Due to an added check (assert_dcaccount_and_bindpwd) the join script "96univention-samba4slavepdc.inst" now fails on master.

The script should only be executed on a school slave
-> move join script into ucs-school-slave and ucs-school-nonedu-slave.

96univention-samba4slavepdc.inst
98univention-samba4slavepdc-dns.inst
Comment 1 Jürn Brodersen univentionstaff 2018-06-26 10:38:05 CEST
Do not release before bug 47226 is closed!

Otherwise new @school systems are missing these join script.
Comment 2 Jürn Brodersen univentionstaff 2018-06-26 12:10:32 CEST
As discussed this will be reverted and instead a check shall be added to the join script
Comment 3 Jürn Brodersen univentionstaff 2018-06-26 13:52:51 CEST
comment 1 is not relevant anymore!

[4.3-1 e1789882b1] Bug #47234: Move ucsschool specific join scripts into ucs-schol-metapackage
[4.3-1 4129a87a68] Revert "Bug #47234: Move ucsschool specific join scripts into ucs-schol-metapackage"
[4.3-1 9f6859fa5c] Bug #47234: readd joinscripts and add check instead
[4.3-1 8632a21538] Bug #47234: yaml
Comment 4 Jürn Brodersen univentionstaff 2018-06-26 17:33:29 CEST
I published to testing before the amd64 build was ready -> The tests I started this afternoon are still using the old version :(

Note for 4.2:
The demoting does "fail" silently. As long as no one uses "--ask-pass --force" for which there should be no reason on a master this should not be a problem.
But at least one problem is that "univentionService: S4 SlavePDC" got added to all masters since bug 41168.
We might need to clean that up.
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2018-06-26 22:02:00 CEST
I found a typo in "ldab_hostdn". And in one join script, eval "$(ucr shell)" was never called. I fixed both and rebuilt the package.

cc4916de51 Bug #47234: update advisory
da6c38bfd4 Bug #47234: improved UCS@school slave check
Comment 6 Sönke Schwardt-Krummrich univentionstaff 2018-06-26 22:03:29 CEST
Package: univention-ldb-modules
Version: 6.0.0-6A~4.3.0.201806262157
Branch: ucs_4.3-0
Scope: errata4.3-1
Comment 7 Sönke Schwardt-Krummrich univentionstaff 2018-06-27 09:50:02 CEST
I had to rebuild the package again. A "joinscript_save_current_version" was missing in both join scripts.

Package: univention-ldb-modules
Version: 6.0.0-7A~4.3.0.201806270945
Branch: ucs_4.3-0
Scope: errata4.3-1
Comment 8 Jürn Brodersen univentionstaff 2018-06-27 11:38:50 CEST
What I tested:
  @school slave:
    Removed 96univention-samba4slavepdc and 98univention-samba4slavepdc-dns from /var/univention-join/status -> 05_check_join_status fails (as expected)
    univention-run-join-scripts --run-scripts 96univention-samba4slavepdc -> no early exit -> OK
    univention-run-join-scripts --run-scripts 98univention-samba4slavepdc-dns -> no early exit -> OK
    05_check_join_status passes -> OK

  @school singlemaster
    Removed 96univention-samba4slavepdc and 98univention-samba4slavepdc-dns from /var/univention-join/status -> 05_check_join_status fails (as expected)
    univention-run-join-scripts --run-scripts 96univention-samba4slavepdc -> early exit -> OK
    univention-run-join-scripts --run-scripts 98univention-samba4slavepdc-dns -> early exit -> OK
    05_check_join_status passes -> OK

[4.3-1 d43cc83b39] Bug #47234: yaml (fix line length)

-> verified
Comment 9 Erik Damrose univentionstaff 2018-06-27 14:37:28 CEST
<http://errata.software-univention.de/ucs/4.3/124.html>