From 4f64708eace0da1ad6beefd3a1976433a7448386 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 05 2019 22:34:09 +0000 Subject: import sos-3.7-5.el8 --- diff --git a/README.debrand b/README.debrand deleted file mode 100644 index 01c46d2..0000000 --- a/README.debrand +++ /dev/null @@ -1,2 +0,0 @@ -Warning: This package was configured for automatic debranding, but the changes -failed to apply. diff --git a/SOURCES/sos-bz1756094-kernel-no-trace-by-default.patch b/SOURCES/sos-bz1756094-kernel-no-trace-by-default.patch new file mode 100644 index 0000000..5aec064 --- /dev/null +++ b/SOURCES/sos-bz1756094-kernel-no-trace-by-default.patch @@ -0,0 +1,79 @@ +From 55949fb88c492eec542c69157a8763ddb3555345 Mon Sep 17 00:00:00 2001 +From: MIZUTA Takeshi +Date: Thu, 6 Jun 2019 18:42:40 +0900 +Subject: [PATCH] [plugins] Change forbidden_path from partial-match to + exact-match + +forbidden_path is evaluated on partial-match. +However, it will be correct to evaluate on exact-match. + +Closes: #1692 +Resolves: #1695 + +Signed-off-by: MIZUTA Takeshi +Signed-off-by: Bryn M. Reeves +--- + sos/plugins/__init__.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py +index 56af847a..41f4f58c 100644 +--- a/sos/plugins/__init__.py ++++ b/sos/plugins/__init__.py +@@ -64,7 +64,7 @@ def _mangle_command(command, name_max): + + + def _path_in_path_list(path, path_list): +- return any(p in path for p in path_list) ++ return any(p == path for p in path_list) + + + def _node_type(st): +-- +2.21.0 + +From d2d5b9da6d4af7ead8a47468db0bbfcc8fb2b5bf Mon Sep 17 00:00:00 2001 +From: Pavel Moravec +Date: Thu, 26 Sep 2019 10:50:18 +0200 +Subject: [PATCH] [kernel] Don't collect trace file by default + +Updates the plugin to don't collect trace file by default. Collecting +trace file may take a lot of time, so trace file is not collected +by default, and use the new plug-in option when collecting. + +Original author: MIZUTA Takeshi + +Closes: #1688 +Resolves: #1800 + +Signed-off-by: Pavel Moravec +Signed-off-by: Bryn M. Reeves +--- + sos/plugins/kernel.py | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/sos/plugins/kernel.py b/sos/plugins/kernel.py +index bf3c3dea..b498f55e 100644 +--- a/sos/plugins/kernel.py ++++ b/sos/plugins/kernel.py +@@ -23,7 +23,8 @@ class Kernel(Plugin, RedHatPlugin, Debia + sys_module = '/sys/module' + + option_list = [ +- ("with-timer", "gather /proc/timer* statistics", "slow", False) ++ ("with-timer", "gather /proc/timer* statistics", "slow", False), ++ ("trace", "gather /sys/kernel/debug/tracing/trace file", "slow", False) + ] + + def get_bpftool_prog_ids(self, prog_file): +@@ -138,6 +139,9 @@ class Kernel(Plugin, RedHatPlugin, Debia + # and may also cause softlockups + self.add_copy_spec("/proc/timer*") + ++ if not self.get_option("trace"): ++ self.add_forbidden_path("/sys/kernel/debug/tracing/trace") ++ + # collect list of eBPF programs and maps and their dumps + prog_file = self.get_cmd_output_now("bpftool -j prog list") + for prog_id in self.get_bpftool_prog_ids(prog_file): +2.21.0 diff --git a/SPECS/sos.spec b/SPECS/sos.spec index 03d1b6a..67514ca 100644 --- a/SPECS/sos.spec +++ b/SPECS/sos.spec @@ -5,7 +5,7 @@ Summary: A set of tools to gather troubleshooting information from a system Name: sos Version: 3.7 -Release: 4%{?dist} +Release: 5%{?dist} Group: Applications/System Source0: https://github.com/sosreport/sos/archive/%{version}/sos-%{version}.tar.gz Source1: sos-audit-%{auditversion}.tgz @@ -38,6 +38,7 @@ Patch15: sos-bz1665981-peripety-config.patch Patch16: sos-bz1733469-timeouted-plugin-stop-further-collection.patch Patch17: sos-bz1665929-nvme-config.patch Patch18: sos-bz1745017-openvswitch-enable-by-openvswitch2.patch +Patch19: sos-bz1756094-kernel-no-trace-by-default.patch %description Sos is a set of tools that gathers information about system @@ -65,6 +66,7 @@ support technicians and developers. %patch16 -p1 %patch17 -p1 %patch18 -p1 +%patch19 -p1 %setup -T -D -a1 -q %build @@ -117,8 +119,9 @@ of the system. Currently storage and filesystem commands are audited. %ghost /etc/audit/rules.d/40-sos-storage.rules %changelog -* Tue Nov 05 2019 CentOS Sources - 3.7-4.el8.centos -- Apply debranding changes +* Wed Oct 02 2019 Pavel Moravec = 3.7-5 +- [kernel] Don't collect trace file by default + Resolves: bz1756094 * Thu Sep 12 2019 Pavel Moravec = 3.7-4 - [openvswitch] catch all openvswitch2.* packages