diff options
author | Jose Castillo <jcastillo@redhat.com> | 2023-06-29 12:34:25 +0100 |
---|---|---|
committer | Jake Hunsaker <jacob.r.hunsaker@gmail.com> | 2023-06-29 12:15:32 -0400 |
commit | 9b5d6ad0883bcd211150b490d28ca6142a0674b5 (patch) | |
tree | 73372d79317bf0311bc66e45154b6ebb38c65b08 | |
parent | 2aec59914031d0f2b59f658243b9b0c49c8e5b13 (diff) | |
download | sos-9b5d6ad0883bcd211150b490d28ca6142a0674b5.tar.gz |
[ceph] Add a new profile for Ceph plugins
This patch helps simplify the capture of data
from ceph plugins. After the original code was
divided in 8 different plugins, it may be a bit
confusing which plugins to use when running
sos and attempting to capture only ceph data.
By selecting the profile, sos will activate only
these ceph_* plugins that apply to a specific
ceph node.
Signed-off-by: Jose Castillo <jcastillo@redhat.com>
-rw-r--r-- | sos/report/plugins/ceph_ansible.py | 2 | ||||
-rw-r--r-- | sos/report/plugins/ceph_common.py | 2 | ||||
-rw-r--r-- | sos/report/plugins/ceph_iscsi.py | 2 | ||||
-rw-r--r-- | sos/report/plugins/ceph_mds.py | 2 | ||||
-rw-r--r-- | sos/report/plugins/ceph_mgr.py | 2 | ||||
-rw-r--r-- | sos/report/plugins/ceph_mon.py | 2 | ||||
-rw-r--r-- | sos/report/plugins/ceph_osd.py | 2 | ||||
-rw-r--r-- | sos/report/plugins/ceph_rgw.py | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/sos/report/plugins/ceph_ansible.py b/sos/report/plugins/ceph_ansible.py index a84c9c62..27ff91e5 100644 --- a/sos/report/plugins/ceph_ansible.py +++ b/sos/report/plugins/ceph_ansible.py @@ -14,7 +14,7 @@ class CephAnsible(Plugin, RedHatPlugin, DebianPlugin): short_desc = 'CEPH distributed storage - Ansible installer' plugin_name = 'ceph_ansible' - profiles = ('storage',) + profiles = ('storage', 'ceph') packages = ('ceph-ansible',) diff --git a/sos/report/plugins/ceph_common.py b/sos/report/plugins/ceph_common.py index 105fd8c4..ec585210 100644 --- a/sos/report/plugins/ceph_common.py +++ b/sos/report/plugins/ceph_common.py @@ -15,7 +15,7 @@ class Ceph_Common(Plugin, RedHatPlugin, UbuntuPlugin): short_desc = 'CEPH common' plugin_name = 'ceph_common' - profiles = ('storage', 'virt', 'container') + profiles = ('storage', 'virt', 'container', 'ceph') containers = ('ceph-(.*-)?(mon|rgw|osd).*',) ceph_hostname = gethostname() diff --git a/sos/report/plugins/ceph_iscsi.py b/sos/report/plugins/ceph_iscsi.py index 96140190..ac6d505c 100644 --- a/sos/report/plugins/ceph_iscsi.py +++ b/sos/report/plugins/ceph_iscsi.py @@ -14,7 +14,7 @@ class CephISCSI(Plugin, RedHatPlugin, UbuntuPlugin): short_desc = "CEPH iSCSI" plugin_name = "ceph_iscsi" - profiles = ("storage", "virt", "container") + profiles = ("storage", "virt", "container", "ceph") packages = ("ceph-iscsi",) services = ("rbd-target-api", "rbd-target-gw") containers = ("rbd-target-api.*", "rbd-target-gw.*") diff --git a/sos/report/plugins/ceph_mds.py b/sos/report/plugins/ceph_mds.py index da48cb13..c31e906b 100644 --- a/sos/report/plugins/ceph_mds.py +++ b/sos/report/plugins/ceph_mds.py @@ -12,7 +12,7 @@ from sos.report.plugins import Plugin, RedHatPlugin, UbuntuPlugin class CephMDS(Plugin, RedHatPlugin, UbuntuPlugin): short_desc = 'CEPH mds' plugin_name = 'ceph_mds' - profiles = ('storage', 'virt', 'container') + profiles = ('storage', 'virt', 'container', 'ceph') containers = ('ceph-(.*-)?fs.*',) files = ('/var/lib/ceph/mds/',) diff --git a/sos/report/plugins/ceph_mgr.py b/sos/report/plugins/ceph_mgr.py index 6a9aff14..f7d4ace3 100644 --- a/sos/report/plugins/ceph_mgr.py +++ b/sos/report/plugins/ceph_mgr.py @@ -35,7 +35,7 @@ class CephMGR(Plugin, RedHatPlugin, UbuntuPlugin): short_desc = 'CEPH mgr' plugin_name = 'ceph_mgr' - profiles = ('storage', 'virt', 'container') + profiles = ('storage', 'virt', 'container', 'ceph') files = ('/var/lib/ceph/mgr/', '/var/lib/ceph/*/mgr*') containers = ('ceph-(.*-)?mgr.*',) diff --git a/sos/report/plugins/ceph_mon.py b/sos/report/plugins/ceph_mon.py index b8dc8b8a..d25fe3ab 100644 --- a/sos/report/plugins/ceph_mon.py +++ b/sos/report/plugins/ceph_mon.py @@ -32,7 +32,7 @@ class CephMON(Plugin, RedHatPlugin, UbuntuPlugin): short_desc = 'CEPH mon' plugin_name = 'ceph_mon' - profiles = ('storage', 'virt', 'container') + profiles = ('storage', 'virt', 'container', 'ceph') # note: for RHCS 5 / Ceph v16 the containers serve as an enablement trigger # but by default they are not capable of running various ceph commands in # this plugin - the `ceph` binary is functional directly on the host diff --git a/sos/report/plugins/ceph_osd.py b/sos/report/plugins/ceph_osd.py index 4ed4565b..34a656a3 100644 --- a/sos/report/plugins/ceph_osd.py +++ b/sos/report/plugins/ceph_osd.py @@ -29,7 +29,7 @@ class CephOSD(Plugin, RedHatPlugin, UbuntuPlugin): short_desc = 'CEPH osd' plugin_name = 'ceph_osd' - profiles = ('storage', 'virt', 'container') + profiles = ('storage', 'virt', 'container', 'ceph') containers = ('ceph-(.*-)?osd.*',) files = ('/var/lib/ceph/osd/', '/var/lib/ceph/*/osd*') diff --git a/sos/report/plugins/ceph_rgw.py b/sos/report/plugins/ceph_rgw.py index 79f3c449..200e30ee 100644 --- a/sos/report/plugins/ceph_rgw.py +++ b/sos/report/plugins/ceph_rgw.py @@ -14,7 +14,7 @@ class CephRGW(Plugin, RedHatPlugin, UbuntuPlugin): short_desc = 'CEPH rgw' plugin_name = 'ceph_rgw' - profiles = ('storage', 'virt', 'container', 'webserver') + profiles = ('storage', 'virt', 'container', 'webserver', 'ceph') containers = ('ceph-(.*)?rgw.*',) files = ('/var/lib/ceph/radosgw',) |