]> 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)
committerSage Weil <sage@newdream.net>
Sat, 27 Feb 2021 15:15:40 +0000 (09:15 -0600)
commit9303f2c8b72247ee20ca8a1a17aaa20d87c983d1
tree16c28f3100b4bb69b312f9434d32277bf2873577
parentca4ae4ebba456466a732a3f8df568f71c39c8bbc
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)
qa/standalone/misc/ok-to-stop.sh
src/mgr/DaemonServer.cc
src/mgr/DaemonServer.h
src/mgr/MgrCommands.h