]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/MgrStandby: respawn when deactivated
authorSage Weil <sage@redhat.com>
Wed, 7 Jun 2017 20:54:19 +0000 (16:54 -0400)
committerSage Weil <sage@redhat.com>
Wed, 7 Jun 2017 20:54:19 +0000 (16:54 -0400)
commit2fd49a1a617fc2a5736adcd591a2c0b159372fea
tree73df87bc93868c7d75e3d3302bc5541769178eae
parent7059b9b20109a3e1d1f56cba1e6dc79778efbb7a
mgr/MgrStandby: respawn when deactivated

- It is ugly to unwind all of the Mgr state so that we can reactivate
  later.
- It is perhaps impossible to do shut down the python state reliably.
- Respawning provides a clean state and is reliable.

This mostly just copies MDSServer::respawn().

Fixes: http://tracker.ceph.com/issues/19595
Fixes: http://tracker.ceph.com/issues/19549
Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph_mgr.cc
src/mgr/MgrStandby.cc
src/mgr/MgrStandby.h