]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/cephadm: add ability to zap OSDs' devices while draining host
authorAdam King <adking@redhat.com>
Mon, 5 Jun 2023 19:05:55 +0000 (15:05 -0400)
committerAdam King <adking@redhat.com>
Fri, 6 Oct 2023 19:27:44 +0000 (15:27 -0400)
commite7156a73c327c608f0eb6dec1c9fedde226b4a79
tree9bfe030793f91354b933bd0d77b8dd86584dde66
parentb4fa663fa77ba2efb5b9f24e2aeb12bf66bce1f0
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