Blame SOURCES/sos-bz1697813-plugin-vs-command-timeouts.patch

d8dc0d
From 7c8c45dad3481cfaae3d3af9c188218aa14a3a6a Mon Sep 17 00:00:00 2001
d8dc0d
From: Pavel Moravec <pmoravec@redhat.com>
d8dc0d
Date: Tue, 9 Apr 2019 09:50:34 +0200
d8dc0d
Subject: [PATCH] [foreman,satellite] increase plugin default timeouts
d8dc0d
d8dc0d
Those two plugins call commands with bigger timeouts than the default
d8dc0d
plugin timeout is. That can unexpectedly kill the plugin execution when
d8dc0d
the commands execution took longer than the plugin timeout (but within
d8dc0d
cmd timeout).
d8dc0d
d8dc0d
Resolves: #1642
d8dc0d
d8dc0d
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
d8dc0d
---
d8dc0d
 sos/plugins/foreman.py   | 1 +
d8dc0d
 sos/plugins/satellite.py | 1 +
d8dc0d
 2 files changed, 2 insertions(+)
d8dc0d
d8dc0d
diff --git a/sos/plugins/foreman.py b/sos/plugins/foreman.py
d8dc0d
index a1e937f3..8bcd26bd 100644
d8dc0d
--- a/sos/plugins/foreman.py
d8dc0d
+++ b/sos/plugins/foreman.py
d8dc0d
@@ -19,6 +19,7 @@ class Foreman(Plugin):
d8dc0d
     """
d8dc0d
 
d8dc0d
     plugin_name = 'foreman'
d8dc0d
+    plugin_timeout = 1800
d8dc0d
     profiles = ('sysmgmt',)
d8dc0d
     packages = ('foreman', 'foreman-proxy')
d8dc0d
     option_list = [
d8dc0d
diff --git a/sos/plugins/satellite.py b/sos/plugins/satellite.py
d8dc0d
index c50c2ec7..83733076 100644
d8dc0d
--- a/sos/plugins/satellite.py
d8dc0d
+++ b/sos/plugins/satellite.py
d8dc0d
@@ -14,6 +14,7 @@ class Satellite(Plugin, RedHatPlugin):
d8dc0d
     """
d8dc0d
 
d8dc0d
     plugin_name = 'satellite'
d8dc0d
+    plugin_timeout = 1200
d8dc0d
     profiles = ('sysmgmt',)
d8dc0d
     verify_packages = ('spacewalk.*',)
d8dc0d
     satellite = False
d8dc0d
-- 
d8dc0d
2.17.2
d8dc0d