From decc9a17de325ee89e0680de4abb35df2cd686bf Mon Sep 17 00:00:00 2001 From: Nizamudeen A Date: Fri, 11 Feb 2022 17:08:21 +0530 Subject: [PATCH] restart-dashboard: fail mgr instead of disable and enable dashboard Based on the idea given by Sebastian https://github.com/rhcs-dashboard/ceph-dev/issues/30 Signed-off-by: Nizamudeen A --- docker/ceph/restart-dashboard.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/ceph/restart-dashboard.sh b/docker/ceph/restart-dashboard.sh index 333b212064f..0d754a9fcc6 100755 --- a/docker/ceph/restart-dashboard.sh +++ b/docker/ceph/restart-dashboard.sh @@ -4,5 +4,5 @@ set -e cd /ceph/build -"$CEPH_BIN"/ceph mgr module disable dashboard -"$CEPH_BIN"/ceph mgr module enable dashboard --force +MGR_ID=$("$CEPH_BIN"/ceph mgr stat | awk -v FS='"active_name": ' 'NF>1{print $2}' | tr -d '",') +"$CEPH_BIN"/ceph mgr fail $MGR_ID