aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2021-09-29 08:39:38 +0200
committerJake Hunsaker <jhunsake@redhat.com>2021-10-05 14:42:13 -0400
commit52cd70a799e2b2f0f963f7aec567ebf569362225 (patch)
tree83164d75940b17f4d1395c355930cb6fc5fe1578
parent5a9458d318302c1caef862a868745fc8bdf5c741 (diff)
downloadsos-52cd70a799e2b2f0f963f7aec567ebf569362225.tar.gz
[insights] collect connection check command output
Collect 'insights-client --test-connection --net-debug' cmdout with a limited timeout to prevent plugin stuck for too long in case of a networking/proxy issue. Resolves: #2704 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/report/plugins/insights.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/sos/report/plugins/insights.py b/sos/report/plugins/insights.py
index d242bba6..08c985da 100644
--- a/sos/report/plugins/insights.py
+++ b/sos/report/plugins/insights.py
@@ -32,6 +32,11 @@ class RedHatInsights(Plugin, RedHatPlugin):
else:
self.add_copy_spec("/var/log/insights-client/insights-client.log")
+ self.add_cmd_output(
+ "insights-client --test-connection --net-debug",
+ timeout=30
+ )
+
def postproc(self):
for conf in self.config:
self.do_file_sub(