diff options
author | Evgeny Slutsky <eslutsky@redhat.com> | 2023-09-07 10:54:12 +0300 |
---|---|---|
committer | Jake Hunsaker <jacob.r.hunsaker@gmail.com> | 2023-09-16 10:33:58 -0400 |
commit | 765ac8f3cc8e8413278afbf2579eaac7c0419f72 (patch) | |
tree | 58e7f46450f2d5f1f8bd7a2c49071e89ed10c995 | |
parent | 6526985ea2464944c5cf4cd87c2d981a77363077 (diff) | |
download | sos-765ac8f3cc8e8413278afbf2579eaac7c0419f72.tar.gz |
[greenboot] seperate logs to a standalone plugin.
Signed-off-by: Evgeny Slutsky <eslutsky@redhat.com>
-rw-r--r-- | sos/report/plugins/greenboot.py | 26 | ||||
-rw-r--r-- | sos/report/plugins/microshift.py | 6 |
2 files changed, 28 insertions, 4 deletions
diff --git a/sos/report/plugins/greenboot.py b/sos/report/plugins/greenboot.py new file mode 100644 index 00000000..69b6607b --- /dev/null +++ b/sos/report/plugins/greenboot.py @@ -0,0 +1,26 @@ +# Copyright 2023 Red Hat, Inc. Evgeny Slutsky <eslutsky@redhat.com> +# 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, RedHatPlugin + + +class Greenboot(Plugin, RedHatPlugin): + """The greenboot plugin collects systemd service logs and configuration. + """ + + short_desc = 'Greenboot' + plugin_name = 'greenboot' + services = (plugin_name, 'greenboot-healthcheck', + 'greenboot-task-runner', 'redboot-task-runner',) + profiles = ('system',) + + def setup(self): + self.add_copy_spec([ + "/etc/greenboot/greenboot.conf", + ]) diff --git a/sos/report/plugins/microshift.py b/sos/report/plugins/microshift.py index 2cfafef0..669f4c02 100644 --- a/sos/report/plugins/microshift.py +++ b/sos/report/plugins/microshift.py @@ -26,10 +26,8 @@ class Microshift(Plugin, RedHatPlugin): short_desc = 'Microshift' plugin_name = 'microshift' plugin_timeout = 900 - packages = ('microshift', 'microshift-selinux', 'microshift-networking', - 'microshift-greenboot') - services = (plugin_name, 'microshift-etcd.scope', 'greenboot-healthcheck', - 'greenboot-task-runner', 'redboot-task-runner') + packages = ('microshift', 'microshift-selinux', 'microshift-networking',) + services = (plugin_name, 'microshift-etcd.scope',) profiles = (plugin_name,) localhost_kubeconfig = '/var/lib/microshift/resources/kubeadmin/kubeconfig' |