]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tests: kill_daemons uses TERM instead of KILL
authorLoic Dachary <ldachary@redhat.com>
Thu, 10 Dec 2015 14:16:44 +0000 (15:16 +0100)
committerLoic Dachary <ldachary@redhat.com>
Thu, 10 Dec 2015 16:34:32 +0000 (17:34 +0100)
commit5876829dc7119b0ca4ebbd0796391457643acd86
tree9c532183cdc4f53e6c0cbf7be212c0662f94a871
parent021743938d58a22be53758e603d6c5d7096b48b4
tests: kill_daemons uses TERM instead of KILL

When called to teardown a test, kill_daemon should use KILL to ensure
all leftovers are removed as quickly as possible to leave a clean state
for the next test. However, when kill_daemons is called to shutdown a
given daemon from within a test, it should use TERM by default so the
daemon has time to notify the MON that it goes down. For instance, if
KILLing an OSD, the mon will still report it as being up although the
calling function probably expects that it will be marked out.

Signed-off-by: Loic Dachary <loic@dachary.org>
qa/workunits/ceph-helpers.sh