|
|
c81b6a |
From 5cc06136d68536b806ce09ce61f800d9a7938790 Mon Sep 17 00:00:00 2001
|
|
|
c81b6a |
From: Lukas Zapletal <lzap+git@redhat.com>
|
|
|
c81b6a |
Date: Tue, 3 Feb 2015 16:42:11 +0100
|
|
|
c81b6a |
Subject: [PATCH] [foreman] Skip collection of generic resources
|
|
|
c81b6a |
|
|
|
c81b6a |
New option was added to foreman-debug (-g) to skip collecting of generic
|
|
|
c81b6a |
resources (firewall, selinux, cpu, memory). This patch leverages that.
|
|
|
c81b6a |
|
|
|
c81b6a |
https://github.com/theforeman/foreman/blob/develop/script/foreman-debug
|
|
|
c81b6a |
|
|
|
c81b6a |
Since katello-debug is now part of foreman-debug (as a plugin), there is no
|
|
|
c81b6a |
need of separate sosreport plugin.
|
|
|
c81b6a |
|
|
|
c81b6a |
https://github.com/Katello/katello/blob/master/deploy/script/katello-debug.sh
|
|
|
c81b6a |
|
|
|
c81b6a |
New subpackage called foreman-debug was introduced. It is present in both
|
|
|
c81b6a |
upstream Foreman and Katello installations as well as on both Satellite 6 main
|
|
|
c81b6a |
node and capsule instances. It can be used to detect if foreman-debug script is
|
|
|
c81b6a |
present.
|
|
|
c81b6a |
|
|
|
c81b6a |
Signed-off-by: Lukas Zapletal <lzap+git@redhat.com>
|
|
|
c81b6a |
---
|
|
|
c81b6a |
sos/plugins/foreman.py | 6 +++---
|
|
|
c81b6a |
sos/plugins/katello.py | 32 --------------------------------
|
|
|
c81b6a |
2 files changed, 3 insertions(+), 35 deletions(-)
|
|
|
c81b6a |
delete mode 100644 sos/plugins/katello.py
|
|
|
c81b6a |
|
|
|
c81b6a |
diff --git a/sos/plugins/foreman.py b/sos/plugins/foreman.py
|
|
|
c81b6a |
index 896add1..e50cbdf 100644
|
|
|
c81b6a |
--- a/sos/plugins/foreman.py
|
|
|
c81b6a |
+++ b/sos/plugins/foreman.py
|
|
|
c81b6a |
@@ -18,16 +18,16 @@ from sos.plugins import Plugin, RedHatPlugin
|
|
|
c81b6a |
|
|
|
c81b6a |
|
|
|
c81b6a |
class Foreman(Plugin, RedHatPlugin):
|
|
|
c81b6a |
- """Foreman systems management
|
|
|
c81b6a |
+ """Foreman/Satellite 6 systems management
|
|
|
c81b6a |
"""
|
|
|
c81b6a |
|
|
|
c81b6a |
plugin_name = 'foreman'
|
|
|
c81b6a |
profiles = ('sysmgmt',)
|
|
|
c81b6a |
- packages = ('foreman')
|
|
|
c81b6a |
+ packages = ('foreman-debug')
|
|
|
c81b6a |
|
|
|
c81b6a |
def setup(self):
|
|
|
c81b6a |
cmd = "foreman-debug"
|
|
|
c81b6a |
path = self.get_cmd_output_path(name="foreman-debug")
|
|
|
c81b6a |
- self.add_cmd_output("%s -q -a -d %s" % (cmd, path))
|
|
|
c81b6a |
+ self.add_cmd_output("%s -g -q -a -d %s" % (cmd, path))
|
|
|
c81b6a |
|
|
|
c81b6a |
# vim: et ts=4 sw=4
|
|
|
c81b6a |
diff --git a/sos/plugins/katello.py b/sos/plugins/katello.py
|
|
|
c81b6a |
deleted file mode 100644
|
|
|
c81b6a |
index 795c07e..0000000
|
|
|
c81b6a |
--- a/sos/plugins/katello.py
|
|
|
c81b6a |
+++ /dev/null
|
|
|
c81b6a |
@@ -1,32 +0,0 @@
|
|
|
c81b6a |
-# Copyright (C) 2013 Red Hat, Inc., Lukas Zapletal <lzap@redhat.com>
|
|
|
c81b6a |
-
|
|
|
c81b6a |
-# This program is free software; you can redistribute it and/or modify
|
|
|
c81b6a |
-# it under the terms of the GNU General Public License as published by
|
|
|
c81b6a |
-# the Free Software Foundation; either version 2 of the License, or
|
|
|
c81b6a |
-# (at your option) any later version.
|
|
|
c81b6a |
-
|
|
|
c81b6a |
-# This program is distributed in the hope that it will be useful,
|
|
|
c81b6a |
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
c81b6a |
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
c81b6a |
-# GNU General Public License for more details.
|
|
|
c81b6a |
-
|
|
|
c81b6a |
-# You should have received a copy of the GNU General Public License
|
|
|
c81b6a |
-# along with this program; if not, write to the Free Software
|
|
|
c81b6a |
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
c81b6a |
-
|
|
|
c81b6a |
-from sos.plugins import Plugin, RedHatPlugin
|
|
|
c81b6a |
-
|
|
|
c81b6a |
-
|
|
|
c81b6a |
-class Katello(Plugin, RedHatPlugin):
|
|
|
c81b6a |
- """Katello systems management
|
|
|
c81b6a |
- """
|
|
|
c81b6a |
-
|
|
|
c81b6a |
- plugin_name = 'katello'
|
|
|
c81b6a |
- profiles = ('sysmgmt',)
|
|
|
c81b6a |
- packages = ('katello', 'katello-common', 'katello-headpin')
|
|
|
c81b6a |
-
|
|
|
c81b6a |
- def setup(self):
|
|
|
c81b6a |
- self.add_cmd_output("katello-debug --notar -d %s"
|
|
|
c81b6a |
- % self.get_cmd_output_path(name="katello-debug"))
|
|
|
c81b6a |
-
|
|
|
c81b6a |
-# vim: et ts=4 sw=4
|
|
|
c81b6a |
--
|
|
|
c81b6a |
1.8.3.1
|
|
|
c81b6a |
|