From 84e13070a6aae5d1f828775770794d47e3c24cb8 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 23 May 2017 15:06:49 -0400 Subject: [PATCH] vstart.sh: start mgr dashboard, echo URL(s) Signed-off-by: Sage Weil --- src/vstart.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/vstart.sh b/src/vstart.sh index 17000716ef9ff..cbf5249544e9e 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -115,6 +115,7 @@ filestore_path= VSTART_SEC="client.vstart.sh" MON_ADDR="" +DASH_URLS="" conf_fn="$CEPH_CONF_PATH/ceph.conf" keyring_fn="$CEPH_CONF_PATH/keyring" @@ -609,6 +610,8 @@ EOF start_mgr() { local mgr=0 + # avoid monitors on nearby ports (which test/*.sh use extensively) + DASH_PORT=$(($CEPH_PORT + 1000)) for name in x y z a b c d e f g h i j k l m n o p do [ $mgr -eq $CEPH_NUM_MGR ] && break @@ -625,6 +628,11 @@ start_mgr() { host = $HOSTNAME EOF + $SUDO $CEPH_BIN/ceph config-key put mgr/$name/dashboard/server_addr $IP + $SUDO $CEPH_BIN/ceph config-key put mgr/$name/dashboard/server_port $DASH_PORT + DASH_URLS="$DASH_URLS http://$IP:$DASH_PORT/" + DASH_PORT=$(($DASH_PORT - 1)) + echo "Starting mgr.${name}" run 'mgr' $CEPH_BIN/ceph-mgr -i $name $ARGS done @@ -957,6 +965,9 @@ fi echo "started. stop.sh to stop. see out/* (e.g. 'tail -f out/????') for debug output." +echo "" +echo "dashboard urls: $DASH_URLS" + echo "" echo "export PYTHONPATH=./pybind:$PYTHONPATH" echo "export LD_LIBRARY_PATH=$CEPH_LIB" -- 2.39.5