bugtool - Collect version information for all running Open vSwitch daemons.
authorArun Sharma <arun.sharma@calsoftinc.com>
Wed, 4 Apr 2012 20:23:19 +0000 (13:23 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 5 Apr 2012 20:01:51 +0000 (13:01 -0700)
This is an improvement in {ovs|xen}-bugtool archive output to determine the
version which was running for all the OVS daemons. It is implemented as a
plugin which internally calls "ovs-appctl -t <daemon> version" command for
daemons whose pid file is present in /var/run/openvswitch directory.

Feature #10383
Signed-off-by: Arun Sharma <arun.sharma@calsoftinc.com>
[blp@nicira.com updated debian/copyright.in]
Signed-off-by: Ben Pfaff <blp@nicira.com>
AUTHORS
debian/copyright.in
debian/openvswitch-common.install
utilities/bugtool/automake.mk
utilities/bugtool/ovs-bugtool-daemons-ver [new file with mode: 0755]
utilities/bugtool/plugins/system-configuration/openvswitch.xml
xenserver/README

diff --git a/AUTHORS b/AUTHORS
index 324c4ba..7b00dde 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -6,6 +6,7 @@ Alexey I. Froloff       raorn@altlinux.org
 Andrew Evans            aevans@nicira.com
 Andrew Lambeth          wal@nicira.com
 Andy Southgate          andy.southgate@citrix.com
+Arun Sharma             arun.sharma@calsoftinc.com
 Ben Pfaff               blp@nicira.com
 Bryan Phillippe         bp@toroki.com
 Casey Barker            crbarker@google.com
index 40b794f..c81db07 100644 (file)
@@ -56,6 +56,7 @@ License:
        utilities/bugtool/ovs-bugtool-cfm-show
        utilities/bugtool/ovs-bugtool-lacp-show
        utilities/bugtool/ovs-bugtool-tc-class-show
+       utilities/bugtool/ovs-bugtool-daemons-ver
        utilities/bugtool/plugins/kernel-info/openvswitch.xml
        utilities/bugtool/plugins/network-status/openvswitch.xml
        utilities/bugtool/plugins/system-configuration.xml
index 597fb8d..1805582 100644 (file)
@@ -9,3 +9,4 @@ usr/share/openvswitch/bugtool-plugins
 usr/share/openvswitch/scripts/ovs-bugtool-cfm-show
 usr/share/openvswitch/scripts/ovs-bugtool-lacp-show
 usr/share/openvswitch/scripts/ovs-bugtool-tc-class-show
+usr/share/openvswitch/scripts/ovs-bugtool-daemons-ver
index 9e625ce..e3ba0ad 100644 (file)
@@ -15,7 +15,8 @@ bugtool_scripts = \
        utilities/bugtool/ovs-bugtool-cfm-show \
        utilities/bugtool/ovs-bugtool-lacp-show \
        utilities/bugtool/ovs-bugtool-tc-class-show \
-       utilities/bugtool/ovs-bugtool-ovsdb-dump
+       utilities/bugtool/ovs-bugtool-ovsdb-dump \
+       utilities/bugtool/ovs-bugtool-daemons-ver
 scripts_SCRIPTS += $(bugtool_scripts)
 
 bugtoolpluginsdir = $(pkgdatadir)/bugtool-plugins
diff --git a/utilities/bugtool/ovs-bugtool-daemons-ver b/utilities/bugtool/ovs-bugtool-daemons-ver
new file mode 100755 (executable)
index 0000000..672e7e1
--- /dev/null
@@ -0,0 +1,25 @@
+#! /bin/sh
+
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of version 2.1 of the GNU Lesser General
+# Public License as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+# USA
+#
+# Copyright (C) 2012 Nicira Networks.
+
+for f in `cd /var/run/openvswitch/; ls *.pid 2>/dev/null`
+do
+    if [ -n "${f%.pid}" ]; then
+        ovs-appctl -t "${f%.pid}" version 2>&1
+    fi
+    echo
+done
index 84373d5..260e6dc 100644 (file)
@@ -18,4 +18,5 @@
 
 <collect>
     <command label="timezone">date --rfc-3339=seconds</command>
+    <command label="ovs-daemons-ver">/usr/share/openvswitch/scripts/ovs-bugtool-daemons-ver</command>
 </collect>
index c626a92..4efdc37 100644 (file)
@@ -89,7 +89,10 @@ debugging.  The sources for the extensions are in
     system-configuration/openvswitch.xml
 
         Collect system configuration information relevant to Open vSwitch,
-        including timezone.
+        including timezone. Runs the following script which is described
+        below:
+
+            * ovs-bugtool-daemons-ver
 
     system-configuration.xml
 
@@ -118,6 +121,10 @@ scripts are located in ../utilities/bugtool:
 
         Script to dump tc class configuration for all network interfaces.
 
+    ovs-bugtool-daemons-ver
+
+        Script to dump version information for all Open vSwitch daemons.
+
 ----------------------------------------------------------------------
 Copyright (C) 2009, 2010, 2011 Nicira Networks, Inc.