From c9e91de89b4fc2c3bf2e6344b9dbfb645c42abee Mon Sep 17 00:00:00 2001 From: Javier Blanco Date: Fri, 6 Sep 2024 15:20:01 +0200 Subject: [PATCH] [qdevice] New plugin to collect information on quorum devices used by Pacemaker clusters Signed-off-by: Javier Blanco --- sos/report/plugins/qdevice.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 sos/report/plugins/qdevice.py diff --git a/sos/report/plugins/qdevice.py b/sos/report/plugins/qdevice.py new file mode 100644 index 0000000000..8b67848f58 --- /dev/null +++ b/sos/report/plugins/qdevice.py @@ -0,0 +1,26 @@ +# Copyright (C) 2024 Javier Blanco + +# This file is part of the sos project: https://github.com/sosreport/sos +# +# This copyrighted material is made available to anyone wishing to use, +# modify, copy, or redistribute it subject to the terms and conditions of +# version 2 of the GNU General Public License. +# +# See the LICENSE file in the source distribution for further information. + +from sos.report.plugins import Plugin, IndependentPlugin + + +class Qdevice(Plugin, IndependentPlugin): + short_desc = 'qdevice information' + + plugin_name = 'qdevice' + packages = ('corosync-qnetd',) + + def setup(self): + self.add_cmd_output([ + "pcs qdevice status net --full" + ]) + + +# vim: et ts=4 sw=4