]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
use sudo to kill teuthology proc
authorSage Weil <sage@inktank.com>
Sat, 7 Jul 2012 03:15:55 +0000 (20:15 -0700)
committerSage Weil <sage@inktank.com>
Sat, 7 Jul 2012 03:15:55 +0000 (20:15 -0700)
teuthology/nuke.py

index b1f1baf0d917b9894a2957ea3f5199f49e4541ec..80e437777df9dd89c83c1839ffb83f8294c1624c 100644 (file)
@@ -278,9 +278,10 @@ def main():
     if ctx.pid:
         if ctx.archive:
             import os
-            os.system('grep -q %s /proc/%d/cmdline && kill %d' % (ctx.archive,
-                                                                  ctx.pid,
-                                                                  ctx.pid))
+            os.system('grep -q %s /proc/%d/cmdline && sudo kill %d' % (
+                    ctx.archive,
+                    ctx.pid,
+                    ctx.pid))
         else:
             subprocess.check_call(["kill", "-9", str(ctx.pid)]);