]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
./src/vstart.sh: Work around mgr restfull not available 15877/head
authorWillem Jan Withagen <wjw@digiware.nl>
Fri, 23 Jun 2017 09:33:18 +0000 (11:33 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Fri, 23 Jun 2017 09:33:18 +0000 (11:33 +0200)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/vstart.sh

index f796a3c721a8e71bf7c626c66c582f1f5ba023d4..628cc2c40f03aaf3725804ad26d21bcc00b49702 100755 (executable)
@@ -649,11 +649,14 @@ EOF
         run 'mgr' $CEPH_BIN/ceph-mgr -i $name $ARGS
     done
 
-    SF=`mktemp`
-    ceph_adm tell mgr restful create-self-signed-cert
-    ceph_adm tell mgr restful create-key admin -o $SF
-    RESTFUL_SECRET=`cat $SF`
-    rm $SF
+    if ceph_adm tell mgr restful create-self-signed-cert; then
+        SF=`mktemp`
+        ceph_adm tell mgr restful create-key admin -o $SF
+        RESTFUL_SECRET=`cat $SF`
+        rm $SF
+    else 
+        echo MGR Restful is not working, perhaps the package is not installed?
+    fi
 }
 
 start_mds() {