]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: make drain adjust crush weight if not replacing
authorSage Weil <sage@newdream.net>
Wed, 17 Feb 2021 16:28:05 +0000 (10:28 -0600)
committerSebastian Wagner <sebastian.wagner@suse.com>
Tue, 9 Mar 2021 09:18:50 +0000 (10:18 +0100)
commitf721561624600ef87f8c0937d7d3893c7bec3694
tree541bcb8d09ce3d8ceeb2998e8024cf8c75512c71
parent407f86b67b05b0a10934ea64956adbe7f3b86f74
mgr/cephadm: make drain adjust crush weight if not replacing

If we are replacing an OSD, we should mark it out and then back in
again when a new device shows up.  However, if we are going to
destroy an OSD, we should just weight it to 0 in crush, so that data
doesn't move again once the OSD is purged.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 4fc1309f281356db0a074da22aa6f2daa034df8d)
src/pybind/mgr/cephadm/services/osd.py