From 3ae960d6be55afa78b0890e37e8d65c029cba0d0 Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Fri, 23 Jun 2017 11:33:18 +0200 Subject: [PATCH] ./src/vstart.sh: Work around mgr restfull not available Signed-off-by: Willem Jan Withagen --- src/vstart.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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() { -- 2.47.3