aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2019-12-18 20:48:17 +0100
committerPavel Moravec <pmoravec@redhat.com>2019-12-18 20:48:17 +0100
commite09dbdd2bc3e2323e659b77409ea66eb6a155610 (patch)
tree5913b62ef551f8a6d82e85f69b57ae6c5ddfa6c8
parentdc6b61b468a4456556cdbc139442b24e4696d248 (diff)
downloadsos-e09dbdd2bc3e2323e659b77409ea66eb6a155610.tar.gz
[foreman] increase sizelimit for tasks export
When foreman stores tens to hundreds of thousands of tasks, default sizelimit causes the dynflow* or foreman_tasks_tasks files are truncated. Let increase the sizelimit to 100MB. Resolves: #1899 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/foreman.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/plugins/foreman.py b/sos/plugins/foreman.py
index c1546eae..3e500e5b 100644
--- a/sos/plugins/foreman.py
+++ b/sos/plugins/foreman.py
@@ -218,12 +218,12 @@ class Foreman(Plugin):
for table in foremandb:
_cmd = self.build_query_cmd(foremandb[table])
self.add_cmd_output(_cmd, suggest_filename=table, timeout=600,
- env=self.env)
+ sizelimit=100, env=self.env)
for dyn in foremancsv:
_cmd = self.build_query_cmd(foremancsv[dyn], csv=True)
self.add_cmd_output(_cmd, suggest_filename=dyn, timeout=600,
- env=self.env)
+ sizelimit=100, env=self.env)
# collect http[|s]_proxy env.variables
self.add_env_var(["http_proxy", "https_proxy"])