]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cbt: run stop-all.sh when finishing up 31171/head
authorSage Weil <sage@redhat.com>
Sat, 26 Oct 2019 00:20:05 +0000 (19:20 -0500)
committerSage Weil <sage@redhat.com>
Sat, 26 Oct 2019 18:25:39 +0000 (13:25 -0500)
stop-all.sh will work if the right deps are there (currently we lack 'nc')

also killall -9 java to be sure.

Fixes: https://tracker.ceph.com/issues/42496
Signed-off-by: Sage Weil <sage@redhat.com>
qa/tasks/cbt.py

index d3a0f0ddd73917789a999aed1457c521d371ce2c..606a0c4db3d421006aca3d7525460768ce352470 100644 (file)
@@ -249,6 +249,21 @@ class CBT(Task):
                 cosbench_version = 'cosbench-0.4.2.c3.1'
             else:
                 cosbench_version = '0.4.2.c3'
+            # note: stop-all requires 'nc'
+            self.first_mon.run(
+                args=[
+                    'cd', testdir, run.Raw('&&'),
+                    'cd', 'cos', run.Raw('&&'),
+                    'sh', 'stop-all.sh',
+                    run.Raw('||'), 'true'
+                ]
+            )
+            self.first_mon.run(
+                args=[
+                    'sudo', 'killall', '-9', 'java',
+                    run.Raw('||'), 'true'
+                ]
+            )
             self.first_mon.run(
                 args=[
                     'rm', '--one-file-system', '-rf', '--',