diff --git a/sos-bz2023481-plugin-timeouts-proper-handling.patch b/sos-bz2023481-plugin-timeouts-proper-handling.patch index 5a4dd34..9fc7c3d 100644 --- a/sos-bz2023481-plugin-timeouts-proper-handling.patch +++ b/sos-bz2023481-plugin-timeouts-proper-handling.patch @@ -64,25 +64,17 @@ index 49f1af27..3e717993 100644 # get the option list into a dictionary for opt in self.option_list: -@@ -591,6 +583,22 @@ class Plugin(): +@@ -591,6 +583,14 @@ class Plugin(): # Initialise the default --dry-run predicate self.set_predicate(SoSPredicate(self)) + def get_default_plugin_opts(self): -+ return { -+ 'timeout': PluginOpt( -+ 'timeout', default=-1, val_type=int, -+ desc='Timeout in seconds for plugin to finish all collections' -+ ), -+ 'cmd-timeout': PluginOpt( -+ 'cmd-timeout', default=-1, val_type=int, -+ desc='Timeout in seconds for individual commands to finish' -+ ), -+ 'postproc': PluginOpt( -+ 'postproc', default=True, val_type=bool, -+ desc='Enable post-processing of collected data' -+ ) -+ } ++ return [ ++ ('timeout', 'Timeout in seconds for plugin to finish', 'fast', -1), ++ ('cmd-timeout', 'Timeout in seconds for a command', 'fast', -1), ++ ('postproc', 'Enable post-processing collected plugin data', 'fast', ++ True) ++ ] + def set_plugin_manifest(self, manifest): """Pass in a manifest object to the plugin to write to diff --git a/sos.spec b/sos.spec index 3eeef66..035caef 100644 --- a/sos.spec +++ b/sos.spec @@ -5,7 +5,7 @@ Summary: A set of tools to gather troubleshooting information from a system Name: sos Version: 4.2 -Release: 3%{?dist} +Release: 4%{?dist} Group: Applications/System Source0: https://github.com/sosreport/sos/archive/%{version}/sos-%{version}.tar.gz Source1: sos-audit-%{auditversion}.tgz @@ -127,7 +127,7 @@ of the system. Currently storage and filesystem commands are audited. %changelog -* Mon Nov 15 2021 Pavel Moravec = 4.2-3 +* Tue Nov 16 2021 Pavel Moravec = 4.2-4 - [report] Calculate sizes of dirs, symlinks and manifest in Resolves: bz2011537 - [report] shutdown threads for timeouted plugins