]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
vstart.sh: use msgr2 by default
authorSage Weil <sage@redhat.com>
Mon, 30 Jul 2018 22:03:52 +0000 (17:03 -0500)
committerSage Weil <sage@redhat.com>
Fri, 21 Dec 2018 21:31:32 +0000 (15:31 -0600)
This is useful because we tend to bind to random ports

Signed-off-by: Sage Weil <sage@redhat.com>
src/vstart.sh

index e72d8c61c1ac84267ee1c42ab3fccad27bc0e208..f04f5b47c858ee970a056d2f9be7ba4fe4f7a7da 100755 (executable)
@@ -653,12 +653,12 @@ start_mon() {
                local count=0
                for f in $MONS
                do
-                       str="$str --add $f $IP:$(($CEPH_PORT+$count))"
+                       str="$str --add $f msgr2:$IP:$(($CEPH_PORT+$count))"
                        wconf <<EOF
 [mon.$f]
         host = $HOSTNAME
         mon data = $CEPH_DEV_DIR/mon.$f
-        mon addr = $IP:$(($CEPH_PORT+$count))
+        mon addr = msgr2:$IP:$(($CEPH_PORT+$count))
 EOF
                        count=$(($count + 1))
                done