]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart.sh: put mon addrs in mon_host, not 'mon addr'
authorSage Weil <sage@redhat.com>
Wed, 19 Dec 2018 16:42:58 +0000 (10:42 -0600)
committerSage Weil <sage@redhat.com>
Thu, 3 Jan 2019 17:17:31 +0000 (11:17 -0600)
Notably, mon addr won't take an addrvec, while everything else will.

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

index a60b19972a40184f18fd93ce04f5e7f3b20fd842..a53f5d65920b05b3bdbaa99c94b7073571fc207b 100755 (executable)
@@ -682,6 +682,7 @@ start_mon() {
                # build a fresh fs monmap, mon fs
                local str=""
                local count=0
+               local mon_host=""
                for f in $MONS
                do
                    if [ $msgr -eq 1 ]; then
@@ -694,14 +695,18 @@ start_mon() {
                        A="v2:$IP:$(($CEPH_PORT+$count)),v1:$IP:$(($CEPH_PORT+$count+1))"
                    fi
                    str="$str --addv $f $A"
+                   mon_host="$mon_host $A"
                    wconf <<EOF
 [mon.$f]
         host = $HOSTNAME
         mon data = $CEPH_DEV_DIR/mon.$f
-        mon addr = $A
 EOF
                    count=$(($count + 2))
                done
+               wconf <<EOF
+[global]
+        mon host = $mon_host
+EOF
                prun "$CEPH_BIN/monmaptool" --create --clobber $str --print "$monmap_fn"
 
                for f in $MONS