]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: add offline host handling to maintenance exit
authorAdam King <adking@redhat.com>
Wed, 2 Oct 2024 20:04:22 +0000 (16:04 -0400)
committerAdam King <adking@redhat.com>
Wed, 16 Oct 2024 17:52:27 +0000 (13:52 -0400)
commitee9b7c0617c972dcdba15902c280baebe001504c
treef07424fccb9d954985e8fefeff433e13e086e678
parenteaad13485b8a426d028d00c042e27a4db5f4e2a4
mgr/cephadm: add offline host handling to maintenance exit

The maintenance exit command now will check if the host
is offline before attempting to take it out of maintenance
mode (previously this case would cause the command to fail
and print a not very useful traceback). Additionally, if users
would like to have cephadm officially consider an offline host to
be no longer in maintenance mode this patch allows users to
pass a --offline and --force flag to do so. The expected use
case for those flags being a host that is considered to be
permanently online that users want to mark as no longer being
in maintenance mode before the host is removed from the cluster.

Signed-off-by: Adam King <adking@redhat.com>
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/orchestrator/_interface.py
src/pybind/mgr/orchestrator/module.py