]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: stop directly using Ceph.daemons property
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 3 Oct 2023 20:43:59 +0000 (16:43 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 10 Oct 2023 14:33:48 +0000 (10:33 -0400)
commit28fe98bd5949c3a6bcae4e78cdae5bbcde4e8d3b
tree21c32842f1a5bed4ff7bb1b2c178eb0695c1d3f9
parentaf2058536b49309d7408d6cb19d04dc292218419
cephadm: stop directly using Ceph.daemons property

The Ceph.daemons property has two unfortunate behaviors: most important,
it includes ceph-exporter which causes the other CephExporter class to
be over-shadowed the DaemonForms mechanism. Second, it couples all
functions that want to know the names of ceph daemon types to the Ceph
class preventing future refactoring of that class.

Break the existing coupling by adding a new `ceph_daemons` function
similar to `get_supported_daemons` but returning the same value that
Ceph.daemons used to provide. This will permit future fixes and
improvements.

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