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:
parent
c1a0e5bfc5
commit
253e2d3253
@ -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}(-|$)/)
|
||||
|
Loading…
x
Reference in New Issue
Block a user