mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-02 13:16:48 +09:00
M #: Fix race condition deleting ipset
This commit is contained in:
1 parent
2e92c43a6a
commit
1bd9a83659
1 file changed
+3
@@ -615,6 +615,9 @@ module SGIPTables
|
||||
remove_chains_6.each {|c| commands.add :ip6tables, "-F #{c}" }
|
||||
remove_chains_6.each {|c| commands.add :ip6tables, "-X #{c}" }
|
||||
|
||||
# delay to allow kernel to clean up
|
||||
commands.add 'sleep', '0.1'
|
||||
|
||||
ipset_list.lines.each do |line|
|
||||
if line.match(/^#{chain}(-|$)/)
|
||||
set = line.strip
|
||||
|
||||
Reference in new issue
Block a user