B #3624: wait for xtables lock

Avoid collisions with non OpenNebula process accessing xtables: 

`-w 3` wait 3 seconds for a xtables lock
`-W 20000` check the lock each 20000 microseconds = 0.02 seconds

Co-authored-by: Anton Todorov <a.todorov@storpool.com>
This commit is contained in:
Ricardo DiazandAnton Todorov authored and GitHub committed 2021-03-12 15:21:47 +01:00
1 parent 3e019b0ced
commit 75ec892d4e
1 file changed
+3 -3
+3 -3
View File
@@ -22,9 +22,9 @@ module VNMMAD
# to local installations. Any modification requires to sync the hosts
# with onehost sync command.
COMMANDS = {
:ebtables => 'sudo -n ebtables',
:iptables => 'sudo -n iptables',
:ip6tables=> 'sudo -n ip6tables',
:ebtables => 'sudo -n ebtables --concurrent',
:iptables => 'sudo -n iptables -w 3 -W 20000',
:ip6tables=> 'sudo -n ip6tables -w 3 -W 20000',
:ip => 'sudo -n ip',
:ip_unpriv=> 'ip',
:virsh => 'virsh -c qemu:///system',