xenserver: Give ovs-vsctl a bit more time to do its work
authorJustin Pettit <jpettit@nicira.com>
Fri, 15 Jan 2010 16:33:03 +0000 (08:33 -0800)
committerJustin Pettit <jpettit@nicira.com>
Fri, 15 Jan 2010 16:36:05 +0000 (08:36 -0800)
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

index b78305777f17bdae22b7ef13909b372843a0ed74..f28ae74cced1afd133f800e5944cedd90cc95d8d 100755 (executable)
@@ -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")