]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
exporter: Catch psutil.AccessDenied
authorZack Cerza <zack@redhat.com>
Fri, 26 Jul 2024 17:30:02 +0000 (11:30 -0600)
committerZack Cerza <zack@redhat.com>
Fri, 2 Aug 2024 18:50:33 +0000 (12:50 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/exporter.py

index 017908f620c7546ab6898a45b114c4d076ce0a30..4c7c10a4c25b08f7295264eeb1128fb9fa8a4f8d 100644 (file)
@@ -148,6 +148,8 @@ class JobProcesses(TeuthologyMetric):
             cmdline = proc.cmdline()
         except psutil.ZombieProcess:
             return False
+        except psutil.AccessDenied:
+            return False
         if not len(cmdline) > 1:
             return False
         if not cmdline[1].endswith("teuthology"):