From: Rongqi Sun Date: Tue, 7 Feb 2023 02:59:18 +0000 (+0800) Subject: vstart: check mgr status after starting mgr. X-Git-Tag: v18.1.0~397^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=bdd7dd1dec93d09e089cd4d523f47b4525b6d3d5;p=ceph.git vstart: check mgr status after starting mgr. Signed-off-by: Rongqi Sun --- diff --git a/src/vstart.sh b/src/vstart.sh index 34b30e57f8dd1..6f01f9fd1bb29 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -1130,6 +1130,11 @@ EOF run 'mgr' $name $CEPH_BIN/ceph-mgr -i $name $ARGS done + while ! ceph_adm mgr stat | jq -e '.available'; do + debug echo 'waiting for mgr to become available' + sleep 1 + done + if [ "$new" -eq 1 ]; then # setting login credentials for dashboard if $with_mgr_dashboard; then