]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr: add --max <n> to 'osd ok-to-stop' command
authorSage Weil <sage@newdream.net>
Sat, 20 Feb 2021 14:53:51 +0000 (09:53 -0500)
committerNathan Cutler <ncutler@suse.com>
Thu, 8 Apr 2021 16:12:50 +0000 (18:12 +0200)
commitace18c738bd3115e069290d21d1269a4c587e0a4
treeb0800031bf0a569c5ec8ca76ca0dcb882ddff2b4
parent9fb98e91c09346cd60d00b7d7f05a61e1b6cb7ef
mgr: add --max <n> to 'osd ok-to-stop' command

Given and initial (set of) osd(s), if provide up to N OSDs that can be
stopped together without making PGs become unavailable.

This can be used to quickly identify large(r) batches of OSDs that can be
stopped together to (for example) upgrade.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 722f57dee1306007c9059711a93b445bbd9079ec)

Conflicts:
        src/mgr/DaemonServer.cc
- in nautilus, cmd_getval() call requires g_ceph_context as first variable
qa/standalone/misc/ok-to-stop.sh
src/mgr/DaemonServer.cc
src/mgr/DaemonServer.h
src/mgr/MgrCommands.h