From 81a4ab54bb85f5539c9600871796322c48914769 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Thu, 26 Jul 2018 09:31:32 -0400 Subject: [PATCH] vstart: do not attempt to re-initialize dashboard for existing cluster The dashboard should only be initialized when the "-n" option is specified to create a new cluster. This avoid errors when restarting an existing cluster and it attempts to initialize the dashboard again. Fixes: https://tracker.ceph.com/issues/24019 Signed-off-by: Jason Dillaman --- src/vstart.sh | 73 +++++++++++++++++++++++++++------------------------ 1 file changed, 38 insertions(+), 35 deletions(-) diff --git a/src/vstart.sh b/src/vstart.sh index fbb4aecca9d..37151eee38b 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -709,30 +709,30 @@ start_mgr() { key_fn=$CEPH_DEV_DIR/mgr.$name/keyring $SUDO $CEPH_BIN/ceph-authtool --create-keyring --gen-key --name=mgr.$name $key_fn ceph_adm -i $key_fn auth add mgr.$name mon 'allow profile mgr' mds 'allow *' osd 'allow *' - fi - wconf <