]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart: check mgr status after starting mgr. 51604/head
authorRongqi Sun <sunrongqi@huawei.com>
Tue, 7 Feb 2023 02:59:18 +0000 (10:59 +0800)
committerRongqi Sun <sunrongqi@huawei.com>
Sat, 20 May 2023 02:11:53 +0000 (10:11 +0800)
Signed-off-by: Rongqi Sun <sunrongqi@huawei.com>
(cherry picked from commit bdd7dd1dec93d09e089cd4d523f47b4525b6d3d5)

src/vstart.sh

index 490f40a6ada4f509327941a299299c741828d3e8..e587d6876b393fbf11a37ac7174e613fa28584ee 100755 (executable)
@@ -1001,6 +1001,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