]> 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)
committerSage Weil <sage@newdream.net>
Wed, 17 Feb 2021 21:33:00 +0000 (15:33 -0600)
commit4fc1309f281356db0a074da22aa6f2daa034df8d
tree9867f0d08f33dd2fb421b312052e0bfb3069abce
parente2f0e56ddf3197f220c5a43c79d6bc43e4b135ce
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>
src/pybind/mgr/cephadm/services/osd.py