|
|
e0829c |
From 0cddb4c820d39cae8bf6681c644fa353b0c20800 Mon Sep 17 00:00:00 2001
|
|
|
e0829c |
From: Nijin Ashok <nashok@redhat.com>
|
|
|
e0829c |
Date: Mon, 16 Jul 2018 14:42:43 +0530
|
|
|
e0829c |
Subject: [PATCH] [ovirt_node] New plugin for oVirt Node
|
|
|
e0829c |
|
|
|
e0829c |
oVirt Node is a small scaled down version used for hosting virtual
|
|
|
e0829c |
machines. The plugin collects node specific information like
|
|
|
e0829c |
upgrade log, the layer structure etc.
|
|
|
e0829c |
|
|
|
e0829c |
Resolves: #1381
|
|
|
e0829c |
|
|
|
e0829c |
Signed-off-by: Nijin Ashok nashok@redhat.com
|
|
|
e0829c |
Signed-off-by: Bryn M. Reeves bmr@redhat.com
|
|
|
e0829c |
---
|
|
|
e0829c |
sos/plugins/ovirt_node.py | 41 +++++++++++++++++++++++++++++++++++++++
|
|
|
e0829c |
1 file changed, 41 insertions(+)
|
|
|
e0829c |
create mode 100644 sos/plugins/ovirt_node.py
|
|
|
e0829c |
|
|
|
e0829c |
diff --git a/sos/plugins/ovirt_node.py b/sos/plugins/ovirt_node.py
|
|
|
e0829c |
new file mode 100644
|
|
|
e0829c |
index 00000000..ccb5d3c6
|
|
|
e0829c |
--- /dev/null
|
|
|
e0829c |
+++ b/sos/plugins/ovirt_node.py
|
|
|
e0829c |
@@ -0,0 +1,41 @@
|
|
|
e0829c |
+# Copyright (C) 2018 Red Hat, Inc.,
|
|
|
e0829c |
+# This file is part of the sos project: https://github.com/sosreport/sos
|
|
|
e0829c |
+#
|
|
|
e0829c |
+# This copyrighted material is made available to anyone wishing to use,
|
|
|
e0829c |
+# modify, copy, or redistribute it subject to the terms and conditions of
|
|
|
e0829c |
+# version 2 of the GNU General Public License.
|
|
|
e0829c |
+#
|
|
|
e0829c |
+# See the LICENSE file in the source distribution for further information.
|
|
|
e0829c |
+
|
|
|
e0829c |
+from sos.plugins import Plugin, RedHatPlugin
|
|
|
e0829c |
+
|
|
|
e0829c |
+
|
|
|
e0829c |
+class OvirtNode(Plugin, RedHatPlugin):
|
|
|
e0829c |
+ """oVirt Node specific information"""
|
|
|
e0829c |
+
|
|
|
e0829c |
+ packages = (
|
|
|
e0829c |
+ 'imgbased',
|
|
|
e0829c |
+ 'ovirt-node-ng-nodectl',
|
|
|
e0829c |
+ )
|
|
|
e0829c |
+
|
|
|
e0829c |
+ plugin_name = 'ovirt_node'
|
|
|
e0829c |
+ profiles = ('virt',)
|
|
|
e0829c |
+
|
|
|
e0829c |
+ def setup(self):
|
|
|
e0829c |
+
|
|
|
e0829c |
+ # Add log files
|
|
|
e0829c |
+ self.add_copy_spec([
|
|
|
e0829c |
+ '/var/log/imgbased.log',
|
|
|
e0829c |
+ # Required for node versions < 4.2
|
|
|
e0829c |
+ '/tmp/imgbased.log',
|
|
|
e0829c |
+ ])
|
|
|
e0829c |
+
|
|
|
e0829c |
+ # Collect runtime info
|
|
|
e0829c |
+ self.add_cmd_output([
|
|
|
e0829c |
+ 'imgbase layout',
|
|
|
e0829c |
+ 'nodectl --machine-readable check',
|
|
|
e0829c |
+ 'nodectl info',
|
|
|
e0829c |
+ ])
|
|
|
e0829c |
+
|
|
|
e0829c |
+
|
|
|
e0829c |
+# vim: expandtab tabstop=4 shiftwidth=4
|
|
|
e0829c |
--
|
|
|
e0829c |
2.17.2
|
|
|
e0829c |
|