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

B #6299: Increase delay before ipset destroy

This will give kernel some more time to clean up before attemting to
destroy the associated ipsets. Otherwise it may fail with: "Set cannot be
destroyed: it is in use by a kernel component"
This commit is contained in:
Bruno Rodriguez 2023-09-21 10:45:11 +02:00 committed by Ruben S. Montero
parent c1a0e5bfc5
commit 253e2d3253
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -616,7 +616,7 @@ module SGIPTables
remove_chains_6.each {|c| commands.add :ip6tables, "-X #{c}" }
# delay to allow kernel to clean up
commands.add 'sleep', '0.1'
commands.add 'sleep', '0.5'
ipset_list.lines.each do |line|
if line.match(/^#{chain}(-|$)/)