]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: add ability to zap OSDs' devices while draining host 55973/head
authorAdam King <adking@redhat.com>
Mon, 5 Jun 2023 19:05:55 +0000 (15:05 -0400)
committerAdam King <adking@redhat.com>
Fri, 15 Mar 2024 19:21:38 +0000 (15:21 -0400)
commit686a44841fec9db387ab5b4c4e479b8fe8d538cd
treeab4ef0fe92e3d6d0d4219c33f1b483e8af93f7e5
parentb2f8f58ab37fe30f6a1557c188a72ea13c8857e7
mgr/cephadm: add ability to zap OSDs' devices while draining host

Currently, when cephadm drains a host, it will remove all OSDs on
the host, but provides no option to zap the OSD's devices afterwards.
Given users are draining the host likely to remove it from the cluster,
it makes sense some users would want to clean up the devices on the
host that were being used for OSDs. Cephadm already supports zapping
devices outside of host draining, so it makes shouldn't take much to
add that functionality to the host drain as well.

Fixes: https://tracker.ceph.com/issues/61593
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 85043ff4cee108c152f5aa8af267c85e353c475a)
doc/cephadm/host-management.rst
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/tests/test_cephadm.py
src/pybind/mgr/orchestrator/_interface.py
src/pybind/mgr/orchestrator/module.py