Red Hat Bugzilla – Bug 1380141
Updating iptables-services breaks working systems
Last modified: 2018-04-10 07:28:02 EDT
see: https://bugzilla.redhat.com/show_bug.cgi?id=1378693 It appears that iptables-services includes the following: ``` if [ $1 -ge 1 ] ; then # Package upgrade, not uninstall /bin/systemctl try-restart iptables.service >/dev/null 2>&1 || : /bin/systemctl try-restart ip6tables.service >/dev/null 2>&1 || : fi ``` Problem is that OpenShift runs a daemon that dynamically add/removes iptables rules at run time. If one then updates iptables-services the run time rules get deleted. Since these added rules are dynamic they should not be saved and restored on reboot (or across restart) We have to tell customers to update iptables-services, which will break all of their traffic, then they have to restart docker, then they have to restart kubernetes/OpenShift. Why does iptables-services include the restart at all? It seems that it should be removed from the --scripts entirely...
Why is OpenShift not able to cope with core service restarts? This really seems like an OpenShift (dependency) specific issue. Is it possible for OpenShift to provide systems scripts/triggers that could combat this? IE: Watch for restarts in iptables, and restart docker/openshift?
OpenShift could likely add some sort of trigger to restart when iptables-services is restarted. But it doesn't change the fact that iptables-services may not need to restart on update at all.
There has not been a change in the spec file of iptables since RHEL-7.0 regarding the services sub package. There is this since 1.4.21-5 (Jan 15 2014): %postun services /sbin/ldconfig %systemd_postun_with_restart iptables.service ip6tables.service I agree though that the use of "_with_restart" might not be good.
This has not been introduced with 7.3 - it is there since 7.0.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2018:0715