]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: add more aggressive force flag for host maintenance enter 50328/head
authorAdam King <adking@redhat.com>
Wed, 1 Mar 2023 15:58:43 +0000 (10:58 -0500)
committerAdam King <adking@redhat.com>
Tue, 7 Mar 2023 19:05:35 +0000 (14:05 -0500)
commit0a980666f645387f1eaa5f2c995db304c42e85e6
tree40484719acb913f4862e4e43e78788a1f05b674e
parente597e8785ba2f55ab1c37ff73a277b33828ac087
mgr/cephadm: add more aggressive force flag for host maintenance enter

Right now, we have safety checks that will either say things are okay to stop,
return warnings, or returns "alerts". Warnings can be bypassed already with
the --force flag that exists for the command. However, the alerts cannot be
bypassed and cephadm will refuse to attempt to put the host in maintenance mode.
The idea here is for an additional flag that also bypasses that alerts, in cases
where a user really needs to put the host into maintenance mode even if that
means causing issues within the cluster.

Fixes: https://tracker.ceph.com/issues/58892
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