ovsdb: Add delay after ovsdb start 03/14003/1
authorMartin Klozik <martinx.klozik@intel.com>
Thu, 12 May 2016 07:14:23 +0000 (08:14 +0100)
committerMartin Klozik <martinx.klozik@intel.com>
Thu, 12 May 2016 07:26:23 +0000 (08:26 +0100)
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>
vswitches/ovs.py

index a818432..555d7de 100644 (file)
@@ -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: