diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2018-08-09 18:11:38 +0200 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-08-10 17:21:37 +0100 |
commit | 48a1a00685c680ba9fbd5c9b10377e8d0551a926 (patch) | |
tree | 3342b5003b38eaf4b3c5440aa3c6e14f9722598f | |
parent | a55680e6c8ac87fdf4ee3100717001c1f6f6a08b (diff) | |
download | sos-48a1a00685c680ba9fbd5c9b10377e8d0551a926.tar.gz |
[policies] RHOSP preset with -k process.lsof=off
Make lsof calls on OSP systems disabled by default.
Relevant to: #1395
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r-- | sos/policies/redhat.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sos/policies/redhat.py b/sos/policies/redhat.py index cfbf7808..ee687d46 100644 --- a/sos/policies/redhat.py +++ b/sos/policies/redhat.py @@ -192,6 +192,8 @@ 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']) RHEL_RELEASE_STR = "Red Hat Enterprise Linux" @@ -219,7 +221,7 @@ rhel_presets = { opts=_opts_verify), RHEL: PresetDefaults(name=RHEL, desc=RHEL_DESC), RHOSP: PresetDefaults(name=RHOSP, desc=RHOSP_DESC, note=NOTE_SIZE, - opts=_opts_all_logs), + opts=_opts_all_logs_no_lsof), RHOCP: PresetDefaults(name=RHOCP, desc=RHOCP_DESC, note=NOTE_SIZE_TIME, opts=_opts_all_logs_verify), RH_SATELLITE: PresetDefaults(name=RH_SATELLITE, desc=RH_SATELLITE_DESC, |