]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: ceph_objectstore_tool.py run mon and osd on specific port
authorLoic Dachary <ldachary@redhat.com>
Thu, 13 Nov 2014 16:21:48 +0000 (17:21 +0100)
committerLoic Dachary <ldachary@redhat.com>
Sat, 15 Nov 2014 22:27:15 +0000 (23:27 +0100)
By default vstart.sh runs MDS but they are not needed for the tests,
only run mon and osd instead. Instead of using the default vstart.sh
port which may conflict with a already running vstart.sh, set the
CEPH_PORT=7400 which is not used by any other test run with make check.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/test/ceph_objectstore_tool.py

index cd4c59b51edfc384f3acc1e3cbc9c38db6db6fce..3d0375249a12b018af10813fa5a2e509079482fe 100755 (executable)
@@ -108,7 +108,7 @@ def cat_file(level, filename):
 def vstart(new):
     print "vstarting....",
     OPT = new and "-n" or ""
-    call("OSD=4 ./vstart.sh -l {opt} -d > /dev/null 2>&1".format(opt=OPT), shell=True)
+    call("MON=1 OSD=4 CEPH_PORT=7400 ./vstart.sh -l {opt} -d mon osd > /dev/null 2>&1".format(opt=OPT), shell=True)
     print "DONE"