]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk/tests: use random unused port for CEPH_MON 27228/head
authorKefu Chai <kchai@redhat.com>
Thu, 28 Mar 2019 02:34:55 +0000 (10:34 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 1 Apr 2019 14:24:13 +0000 (22:24 +0800)
Fixes: http://tracker.ceph.com/issues/39066
Signed-off-by: Kefu Chai <kchai@redhat.com>
Conflicts:
src/ceph-disk/tests/ceph-disk.sh: this change is not
cherry-picked from master. because ceph-disk was removed in nautilus. and
we need to run multiple luminous tests in parallel, hence the change.

src/ceph-disk/tests/ceph-disk.sh

index dcee7e14d6cca301bd79276588c4214ba7430b28..2a9fe7006fa578922ccded38b1d9c3b408626d4d 100755 (executable)
@@ -436,7 +436,7 @@ function run() {
     CEPH_DISK_ARGS+=" --statedir=$dir"
     CEPH_DISK_ARGS+=" --sysconfdir=$dir"
 
-    export CEPH_MON="127.0.0.1:7451" # git grep '\<7451\>' : there must be only one
+    export CEPH_MON="127.0.0.1:$(get_unused_port)"
     export CEPH_ARGS
     CEPH_ARGS+=" --fsid=$(uuidgen)"
     CEPH_ARGS+=" --auth-supported=none"