aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2019-10-24 20:26:55 +0200
committerJake Hunsaker <jhunsake@redhat.com>2019-10-25 11:57:46 -0400
commitaeb654ec1034fd1c3f3781bcb9ad26b46dc769de (patch)
tree59f474c9b7c57198590e8dc35ea9200436b6db02
parent285de0bea2e7d7ada7b938a44639b3ad0ee6d393 (diff)
downloadsos-aeb654ec1034fd1c3f3781bcb9ad26b46dc769de.tar.gz
[policies] RHOSP preset without --all-logs
OpenStack deployments do not need to collect all logs by default. Resolves: #1841 Signed-off-by: Pavel Moravec <pmoravec@redhat.com> Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/policies/redhat.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/sos/policies/redhat.py b/sos/policies/redhat.py
index 8f86f5b6..e5afa665 100644
--- a/sos/policies/redhat.py
+++ b/sos/policies/redhat.py
@@ -174,8 +174,7 @@ ENV_HOST_SYSROOT = 'HOST'
_opts_verify = SoSOptions(verify=True)
_opts_all_logs = SoSOptions(all_logs=True)
_opts_all_logs_verify = SoSOptions(all_logs=True, verify=True)
-_opts_all_logs_no_lsof = SoSOptions(all_logs=True,
- plugopts=['process.lsof=off'])
+_opts_no_lsof = SoSOptions(plugopts=['process.lsof=off'])
_cb_plugs = ['abrt', 'block', 'boot', 'dnf', 'dracut', 'filesys', 'grub2',
'hardware', 'host', 'kernel', 'logs', 'lvm2', 'memory', 'rpm',
'process', 'systemd', 'yum', 'xfs']
@@ -214,8 +213,7 @@ rhel_presets = {
RHV: PresetDefaults(name=RHV, desc=RHV_DESC, note=NOTE_TIME,
opts=_opts_verify),
RHEL: PresetDefaults(name=RHEL, desc=RHEL_DESC),
- RHOSP: PresetDefaults(name=RHOSP, desc=RHOSP_DESC, note=NOTE_SIZE,
- opts=_opts_all_logs_no_lsof),
+ RHOSP: PresetDefaults(name=RHOSP, desc=RHOSP_DESC, opts=_opts_no_lsof),
RHOCP: PresetDefaults(name=RHOCP, desc=RHOCP_DESC, note=NOTE_SIZE_TIME,
opts=_opts_all_logs_verify),
RH_CFME: PresetDefaults(name=RH_CFME, desc=RH_CFME_DESC, note=NOTE_TIME,