Bug 31731

Summary: univention-ad-takeover: traceback caused by DNS timeout?
Product: UCS Reporter: Philipp Hahn <hahn>
Component: Samba4Assignee: Arvid Requate <requate>
Status: CLOSED FIXED QA Contact: Stefan Gohmann <gohmann>
Severity: normal    
Priority: P5 CC: gohmann, jmm, josef.thaller, requate
Version: UCS 3.1Flags: requate: Patch_Available+
Target Milestone: UCS 3.2-0-errata   
Hardware: Other   
OS: Linux   
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: 31731.patch

Description Philipp Hahn univentionstaff 2013-06-12 18:58:00 CEST
Zara-AD-Takeover-Workshop (Ticket#: 2013052421000963)

root@ucs-master:/etc/postfix# univention-ad-takeover 192.168.56.102
Pinging AD IP 192.168.56.102: .
Ok, Server IP 192.168.56.102 is online.
Password for [DEMOFIRMA\Administrator]:
Warning: Multiple DCs registered for DNS SRV record Traceback (most recent call last):
  File "/usr/sbin/univention-ad-takeover", line 1798, in <module>
    (ad_server_ip, ad_server_fqdn, ad_server_name) = run_phaseI(ucr, lp, opts, args)
  File "/usr/sbin/univention-ad-takeover", line 874, in run_phaseI
    tmp_fqdn = line.split()[3].rstrip('.')
IndexError: list index out of range


Additional output for "lines":
_kerberos._tcp.dc._msdcs.demofirma.local
['', '; <<>> DiG 9.8.0-P4 <<>> @192.168.56.102 SRV _kerberos._tcp.dc._msdcs.demofirma.local +short', '; (1 server found)', ';; global options: +cmd', ';; connection timed out; no servers could be reached']


VM hat 2 interfaces: eth0 for connection to Windows-SBS and Windows-Client, eth1 for Internet access.
nameserver1=$local-ip-of-ucs-system
samba4 was stopped.
Comment 1 Arvid Requate univentionstaff 2013-12-12 17:12:54 CET
Created attachment 5696 [details]
31731.patch
Comment 2 Arvid Requate univentionstaff 2014-01-14 17:34:34 CET
While testing Bug #33644 this occurred several times, so I rebuilt the package with the patch in scope errata 3.2-0.

Advisory: 2013-12-11-univention-s4-connector.yaml
Comment 3 Stefan Gohmann univentionstaff 2014-01-22 12:01:48 CET
Test: OK
Code: OK
YAML: OK
Comment 4 Moritz Muehlenhoff univentionstaff 2014-02-06 13:37:21 CET
http://errata.univention.de/ucs/3.2/48.html