diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2021-09-29 08:39:38 +0200 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2021-10-05 14:42:13 -0400 |
commit | 52cd70a799e2b2f0f963f7aec567ebf569362225 (patch) | |
tree | 83164d75940b17f4d1395c355930cb6fc5fe1578 | |
parent | 5a9458d318302c1caef862a868745fc8bdf5c741 (diff) | |
download | sos-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.py | 5 |
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( |