From: Zack Cerza Date: Wed, 3 Jan 2024 19:28:18 +0000 (-0700) Subject: JobProcesses: Ignore zombies safely X-Git-Tag: 1.2.0~59^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1907%2Fhead;p=teuthology.git JobProcesses: Ignore zombies safely Signed-off-by: Zack Cerza --- diff --git a/teuthology/exporter.py b/teuthology/exporter.py index b688d4d7..017908f6 100644 --- a/teuthology/exporter.py +++ b/teuthology/exporter.py @@ -144,7 +144,10 @@ class JobProcesses(TeuthologyMetric): @staticmethod def _match(proc): - cmdline = proc.cmdline() + try: + cmdline = proc.cmdline() + except psutil.ZombieProcess: + return False if not len(cmdline) > 1: return False if not cmdline[1].endswith("teuthology"):