2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-29 15:28:56 +00:00

xenserver: Give ovs-vsctl a bit more time to do its work

Creating bonds sometimes fails due to ovs-vsctl timing out.  This commit
increases the time interface-reconfigure gives ovs-vsctl from five to
twenty seconds.  We should investigate why it's taking ovs-vsctl so
long, but this helps for now.
This commit is contained in:
Justin Pettit
2010-01-15 08:33:03 -08:00
parent 5b7448ed80
commit 2426f67a96

View File

@@ -1255,7 +1255,7 @@ def datapath_modify_config(commands):
for c in commands:
log(" %s" % c)
rc = run_command(['/usr/bin/ovs-vsctl']
rc = run_command(['/usr/bin/ovs-vsctl'] + ['--timeout=20']
+ [c for c in commands if not c.startswith('#')])
if not rc:
raise Error("Failed to modify vswitch configuration")