]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: edd exporter support to mgr/cephadm
authorPaul Cuzner <pcuzner@redhat.com>
Thu, 12 Nov 2020 02:55:38 +0000 (15:55 +1300)
committerPaul Cuzner <pcuzner@redhat.com>
Thu, 12 Nov 2020 02:55:38 +0000 (15:55 +1300)
commit29c41f918274e63b206a147b2ea3422f9af847e5
treec43dac1f779a32a4d8b7a5fafc0effcac1284bf2
parent4d08fb1178b4322abbd2f96b658ec1f1b0b3cc0a
cephadm: edd exporter support to mgr/cephadm

Several changes to introduce support for the exporter
1. new commands for generating/managing the config
settings required;
- generate-exporter-config (defaults)
- get-exporter-config
- clear-exporter-config
- set-exporter-config token/port
- set-exporter-tls (crt/key)

2. exporter is not a container, so a patch is added to the
run_cephadm method to 'tolerate' cephadm-exporter
daemons

3. the purge method is called on removal of a service. This has a default do-nothing response in CephService, but in
the CephadmExporter service, purge will remove it's config
from the mon store

4. during deploy (_create_daemon) a new remoto call to copy
the cephadm binary to the target is needed - prior to
invoking the deploy request

5. Default placement for the exporter is *, so by default once
the service is created, exporter daemons will appear on all
cluster nodes

Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
src/pybind/mgr/cephadm/module.py