From: Martin Banszel <martinx.banszel@intel.com>
Date: Wed, 18 Oct 2017 05:59:03 +0000 (+0200)
Subject: Create the ovs-vswitchd logging directory
X-Git-Tag: opnfv-6.0.0~312^2
X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=bdcae10b04debea07e4553aab6e4ce43011d5f62;p=yardstick.git

Create the ovs-vswitchd logging directory

Change-Id: Id7f55f7fcb2fec2866b76821595776908ac30c04
Signed-off-by: Martin Banszel <martinx.banszel@intel.com>
---

diff --git a/yardstick/benchmark/contexts/standalone/ovs_dpdk.py b/yardstick/benchmark/contexts/standalone/ovs_dpdk.py
index 833c3fb80..e8266caed 100644
--- a/yardstick/benchmark/contexts/standalone/ovs_dpdk.py
+++ b/yardstick/benchmark/contexts/standalone/ovs_dpdk.py
@@ -138,6 +138,7 @@ class OvsDpdkContext(Context):
 
         cmd_list = [
             "mkdir -p /usr/local/var/run/openvswitch",
+            "mkdir -p {}".format(os.path.dirname(log_path)),
             "ovsdb-server --remote=punix:/{0}/{1}  --pidfile --detach".format(vpath,
                                                                               ovs_sock_path),
             ovs_other_config.format("--no-wait ", "dpdk-init=true"),