Univention Bugzilla – Bug 39095
AD Takeover only works with primary interfaces eth[0,1,2,3]
Last modified: 2023-03-25 06:47:08 CET
+++ This bug was initially created as a clone of Bug #38729 +++ 2015061821000399 If the DC master doesn't use eth[1,2,3,4] as primary interface, the AD takepover won't work because of the usage of an unreferenced variable new_interface. See /usr/share/pyshared/univention/management/console/modules/adtakeover/takeover.py: l1585ff. def create_virtual_IP_alias() If you have a brief look you can see, that this only works with eth[1,2,3,4] - at the customer system, a bonding configuraiton with br0 was used - the takeover failed with: "new_interface: variable referenced before assignment" Since UCS 4.0 br0 is default when using bridged scenarios (for example each UVMM host). More not so important side effects: - wlan? - ipv6 We should improve the whole function.
takeover with bonding interface bond1 (not ethx) Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/univention/management/console/modules/adtakeover/__init__.py", line 60, in _background result = func(self, request) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/adtakeover/__init__.py", line 119, in take_over_domain takeover.take_over_domain(self.progress) File "/usr/lib/pymodules/python2.7/univention/management/console/modules/adtakeover/takeover.py", line 346, in take_over_domain takeover_final.create_reverse_DNS_records() File "/usr/lib/pymodules/python2.7/univention/management/console/modules/adtakeover/takeover.py", line 1661, in create_reverse_DNS_records p = subprocess.Popen(["univention-ipcalc6", "--ip", self.ad_server_ip, "--netmask", self.ucr["interfaces/%s/netmask" % self.primary_interface], "--output", "pointer", "--calcdns"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) AttributeError: AD_Takeover_Finalize instance has no attribute 'primary_interface' => initialize primary_interface = None => add if self.primary_interface before "p = subprocess.Popen(["un ..."
This has also been reported via traceback feedback, 4.1-1 errata136 (Vahr). Remark: Nach WIndows-Domain übernahme Die Ausführung des Kommandos 'take_over_domain' ist fehlgeschlagen: Traceback (most recent call last): File "%PY2.7%/univention/management/console/modules/adtakeover/__init__.py", line 60, in _background result = func(self, request) File "%PY2.7%/univention/management/console/modules/adtakeover/__init__.py", line 119, in take_over_domain takeover.take_over_domain(self.progress) File "%PY2.7%/univention/management/console/modules/adtakeover/takeover.py", line 349, in take_over_domain takeover_final.create_reverse_DNS_records() File "%PY2.7%/univention/management/console/modules/adtakeover/takeover.py", line 1664, in create_reverse_DNS_records p = subprocess.Popen(["univention-ipcalc6", "--ip", self.ad_server_ip, "--netmask", self.ucr["interfaces/%s/netmask" % self.primary_interface], "--output", "pointer", "--calcdns"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) AttributeError: AD_Takeover_Finalize instance has no attribute 'primary_interface'
Reported again, 4.1-3 errata268 (Vahr)
Reported again, 4.1-4 errata389 (Vahr)
Reported again, 4.2-1 errata118 (Lesum)
Reported again: Version: 4.2-3 errata231 (Lesum) Remark: Simply AD takeover after a fresh install
Reported again: Version: 4.3-0 errata0 (Neustadt) Remark: Pre UCS 4.3 Tests
(In reply to Johannes Keiser from comment #7) > Reported again: Version: 4.3-0 errata0 (Neustadt) > > Remark: Pre UCS 4.3 Tests This should now be fixed though Bug #46105.
Bugfix confirmed. AD Takeover worked in manual test with new network interface not named eth[1,2,3,4]. Joining a client on the old Windows AD IP was also tested and was succesful.