Bug 40424 - 62ucs-school-slave.inst crestarts samba before renaming sam.ldb
62ucs-school-slave.inst crestarts samba before renaming sam.ldb
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: Samba 4
UCS@school 4.0 R2
Other Linux
: P5 normal (vote)
: UCS@school 4.1 R2 vXXX
Assigned To: Arvid Requate
Felix Botner
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-13 15:07 CET by Arvid Requate
Modified: 2016-10-04 13:24 CEST (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 Arvid Requate univentionstaff 2016-01-13 15:07:37 CET
62ucs-school-slave.inst restarts samba (Bug 26799 and Bug 40390) and after that it moves existing sam.ldb and secrets.ldb out of the way (Bug 33398).

Probably it would be a good idea to move the files before doing the crestart.

+++ This bug was initially created as a clone of Bug #40390 +++
Comment 1 Arvid Requate univentionstaff 2016-01-13 15:35:45 CET
> Probably it would be a good idea to move the files before doing the crestart.

This is obviously not an improvement, because then samba will fail to start.

The general question is: Do we still need to remove the sam.ldb+secrets.ldb or isn't that covered in 96univention-samba4.inst (Bug #32246)?


* The sam.ldb remove code block in 62ucs-school-slave.inst was introduced
  via Bug 33398 at 2013-12-03

* The cleanup_var_lib_samba function in 96univention-samba4.inst is getting called during re-provision since Bug 32246, fixed 2014-06-05

So my impression is, that the code block in 62ucs-school-slave.inst is obsolete.
But fixing this needs thorough testing.
Comment 2 Arvid Requate univentionstaff 2016-09-05 21:19:36 CEST
------------------------------------------------------------------------
r71684 | arequate | 2016-08-17 15:40:59 +0200 (Mi, 17. Aug 2016) | 2 Zeilen

* Bug #40424: The sam.ldb and secrets.ldb are not removed any longer
  while running the ucs-school-slave joinscripts.
------------------------------------------------------------------------

Advisory: ucs-school-metapackage.yaml
Comment 3 Felix Botner univentionstaff 2016-09-12 18:45:10 CEST
OK - 96univention-samba4.inst always cleans the samba private during join
OK - YAML
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2016-10-04 13:24:47 CEST
UCS@school 4.1 R2 v5 has been released.

http://docs.software-univention.de/changelog-ucsschool-4.1R2v5-de.html

If this error occurs again, please clone this bug.