]> git-server-git.apps.pok.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)
committerDavid Zafman <dzafman@redhat.com>
Tue, 3 Mar 2015 18:44:17 +0000 (10:44 -0800)
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>
(cherry picked from commit f04d4e7539bc8c1b6cf94db815f9dcdecc52faa2)

src/test/ceph_objectstore_tool.py

index 1d54e8703175fcb13d4725dad0d24dbd08291336..793ca493ee63ef268c1ba3048793de460a78646e 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"