mirror of
https://github.com/ceph/ceph
synced 2024-12-18 01:16:55 +00:00
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:
commit
65e0f2ce97
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user