Bug 29751 - UCS 3.1 univention-ad-takeover hängt in PhaseIII bei writelock
UCS 3.1 univention-ad-takeover hängt in PhaseIII bei writelock
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 3.1
Other Linux
: P5 normal (vote)
: UCS 3.1
Assigned To: Arvid Requate
Felix Botner
: interim-4
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-11 19:08 CET by Arvid Requate
Modified: 2012-12-12 21:09 CET (History)
1 user (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
strace (2.29 MB, text/plain)
2012-12-11 19:27 CET, Arvid Requate
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2012-12-11 19:08:49 CET
univention-ad-takeover hing in einer UCS 3.1 Umgebung nach

Starting phase III of the takeover process.
Located server master22 in AD site Default-First-Site-Name in Samba4 SAM database.

strace zeigt:
fcntl(6, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=8, len=1}

lsof nach zu urteilen wird hier auf ein Writelock für sam.ldb gewartet:
=======================================================================
univentio 6344 root    0u   CHR  136,0      0t0       3 /dev/pts/0
univentio 6344 root    1u   CHR  136,0      0t0       3 /dev/pts/0
univentio 6344 root    2u   CHR  136,0      0t0       3 /dev/pts/0
univentio 6344 root    3w   REG  253,0    58190 1576926 /var/log/univention/ad-takeover.log
univentio 6344 root    4w   CHR    1,3      0t0    1228 /dev/null
univentio 6344 root    5u  0000    0,9        0    1226 anon_inode
univentio 6344 root    6u   REG  253,0  4251648 1576958 /var/lib/samba/private/sam.ldb
univentio 6344 root    7r   CHR    1,9      0t0    1233 /dev/urandom
univentio 6344 root    8u   REG  253,0 17436672 1576498 /var/lib/samba/private/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=ADDOM,DC=LOCAL.ldb
univentio 6344 root    9u  IPv4  25359      0t0     TCP master22.addom.local:38287->master22.addom.local:7389 (CLOSE_WAIT)
univentio 6344 root   10u   REG  253,0 29102080 1576967 /var/lib/samba/private/sam.ldb.d/CN=CONFIGURATION,DC=ADDOM,DC=LOCAL.ldb
univentio 6344 root   11u   REG  253,0  7139328 1576968 /var/lib/samba/private/sam.ldb.d/DC=ADDOM,DC=LOCAL.ldb
univentio 6344 root   12u   REG  253,0  7139328 1576969 /var/lib/samba/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=ADDOM,DC=LOCAL.ldb
univentio 6344 root   13u   REG  253,0  7139328 1576970 /var/lib/samba/private/sam.ldb.d/DC=FORESTDNSZONES,DC=ADDOM,DC=LOCAL.ldb
univentio 6344 root   14u   REG  253,0   421888 1576960 /var/lib/samba/private/sam.ldb.d/metadata.tdb
univentio 6344 root   21u   REG  253,0   425984 1576904 /var/lib/samba/private/secrets.tdb
=======================================================================
Comment 1 Arvid Requate univentionstaff 2012-12-11 19:27:32 CET
Created attachment 4908 [details]
strace

Ich habe den Prozess gekillt und neu gestartet, hängt wieder. strace installiert und  strace -ffxttTo trace.log -s256 -- univention-ad-takeover --fsmo-takeover
durchgeführt.

Workaround per samba4 stop zeigt, dass samba selbst hing:

root@master22:~# /etc/init.d/samba4 stop
Stopping Samba 4 daemon: samba...............
 - samba processes 6653 still running, sending SIGTERM: .
 - samba processes 6653 still running, sending SIGKILL: .
.

Laut samba-tool processes handelte es sich bei 6653 um den kdc_server.

Danach lies sich samba4 neu starten und univention-ad-takeover --fsmo-takeover lief erfolgreich durch.
Comment 2 Arvid Requate univentionstaff 2012-12-11 20:18:02 CET
Ich habe jetzt als Workaround am Anfang von phaseIII noch einen samba4-restart mit dem im Ad-Takeover-Skript üblichen dreifachen Prozess-Check eingebaut.
UCS 3.1 Changelog ist angepasst.
Comment 3 Felix Botner univentionstaff 2012-12-12 11:23:00 CET
sieht gut aus. Takeaover gegen w2k8 hat ohne Probleme funktioniert

* Benutzer wurden übernommen
* Gruppen wurden übernommen
* Container wurden übernommen
* Gruppenrichtlinien wurden übernommen
* Anmeldung am Windows Client nach Übernahme klappt
* Über RSAT können nach der Übernahme Benutzer/weitere GPO angelegt werden
* ...

Changelog Eintrag vorhanden.
Comment 4 Stefan Gohmann univentionstaff 2012-12-12 21:09:02 CET
UCS 3.1-0 has been released: 
 http://forum.univention.de/viewtopic.php?f=54&t=2125

If this error occurs again, please use "Clone This Bug".