Merge pull request #16564 from liewegas/wip-vstart-mgr

vstart.sh: fix mgr vs restful command startup race

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
This commit is contained in:
Sage Weil 2017-07-25 08:56:12 -05:00 committed by GitHub
commit 65e0f2ce97

View File

@ -671,7 +671,9 @@ EOF
run 'mgr' $CEPH_BIN/ceph-mgr -i $name $ARGS
done
if ceph_adm restful create-self-signed-cert; then
# use tell mgr here because the first mgr might not have activated yet
# to register the python module commands.
if ceph_adm tell mgr restful create-self-signed-cert; then
SF=`mktemp`
ceph_adm restful create-key admin -o $SF
RESTFUL_SECRET=`cat $SF`