aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2018-04-02 15:32:01 -0400
committerBryn M. Reeves <bmr@redhat.com>2018-05-22 15:14:44 +0100
commit1cf2434e54df1e0a2e8e41e95e3b8f9455f02dcd (patch)
treee00ffde2c9d893d86ddd867a308a37ebb2bfff3c
parenteb03bd2cd916932f74c02009e39576a20eee3071 (diff)
downloadsos-1cf2434e54df1e0a2e8e41e95e3b8f9455f02dcd.tar.gz
[sosreport] Add new container profile
Adds a new 'container' profile to sos that includes common container and related technology plugins. Resolves: #1260 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/atomichost.py1
-rw-r--r--sos/plugins/cgroups.py2
-rw-r--r--sos/plugins/docker.py2
-rw-r--r--sos/plugins/docker_distribution.py1
-rw-r--r--sos/plugins/etcd.py2
-rw-r--r--sos/plugins/kubernetes.py1
-rw-r--r--sos/plugins/runc.py1
-rw-r--r--sos/plugins/selinux.py2
8 files changed, 8 insertions, 4 deletions
diff --git a/sos/plugins/atomichost.py b/sos/plugins/atomichost.py
index 91f64ad8..8e904dbf 100644
--- a/sos/plugins/atomichost.py
+++ b/sos/plugins/atomichost.py
@@ -22,6 +22,7 @@ class AtomicHost(Plugin, RedHatPlugin):
""" Atomic Host """
plugin_name = "atomichost"
+ profiles = ('container',)
option_list = [
("info", "gather atomic info for each image", "fast", False)
]
diff --git a/sos/plugins/cgroups.py b/sos/plugins/cgroups.py
index 144c5122..981444b3 100644
--- a/sos/plugins/cgroups.py
+++ b/sos/plugins/cgroups.py
@@ -20,7 +20,7 @@ class Cgroups(Plugin, DebianPlugin, UbuntuPlugin):
"""
plugin_name = "cgroups"
- profiles = ('system',)
+ profiles = ('container', 'system')
files = ('/proc/cgroups',)
def setup(self):
diff --git a/sos/plugins/docker.py b/sos/plugins/docker.py
index f372845c..738ea234 100644
--- a/sos/plugins/docker.py
+++ b/sos/plugins/docker.py
@@ -23,7 +23,7 @@ class Docker(Plugin):
"""
plugin_name = 'docker'
- profiles = ('virt',)
+ profiles = ('container',)
docker_cmd = "docker"
option_list = [
diff --git a/sos/plugins/docker_distribution.py b/sos/plugins/docker_distribution.py
index 6bcbb08f..372f2c28 100644
--- a/sos/plugins/docker_distribution.py
+++ b/sos/plugins/docker_distribution.py
@@ -22,6 +22,7 @@ class DockerDistribution(Plugin):
"""Docker Distribution"""
plugin_name = "docker_distribution"
+ profiles = ('container',)
def setup(self):
self.add_copy_spec('/etc/docker-distribution/')
diff --git a/sos/plugins/etcd.py b/sos/plugins/etcd.py
index fd0dcba7..062db6cb 100644
--- a/sos/plugins/etcd.py
+++ b/sos/plugins/etcd.py
@@ -24,7 +24,7 @@ class etcd(Plugin, RedHatPlugin):
plugin_name = 'etcd'
packages = ('etcd',)
- profiles = ('system', 'services', 'cluster')
+ profiles = ('container', 'system', 'services', 'cluster')
cmd = 'etcdctl'
diff --git a/sos/plugins/kubernetes.py b/sos/plugins/kubernetes.py
index 252cdd74..9c277e4b 100644
--- a/sos/plugins/kubernetes.py
+++ b/sos/plugins/kubernetes.py
@@ -27,6 +27,7 @@ class kubernetes(Plugin, RedHatPlugin):
# Red Hat Atomic Platform and OpenShift Enterprise use the
# atomic-openshift-master package to provide kubernetes
packages = ('kubernetes', 'kubernetes-master', 'atomic-openshift-master')
+ profiles = ('container',)
files = ("/etc/origin/master/master-config.yaml",)
option_list = [
diff --git a/sos/plugins/runc.py b/sos/plugins/runc.py
index 9006c50d..46fd80b2 100644
--- a/sos/plugins/runc.py
+++ b/sos/plugins/runc.py
@@ -21,6 +21,7 @@ class Runc(Plugin):
"""runC container runtime"""
plugin_name = 'runc'
+ profiles = ('container',)
def setup(self):
diff --git a/sos/plugins/selinux.py b/sos/plugins/selinux.py
index f9140699..0376e039 100644
--- a/sos/plugins/selinux.py
+++ b/sos/plugins/selinux.py
@@ -20,7 +20,7 @@ class SELinux(Plugin, RedHatPlugin):
"""
plugin_name = 'selinux'
- profiles = ('system', 'security', 'openshift')
+ profiles = ('container', 'system', 'security', 'openshift')
option_list = [("fixfiles", 'Print incorrect file context labels',
'slow', False)]