]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: use SIGTERM when stopping vstart service
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 25 Feb 2019 19:10:51 +0000 (11:10 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 28 Feb 2019 05:38:24 +0000 (21:38 -0800)
Otherwise MDS will not send down:dne to mons when restarting.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/tasks/vstart_runner.py

index 260e9907cb23c22d7edc7c7f74a60c40276d6eef..bdfc04fc3a0f732f9828c0348ecd7cff7e1b4fd1 100644 (file)
@@ -354,7 +354,7 @@ class LocalDaemon(object):
 
         pid = self._get_pid()
         log.info("Killing PID {0} for {1}.{2}".format(pid, self.daemon_type, self.daemon_id))
-        os.kill(pid, signal.SIGKILL)
+        os.kill(pid, signal.SIGTERM)
 
         waited = 0
         while pid is not None:
@@ -362,7 +362,7 @@ class LocalDaemon(object):
             if new_pid is not None and new_pid != pid:
                 log.info("Killing new PID {0}".format(new_pid))
                 pid = new_pid
-                os.kill(pid, signal.SIGKILL)
+                os.kill(pid, signal.SIGTERM)
 
             if new_pid is None:
                 break