From 2426f67a96097230befdf1242041f6cf39b91e5d Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Fri, 15 Jan 2010 08:33:03 -0800 Subject: [PATCH] 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. --- xenserver/opt_xensource_libexec_interface-reconfigure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xenserver/opt_xensource_libexec_interface-reconfigure b/xenserver/opt_xensource_libexec_interface-reconfigure index b7830577..f28ae74c 100755 --- a/xenserver/opt_xensource_libexec_interface-reconfigure +++ b/xenserver/opt_xensource_libexec_interface-reconfigure @@ -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") -- 2.30.2