From 6cd9e817e0576c15339b96d6ecaa8472497ffbd5 Mon Sep 17 00:00:00 2001
From: Xiubo Li <xiubli@redhat.com>
Date: Thu, 23 May 2024 13:19:49 +0800
Subject: [PATCH] syslog.py: report when ceph works are stuck

Usually there will be performance bug when hitting the works are
stuck:

workqueue: delayed_work [ceph] hogged CPU for >10000us 4 times, consider switching to WQ_UNBOUND

URL: https://www.spinics.net/lists/ceph-users/msg78775.html
Signed-off-by: Xiubo Li <xiubli@redhat.com>
---
 teuthology/task/internal/syslog.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/teuthology/task/internal/syslog.py b/teuthology/task/internal/syslog.py
index 64032a8e7c..78d47e4c2a 100644
--- a/teuthology/task/internal/syslog.py
+++ b/teuthology/task/internal/syslog.py
@@ -107,7 +107,7 @@ def syslog(ctx, config):
             stdout = rem.sh(
                 [
                     'egrep', '--binary-files=text',
-                    '\\bBUG\\b|\\bINFO\\b|\\bDEADLOCK\\b',
+                    '\\bBUG\\b|\\bINFO\\b|\\bDEADLOCK\\b|ceph.*\\bhogged\ CPU\ for\\b',
                     run.Raw(f'{archive_dir}/syslog/kern.log'),
                     run.Raw('|'),
                     'grep', '-v', 'task .* blocked for more than .* seconds',