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

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