]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: add ability to zap OSDs' devices while draining host 51926/head
authorAdam King <adking@redhat.com>
Mon, 5 Jun 2023 19:05:55 +0000 (15:05 -0400)
committerAdam King <adking@redhat.com>
Tue, 22 Aug 2023 16:38:08 +0000 (12:38 -0400)
commit85043ff4cee108c152f5aa8af267c85e353c475a
treea431267f3aff6b698bab125a9a8b8ff3fdd2f53b
parentcb742261f90f139e855b63f790bda73b9b027883
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>
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