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