]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: add 'mon ok-to-{stop,add-offline,rm}' commands
authorSage Weil <sage@redhat.com>
Sat, 23 Mar 2019 20:52:04 +0000 (15:52 -0500)
committerSage Weil <sage@redhat.com>
Wed, 3 Apr 2019 15:22:23 +0000 (10:22 -0500)
commit88bb6964c9f3f54a0eb6bc1f680997f5b5ffa314
tree5740cf4aedc505e99ef156a249d889f49f8c962f
parent0b7445d33a0e253b32105f3db9fd8b046df999f8
mon: add 'mon ok-to-{stop,add-offline,rm}' commands

Helpers to decide when it is safe to stop a mon, add a mon that is
not started, or remove a mon.  (Adding and start a mon would always
be safe, but it takes time to sync, so it's not really possible to do
quickly.)

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit cfba0acc01230423252f674d11929bf505dc1ec7)
qa/standalone/misc/ok-to-stop.sh [new file with mode: 0755]
src/mon/MonCommands.h
src/mon/Monitor.cc