]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/vstart_runner: don't use os.kill for passing SIGKILL
authorRishabh Dave <ridave@redhat.com>
Sat, 25 Sep 2021 10:33:25 +0000 (16:03 +0530)
committerRishabh Dave <ridave@redhat.com>
Mon, 2 May 2022 14:55:19 +0000 (20:25 +0530)
commitf12536fed18847134caeca5e813328a6536b01f6
treebb0692b5ac47ad338f2227e3ab1474c862962149
parent8d4ef76923cdf3edec2cdeb9a8bdad6d545429f4
qa/vstart_runner: don't use os.kill for passing SIGKILL

vstart_runner.py is written assuming that it can run commands with
superuser privileges whenever possible and vstart_runner.py is meant to
be executed without sudo.

So, it's better kill a process using "sudo kill -9 <PID>", instead of
using os.kill() because os.kill() can't kill process launched with
superuser privileges.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/vstart_runner.py