11.natgw and 49.winbind scripts contain unnecessary smbcontrol commands. This commands can cause the containing scripts to hang, causing CTDB to hang if a new recovery occurs while a previous IP takeover run is still active.
winbindd has support to track dropped IP addresses automatically, so the smbcontrol commands can be dropped. This currently works for with Samba 4.0 and 4.1.
However, Samba >= 4.2.2 has this bug:
So, when this bug is fixed we need to drop the smbcontrol commands for 4.4, 4.3 and 4.2.
Created attachment 11841 [details]
Patch for 4.2, 4.3 and 4.4 cherry-picked from master
The same patch applies cleanly to v4-2, v4-3, v4-4 branches.
(In reply to Amitay Isaacs from comment #2)
Pushed to autobuild-v4-[4|3|2]-test.
(In reply to Karolin Seeger from comment #3)
Pushed to all branches.
Closing out bug report.