ovs-appctl fix: Fixes ovs-appctl by placing pid file appropriately 37/17137/2
authorChristian Trautman <ctrautma@redhat.com>
Tue, 19 Jul 2016 13:48:30 +0000 (09:48 -0400)
committerChristian Trautman <ctrautma@redhat.com>
Tue, 19 Jul 2016 13:49:40 +0000 (09:49 -0400)
ovs-appctl was broken due to a previous commit which changed the
location of the ovs-vswitchd pid file. This fixes it by placing
the pid back in the default location where ovs-appctl is looking
for.

JIRA: VSPERF-315

Change-Id: I4ae87ad566acb69ac9d565a3a77865f5a6861b93
Signed-off-by: MartinX Klozik <martinx.klozik@intel.com>
Signed-off-by: Christian Trautman <ctrautma@redhat.com>
vswitches/ovs.py

index 659f7cf..243619b 100644 (file)
@@ -38,8 +38,8 @@ class IVSwitchOvs(IVSwitch, tasks.Process):
     see the interface.
     """
     _logfile = os.path.join(settings.getValue('LOG_DIR'), settings.getValue('LOG_FILE_VSWITCHD'))
-    _ovsdb_pidfile_path = os.path.join(settings.getValue('LOG_DIR'), "ovsdb_pidfile.pid")
-    _vswitchd_pidfile_path = os.path.join(settings.getValue('LOG_DIR'), "vswitchd_pidfile.pid")
+    _ovsdb_pidfile_path = os.path.join(_OVS_VAR_DIR, "ovsdb-server.pid")
+    _vswitchd_pidfile_path = os.path.join(_OVS_VAR_DIR, "ovs-vswitchd.pid")
     _proc_name = 'ovs-vswitchd'
 
     def __init__(self):