]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
JobProcesses: Ignore zombies safely 1907/head 1909/head
authorZack Cerza <zack@redhat.com>
Wed, 3 Jan 2024 19:28:18 +0000 (12:28 -0700)
committerZack Cerza <zack@redhat.com>
Wed, 3 Jan 2024 22:22:02 +0000 (15:22 -0700)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/exporter.py

index b688d4d75513bd80c1a7a59ce9df9faa4f4bd703..017908f620c7546ab6898a45b114c4d076ce0a30 100644 (file)
@@ -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"):