Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1377621 - ipsets' initscript unable to delete configuration (save empty)
ipsets' initscript unable to delete configuration (save empty)
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipset (Show other bugs)
7.3
All All
medium Severity low
: rc
: ---
Assigned To: Thomas Woerner
Vaclav Danek
:
Depends On: 1136257
Blocks: 1400961
  Show dependency treegraph
 
Reported: 2016-09-20 04:45 EDT by Tomas Dolezal
Modified: 2017-08-01 08:15 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1136257
Environment:
Last Closed: 2017-08-01 08:15:33 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 RHBA-2017:1904 normal SHIPPED_LIVE ipset bug fix update 2017-08-01 12:03:41 EDT

  None (edit)
Comment 1 Tomas Dolezal 2016-09-20 04:49:40 EDT
if there's saved configuration and ipset service was started, flushing ipset configuration followed by saving yields no results and returns exit code 0.

the quiet success of saving actually does not copy loaded configuration to saved configuration for future reloads. the end result is thus not the same as if there was any configuration present.
Comment 3 Thomas Woerner 2017-01-31 14:55:52 EST
There is a simply solution for this:

ipset.start-stop:
-    [[ -z $(${IPSET_BIN} list -name) ]] && return 0
+    if [[ -z $(${IPSET_BIN} list -name) ]]; then
+       if [[ -f $IPSET_DATA ]]; then
+           mv $IPSET_DATA $IPSET_DATA.save && chmod 600 $IPSET_DATA.save \
+                   || return 1
+       fi
+       return 0
+    fi
Comment 7 errata-xmlrpc 2017-08-01 08:15:33 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/RHBA-2017:1904

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