]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: update _rm_cluster to call terminate_service
authorJohn Mulligan <jmulligan@redhat.com>
Sun, 19 Nov 2023 00:09:29 +0000 (19:09 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 2 Jan 2024 14:30:21 +0000 (09:30 -0500)
commit0f7a48cc4dc620e388f87a083504664552705758
treea359e7406856ae40fe86748e427d92b8aab8a2d9
parentef857dce2daed842818645ba1a8dd195fb228b4a
cephadm: update _rm_cluster to call terminate_service

The terminate_service function was added to encapsulate the act of
terminating a systemd service. The rm-deamon handler was updated to use
this function previously; this commit updates rm-cluster function(s)
to do the same. This needed a bunch of test updates do to how the tests
were mocking commands.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadm.py
src/cephadm/tests/test_cephadm.py