Univention Bugzilla – Bug 38729
AD Takeover only works with primary interfaces eth[0,1,2,3]
Last modified: 2017-04-20 16:49:33 CEST
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.
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:
We should improve the whole function.
I ment eth[0,1,2,3] of course ;)
AD takover should now use all kind of interfaces referenced in ucr to find the primary interface (including br*, wlan*, etc)
*** Bug 38979 has been marked as a duplicate of this bug. ***
Please also merge to UCS 4.1-0
OK - takeover with bonding interface
With eth5 and eth5.1 (vlan) i got a new virt interface eth5.1:1
This seems not correct. We should somehow ignore virt and vlan interfaces here.
Also, iInterface in
elif ip_version == 6:
if "interfaces/%s/ipv6/default/address" % iInterface in self.ucr:
is "referenced before assignment".
Please revert the patch, but leave the "new_interface = None" at the beginning to avoid the "new_interface: variable referenced before assignment" error during takeover.
With that, takeover with bonding interfaces succeeds but without the virt interface for the ip of the old ad. But this is better than an aborted takeover.
OK - YAML
OK - normal ad takeover (eth0)
FAIL - takeover with bonding => see Bug #39095
OK - reverted in 4.1-0
OK - reverted in 4.0-3
*** Bug 32078 has been marked as a duplicate of this bug. ***