diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2019-11-14 12:00:41 -0500 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2019-11-14 12:52:24 -0500 |
commit | c63f6dda051501beef1f87053b545097d4945d39 (patch) | |
tree | 78bc50b146b3816999c58b2e7506db181d201306 | |
parent | 1f6d8f2b04e33d9475b6badd2e3aab6d1c8655a0 (diff) | |
download | sos-c63f6dda051501beef1f87053b545097d4945d39.tar.gz |
[redhat] Update cantboot preset to use profiles
Updates the 'cantboot' preset to use existing profiles, rather than
specifying each plugin and having to maintain that list in the policy.
Now 'cantboot' enables the boot, storage, and system profiles - it also
will now enable the boot.all-images, rpm.rpmva, and rpm.rpmdb plugin
options.
Resolves: #1818
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/policies/redhat.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sos/policies/redhat.py b/sos/policies/redhat.py index e5afa665..096374f6 100644 --- a/sos/policies/redhat.py +++ b/sos/policies/redhat.py @@ -175,9 +175,8 @@ _opts_verify = SoSOptions(verify=True) _opts_all_logs = SoSOptions(all_logs=True) _opts_all_logs_verify = SoSOptions(all_logs=True, verify=True) _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'] +_cb_profiles = ['boot', 'storage', 'system'] +_cb_plugopts = ['boot.all-images=on', 'rpm.rpmva=on', 'rpm.rpmdb=on'] RHEL_RELEASE_STR = "Red Hat Enterprise Linux" @@ -202,7 +201,10 @@ SAT_OPTS = SoSOptions(verify=True, plugopts=['apache.log=on']) CB = "cantboot" CB_DESC = "For use when normal system startup fails" -CB_OPTS = SoSOptions(verify=True, all_logs=True, onlyplugins=_cb_plugs) +CB_OPTS = SoSOptions( + verify=True, all_logs=True, profiles=_cb_profiles, + plugopts=_cb_plugopts + ) CB_NOTE = ("Data collection will be limited to a boot-affecting scope") NOTE_SIZE = "This preset may increase report size" |