From: Willem Jan Withagen Date: Fri, 23 Jun 2017 09:33:18 +0000 (+0200) Subject: ./src/vstart.sh: Work around mgr restfull not available X-Git-Tag: ses5-milestone7~3^2~13^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F15877%2Fhead;p=ceph.git ./src/vstart.sh: Work around mgr restfull not available Signed-off-by: Willem Jan Withagen --- diff --git a/src/vstart.sh b/src/vstart.sh index f796a3c721a8e..628cc2c40f03a 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -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() {