]> 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. 68048/head
authorSridhar Seshasayee <sridhar.seshasayee@ibm.com>
Wed, 25 Mar 2026 08:49:03 +0000 (14:19 +0530)
committerSridhar Seshasayee <sridhar.seshasayee@ibm.com>
Tue, 31 Mar 2026 13:43:57 +0000 (19:13 +0530)
commitf18093fc09bfedbb02cbe7967fc85b2dea9ff71f
tree748a828a0904c92a2abfb090037c7a38ecb40e33
parent774cac9901275700f1e2db301efd8a461541b8ae
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>
doc/man/8/ceph.rst
qa/standalone/misc/ok-to-upgrade.sh
src/mgr/DaemonServer.cc
src/mgr/DaemonServer.h