diff options
author | Paweł Poławski <ppolawsk@redhat.com> | 2021-03-24 16:02:07 +0100 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2021-04-05 14:08:39 -0400 |
commit | d607f5d9008e9890d1ec17eeba52fb58ca8216c2 (patch) | |
tree | 08d001fb73791427af9f3e19b6062ddd34decfdc | |
parent | a5d157b2f9b3dfdf218653ec484c92d65a909497 (diff) | |
download | sos-d607f5d9008e9890d1ec17eeba52fb58ca8216c2.tar.gz |
[sssd] Collect memory cache individual files
By default SSSD collects all memory cache files:
* /var/lib/sss/mc/passwd
* /var/lib/sss/mc/group
* /var/lib/sss/mc/initgroups
They all are included in 25MB size limit for sosreport.
This commits add memory cache files one - by - one,
this way 25MB size limit will be aplied per file.
Resolves: #2462
Signed-off-by: Paweł Poławski <ppolawsk@redhat.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/report/plugins/sssd.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sos/report/plugins/sssd.py b/sos/report/plugins/sssd.py index aeb68c4f..189df72d 100644 --- a/sos/report/plugins/sssd.py +++ b/sos/report/plugins/sssd.py @@ -23,19 +23,24 @@ class Sssd(Plugin): def setup(self): self.add_copy_spec([ - # Main config file + # main config file "/etc/sssd/sssd.conf", # SSSD 1.14 "/etc/sssd/conf.d/*.conf", - # Memory cache - "/var/lib/sss/mc/*", - # Dynamic Kerberos configuration + # dynamic Kerberos configuration "/var/lib/sss/pubconf/krb5.include.d/*" ]) # add individual log files self.add_copy_spec(glob("/var/log/sssd/*log*")) + # add memory cache + self.add_copy_spec([ + "/var/lib/sss/mc/passwd", + "/var/lib/sss/mc/group", + "/var/lib/sss/mc/initgroups" + ]) + # call sssctl commands only when sssd service is running, # otherwise the command timeouts sssd_pred = SoSPredicate(self, services=["sssd"]) |