]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart: check mgr status after starting mgr. 51603/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:05:22 +0000 (10:05 +0800)
Signed-off-by: Rongqi Sun <sunrongqi@huawei.com>
(cherry picked from commit bdd7dd1dec93d09e089cd4d523f47b4525b6d3d5)

src/vstart.sh

index b25e84c55faadba05ab4e7e851d7c2a53bac6432..53a2b45d51ffb7b6f55a40ea93a40fd410ebf62f 100755 (executable)
@@ -1093,6 +1093,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