]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr: transmit command descriptions to mgr in activating beacon
authorJohn Spray <john.spray@redhat.com>
Thu, 29 Jun 2017 19:11:12 +0000 (15:11 -0400)
committerJohn Spray <john.spray@redhat.com>
Wed, 19 Jul 2017 12:58:40 +0000 (08:58 -0400)
commit5c3846306b6bf7864327265bbac9607295f46cfc
tree2118406b7ca8ec66e3535e45e7c4ff28edfad02d
parent9efacf2a77e9a526bb1fa63fd3f340358e991bcb
mgr: transmit command descriptions to mgr in activating beacon

The mgr already sends a beacon to the mon immediately
after loading python modules in Mgr::init, to indicate
that it is now available.  Use that beacon to transmit
the command descriptions.

The monitor should handle this beacon by persisting
the command descriptions before persisting the updated
mgrmap that indicates that the mgr is now active.

Signed-off-by: John Spray <john.spray@redhat.com>
src/messages/MMgrBeacon.h
src/mgr/DaemonServer.cc
src/mgr/DaemonServer.h
src/mgr/Mgr.cc
src/mgr/Mgr.h
src/mgr/MgrStandby.cc
src/mgr/MgrStandby.h
src/mgr/PyModules.cc
src/mgr/PyModules.h