From 48a1a00685c680ba9fbd5c9b10377e8d0551a926 Mon Sep 17 00:00:00 2001 From: Pavel Moravec Date: Thu, 9 Aug 2018 18:11:38 +0200 Subject: [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 --- sos/policies/redhat.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- cgit