ovs-bugtool: Include conf.db backups in bugtool output.
authorBen Pfaff <blp@nicira.com>
Thu, 7 Jul 2011 20:19:31 +0000 (13:19 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 13 Jul 2011 19:44:50 +0000 (12:44 -0700)
When an upgrade or downgrade fails due to OVSDB issues, it is useful to
have the old versions of the database available.

utilities/bugtool/automake.mk
utilities/bugtool/plugins/system-logs/openvswitch.xml [new file with mode: 0644]

index 1d4f94e109b8fdc12e19b3dbcc60d920f6ccd70e..7d8d136e496b21aaf9886236c3d6818387862b6d 100644 (file)
@@ -6,6 +6,7 @@ bugtool_plugins = \
        utilities/bugtool/plugins/kernel-info/openvswitch.xml \
        utilities/bugtool/plugins/network-status/openvswitch.xml \
        utilities/bugtool/plugins/system-configuration.xml \
+       utilities/bugtool/plugins/system-logs/openvswitch.xml \
        utilities/bugtool/plugins/system-configuration/openvswitch.xml
 
 bugtool_scripts = \
diff --git a/utilities/bugtool/plugins/system-logs/openvswitch.xml b/utilities/bugtool/plugins/system-logs/openvswitch.xml
new file mode 100644 (file)
index 0000000..a54e897
--- /dev/null
@@ -0,0 +1,21 @@
+<!--
+ 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) 2011 Nicira Networks.
+-->
+
+<collect>
+  <directory label="ovsdb-backups" pattern=".*/conf.db.backup[0-9][^/]*$">/etc/openvswitch</directory>
+</collect>