Bug 41167 - 100% CPU for samba (dreplsrv) due to UCS@school Slave accounts left over in Master Samba/AD
100% CPU for samba (dreplsrv) due to UCS@school Slave accounts left over in M...
Status: CLOSED DUPLICATE of bug 41168
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1-3-errata
Assigned To: Stefan Gohmann
Felix Botner
: interim-2
Depends on:
Blocks: 43311
  Show dependency treegraph
 
Reported: 2016-04-27 17:16 CEST by Arvid Requate
Modified: 2019-12-03 09:51 CET (History)
4 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): Troubleshooting
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-04-27 17:16:24 CEST
Ticket#2016042721000409 reported 100% CPU consumed samba (dreplsrv) due to Slave accounts left over in the Samba/AD account database on the UCS@school Master.

I guess this is a common issue to all UCS@school Multiserver setups with Samba4 on the Master which used the UCS@school wizard to setup School DCs. To do this, the DC Slave needs to be joined already. If univention-samba4 has already been installed on the DC Slave during installation time, then it also joins into the Master Samba/AD *and* is recognized by the DC Master as a partner for DRS replication. This is not disabled during installation of ucs-school-slave and secondary join of the Slave.

In the case of the given ticket we did this on the Master:
============================================
ldbrename -H /var/lib/samba/private/sam.ldb \
'CN=S01,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=base' \
'CN=S01,CN=Servers,CN=S01,CN=Sites,CN=Configuration,DC=base' 


ldbdel -H /var/lib/samba/private/sam.ldb \
'CN=NTDS Settings,CN=S01,CN=Servers,CN=S01,CN=Sites,CN=Configuration,DC=base' \
 --recursive

samba-tool drs kcc
============================================

After that samba (dreplsrc) stopped torturing the Master.

The first step is purely cosmetic. Probably we could have simply done this:
============================================
ldbdel -H /var/lib/samba/private/sam.ldb \
'CN=S01,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=base' \
--recursive

ldbdel -H /var/lib/samba/private/sam.ldb \
CN=S01,OU=Domain Controllers,DC=base \
--recursive

samba-tool drs kcc
============================================
Comment 1 Stefan Gohmann univentionstaff 2016-09-01 06:23:33 CEST
Will be fixed due to Bug #41168.

*** This bug has been marked as a duplicate of bug 41168 ***
Comment 2 Felix Botner univentionstaff 2016-09-12 14:00:27 CEST
ok