aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Klozik <martinx.klozik@intel.com>2016-05-12 08:14:23 +0100
committerMartin Klozik <martinx.klozik@intel.com>2016-05-12 08:26:23 +0100
commit0c83887dac13f44e4ee2aea128a04c27f9a0ef2e (patch)
treec3267809e1413843ef72e98f5ece63b51856f64d
parent589565c7d88f238e0dbbe5562db06a07fd529605 (diff)
ovsdb: Add delay after ovsdb start
Ovsdb must be up and running before any configuration option is modified or vswitchd is executed. Otherwise options won't be modified in DB and/or vswitchd won't be able to use correct options during start up. Change-Id: I04948d383272f2e694ec685b3a21d639068125ca JIRA: VSPERF-291 Signed-off-by: Martin Klozik <martinx.klozik@intel.com> Reviewed-by: Maryam Tahhan <maryam.tahhan@intel.com> Reviewed-by: Al Morton <acmorton@att.com> Reviewed-by: Christian Trautman <ctrautma@redhat.com> Reviewed-by: Brian Castelli <brian.castelli@spirent.com>
-rw-r--r--vswitches/ovs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/vswitches/ovs.py b/vswitches/ovs.py
index a8184320..555d7dec 100644
--- a/vswitches/ovs.py
+++ b/vswitches/ovs.py
@@ -18,6 +18,7 @@
import logging
import re
import os
+import time
import pexpect
from conf import settings
from vswitches.vswitch import IVSwitch
@@ -65,7 +66,9 @@ class IVSwitchOvs(IVSwitch, tasks.Process):
self._reset_ovsdb()
self._start_ovsdb()
- # DB must be up before vswitchd config is altered
+ # DB must be up before vswitchd config is altered or vswitchd started
+ time.sleep(3)
+
self.configure()
try: