From: Michael Fritch Date: Tue, 28 Jul 2020 17:24:21 +0000 (-0600) Subject: vstart: infer the mon public_network X-Git-Tag: wip-pdonnell-testing-20200918.022351~515^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6442662bbe45af2591427e9522eef45604cebbfa;p=ceph-ci.git vstart: infer the mon public_network set the mon public_network when deploying with the cephadm flag Signed-off-by: Michael Fritch --- diff --git a/src/vstart.sh b/src/vstart.sh index 94abdd8821f..1e7b8491735 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -1304,6 +1304,11 @@ mds_debug_scatterstat = true mds_verify_scatter = true EOF fi + if [ "$cephadm" -gt 0 ]; then + debug echo Setting mon public_network ... + public_network=$(ip route list | grep -w "$IP" | awk '{print $1}') + ceph_adm config set mon public_network $public_network + fi fi if [ $CEPH_NUM_MGR -gt 0 ]; then