Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1380141 - Updating iptables-services breaks working systems
Updating iptables-services breaks working systems
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: iptables (Show other bugs)
7.3
Unspecified Unspecified
high Severity medium
: rc
: ---
Assigned To: Phil Sutter
Tomas Dolezal
: Reopened, ZStream
Depends On:
Blocks: 1400961 1420851 1375561 1481207 1491961
  Show dependency treegraph
 
Reported: 2016-09-28 14:36 EDT by Eric Paris
Modified: 2018-04-10 07:28 EDT (History)
14 users (show)

See Also:
Fixed In Version: iptables-1.4.21-20.el7
Doc Type: Known Issue
Doc Text:
In Red Hat Enterprise Linux 7.3, the iptables-services package contained a post-uninstall script that caused iptables, the ip6tables services, or both to restart. As a consequence, the current configuration was replaced with a manually saved configuration in the /etc/sysconfig/ip6tables file. This update removes the "service restart" command from the post-uninstall script. As a result, updates to the package do not cause a service restart.
Story Points: ---
Clone Of:
: 1491961 (view as bug list)
Environment:
Last Closed: 2018-04-10 07:28:02 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:0715 normal SHIPPED_LIVE iptables bug fix and enhancement update 2018-04-10 12:09:27 EDT

  None (edit)
Description Eric Paris 2016-09-28 14:36:31 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...
Comment 1 Eric Rich 2016-09-28 15:09:23 EDT
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?
Comment 2 Eric Paris 2016-09-28 16:01:19 EDT
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.
Comment 3 Thomas Woerner 2016-09-29 05:30:57 EDT
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.
Comment 4 Thomas Woerner 2016-09-29 05:32:57 EDT
This has not been introduced with 7.3 - it is there since 7.0.
Comment 17 errata-xmlrpc 2018-04-10 07:28:02 EDT
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

Note You need to log in before you can comment on or make changes to this bug.