diff --git a/enrich-alert-info-about-kernel-stack.patch b/enrich-alert-info-about-kernel-stack.patch new file mode 100644 index 0000000000000000000000000000000000000000..bf04a6e662b44e7b85cefa3b857a873ad235bdf9 --- /dev/null +++ b/enrich-alert-info-about-kernel-stack.patch @@ -0,0 +1,29 @@ +From 41bf507ca6cbbdf5e646a405de6b8d5b9be4bd28 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=E8=B4=BA=E6=9C=89=E5=BF=97?= <1037617413@qq.com> +Date: Wed, 16 Oct 2024 17:20:01 +0800 +Subject: [PATCH] enrich alert info about kernel stack + +--- + src/python/sentryPlugins/ai_block_io/detector.py | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/src/python/sentryPlugins/ai_block_io/detector.py b/src/python/sentryPlugins/ai_block_io/detector.py +index ed8b64a..8536f7a 100644 +--- a/src/python/sentryPlugins/ai_block_io/detector.py ++++ b/src/python/sentryPlugins/ai_block_io/detector.py +@@ -103,8 +103,10 @@ class DiskDetector: + elif len(diagnosis_info["rq_driver"]) != 0: + root_cause = "[Root Cause: disk slow]" + elif len(diagnosis_info["io_stage"]) != 0: +- stage = diagnosis_info["io_stage"][0][1].stage_name +- root_cause = f"[Root Cause: io stage slow, stage: {stage}]" ++ stage_list = [] ++ for io_stage in diagnosis_info["io_stage"]: ++ stage_list.append(io_stage[0].stage_name) ++ root_cause = f"[Root Cause: io stage slow, stage: {stage_list}]" + if root_cause is None: + root_cause = "[Root Cause: high io pressure]" + return True, diagnosis_info["bio"][0][0], diagnosis_info["bio"][0][1], root_cause +-- +2.23.0 + diff --git a/sysSentry.spec b/sysSentry.spec index d259378e79c381122ca415f6f4d056245cc9b30a..f3f7b2442801e5a0769c8ecf41183f7f041173c2 100644 --- a/sysSentry.spec +++ b/sysSentry.spec @@ -4,7 +4,7 @@ Summary: System Inspection Framework Name: sysSentry Version: 1.0.2 -Release: 49 +Release: 50 License: Mulan PSL v2 Group: System Environment/Daemons Source0: https://gitee.com/openeuler/sysSentry/releases/download/v%{version}/%{name}-%{version}.tar.gz @@ -66,6 +66,7 @@ Patch53: listen-thread-of-collect-module-exits-occasionally.patch Patch54: fix-ai_block_io-root-cause-bug.patch Patch55: ebpf-fix-kyqin-miss-rq_driver-data.patch Patch56: optimize-log-printing.patch +Patch57: enrich-alert-info-about-kernel-stack.patch BuildRequires: cmake gcc-c++ BuildRequires: python3 python3-setuptools @@ -338,6 +339,12 @@ rm -rf %{buildroot} %attr(0550,root,root) %{python3_sitelib}/sentryCollector/__pycache__/collect_plugin* %changelog +* Wed Oct 16 2024 heyouzhi - 1.0.2-50 +- Type:bugfix +- CVE:NA +- SUG:NA +- DES:enrich alert info about kernel stack + * Wed Oct 16 2024 jinsaihang - 1.0.2-49 - Type:bugfix - CVE:NA