diff options
author | Eric Desrochers <eric.desrochers@canonical.com> | 2020-02-12 22:03:50 -0500 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2020-02-14 16:55:36 +0000 |
commit | dfc855f83cf866d1d7d6b8f83bbe95d5c896b281 (patch) | |
tree | 88b71c04f5f076482a17b04dcb4a744c8c992c24 | |
parent | 7e4958734f657ce89c8529c2f1228a3015c67209 (diff) | |
download | sos-dfc855f83cf866d1d7d6b8f83bbe95d5c896b281.tar.gz |
[maas] Collect journal logs and services status infos
Resolves: #1948
Signed-off-by: Eric Desrochers <eric.desrochers@canonical.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/maas.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sos/plugins/maas.py b/sos/plugins/maas.py index 1d4c5ace..6ec1adf4 100644 --- a/sos/plugins/maas.py +++ b/sos/plugins/maas.py @@ -19,6 +19,16 @@ class Maas(Plugin, UbuntuPlugin): profiles = ('sysmgmt',) packages = ('maas', 'maas-common') + services = ( + 'maas-dhcpd', + 'maas-dhcpd6', + 'maas-http', + 'maas-proxy', + 'maas-rackd', + 'maas-regiond', + 'maas-syslog' + ) + option_list = [ ('profile-name', 'The name with which you will later refer to this remote', '', ''), @@ -56,6 +66,11 @@ class Maas(Plugin, UbuntuPlugin): "apt-cache policy python-django-*", ]) + self.add_service_status(self.services) + + for service in self.services: + self.add_journal(units=service) + if self.is_installed("maas-region-controller"): self.add_cmd_output([ "maas-region-admin dumpdata", |