1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #: Fix race condition deleting ipset

(cherry picked from commit 1bd9a83659edd518476a2ad34f0bdc7c3caffc9e)
This commit is contained in:
Christian González 2022-01-17 18:56:38 +01:00 committed by Ruben S. Montero
parent 0d7487d798
commit 0b9fafe80a
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -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