]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/DaemonServer: Limit search for OSDs to upgrade within the crush bucket. 68350/head
authorSridhar Seshasayee <sridhar.seshasayee@ibm.com>
Wed, 25 Mar 2026 08:49:03 +0000 (14:19 +0530)
committerSridhar Seshasayee <sridhar.seshasayee@ibm.com>
Mon, 13 Apr 2026 10:10:54 +0000 (15:40 +0530)
commit53bd3fe21c34d942e73249a5ea71eed21f0d6949
tree01733121153ca97c543c446f52deefd7cc2e02bd
parentfa49c614c8096ec12d94e0fcedff599e1199e0a2
mgr/DaemonServer: Limit search for OSDs to upgrade within the crush bucket.

The behavior of the 'ok-to-upgrade' command is now more deterministic with
respect to the parameters passed.

To achieve the above, the commit implements the following changes:

1. The 'ok-to-upgrade' command is modified to operate strictly on the OSDs
   within the CRUSH bucket and, if possible, meet the '--max' criteria when
   specified. When --max <num> is provided, the command returns up to <num>
   OSD IDs from the specified CRUSH bucket that can be safely stopped for
   simultaneous upgrade. This is useful when only a subset of OSDs within
   the bucket needs to be upgraded for performance or other reasons.

2. Modifies the standalone tests to reflect the above change.

3. Modifies the relevant documentation to reflect the change in behavior.

Fixes: https://tracker.ceph.com/issues/75681
Signed-off-by: Sridhar Seshasayee <sridhar.seshasayee@ibm.com>
(cherry picked from commit f18093fc09bfedbb02cbe7967fc85b2dea9ff71f)
doc/man/8/ceph.rst
qa/standalone/misc/ok-to-upgrade.sh
src/mgr/DaemonServer.cc
src/mgr/DaemonServer.h