summaryrefslogtreecommitdiffstats
path: root/src/vstart.sh
diff options
context:
space:
mode:
authorWillem Jan Withagen <wjw@digiware.nl>2017-06-23 11:33:18 +0200
committerWillem Jan Withagen <wjw@digiware.nl>2017-06-23 11:33:18 +0200
commit3ae960d6be55afa78b0890e37e8d65c029cba0d0 (patch)
treea4ae011de98d3baa5ef33487f913a16756779bcc /src/vstart.sh
parentMerge pull request #15832 from Adirl/pd_assert (diff)
downloadceph-3ae960d6be55afa78b0890e37e8d65c029cba0d0.tar.xz
ceph-3ae960d6be55afa78b0890e37e8d65c029cba0d0.zip
./src/vstart.sh: Work around mgr restfull not available
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
Diffstat (limited to '')
-rwxr-xr-xsrc/vstart.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/vstart.sh b/src/vstart.sh
index f796a3c721a..628cc2c40f0 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() {