From 0c83887dac13f44e4ee2aea128a04c27f9a0ef2e Mon Sep 17 00:00:00 2001 From: Martin Klozik Date: Thu, 12 May 2016 08:14:23 +0100 Subject: 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 Reviewed-by: Maryam Tahhan Reviewed-by: Al Morton Reviewed-by: Christian Trautman Reviewed-by: Brian Castelli --- vswitches/ovs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'vswitches') 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: -- cgit 1.2.3-korg