]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: ceph_objectstore_tool.py replace stop.sh with init-ceph
authorLoic Dachary <ldachary@redhat.com>
Thu, 13 Nov 2014 16:32:14 +0000 (17:32 +0100)
committerDavid Zafman <dzafman@redhat.com>
Tue, 3 Mar 2015 18:44:17 +0000 (10:44 -0800)
The stop.sh will stop all ceph-* processes. Use the init-ceph script
instead to selectively kill the daemons run by the vstart.sh cluster
used for ceph_objectstore_tool.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit e8f34bd62bf282144b8851fb9764cf4429a49c25)

src/test/ceph_objectstore_tool.py

index 10ad79d331a557aff01ada605375107b30612520..a83092558882e04aed78f6d1c0a86a03a9ccd36c 100755 (executable)
@@ -372,7 +372,7 @@ def main(argv):
 
     logging.debug(db)
 
-    call("./stop.sh", stderr=nullfd)
+    call("./init-ceph -c {conf} stop osd mon".format(conf=CEPH_CONF), shell=True)
 
     if ERRORS:
         logging.critical("Unable to set up test")
@@ -753,7 +753,7 @@ def main(argv):
     else:
         logging.warning("SKIPPING IMPORT-RADOS TESTS DUE TO PREVIOUS FAILURES")
 
-    call("./stop.sh", stderr=nullfd)
+    call("./init-ceph -c {conf} stop osd mon".format(conf=CEPH_CONF), shell=True)
 
     call("/bin/rm -rf {dir}".format(dir=TESTDIR), shell=True)
     call("/bin/rm -rf {dir}".format(dir=DATADIR), shell=True)