From 7ac8459718b7e3fe890a66a20b95e25ca397c587 Mon Sep 17 00:00:00 2001 From: Paul Cuzner Date: Thu, 12 Nov 2020 15:24:31 +1300 Subject: [PATCH] cephadm: add entrypoints for the exporter Add dummy entry points for the cephadm-exporter and fix some errnoneous method docstrings Signed-off-by: Paul Cuzner --- src/pybind/mgr/orchestrator/_interface.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/orchestrator/_interface.py b/src/pybind/mgr/orchestrator/_interface.py index 117d3d0b3d6d0..9f0f5651abb18 100644 --- a/src/pybind/mgr/orchestrator/_interface.py +++ b/src/pybind/mgr/orchestrator/_interface.py @@ -1092,11 +1092,11 @@ class Orchestrator(object): raise NotImplementedError() def add_grafana(self, spec: ServiceSpec) -> Completion[List[str]]: - """Create a new Node-Exporter service""" + """Create a new grafana service""" raise NotImplementedError() def apply_grafana(self, spec: ServiceSpec) -> Completion[str]: - """Update existing a Node-Exporter daemon(s)""" + """Update existing a grafana service""" raise NotImplementedError() def add_alertmanager(self, spec: ServiceSpec) -> Completion[List[str]]: @@ -1107,6 +1107,14 @@ class Orchestrator(object): """Update an existing AlertManager daemon(s)""" raise NotImplementedError() + def add_cephadm_exporter(self, spec: ServiceSpec) -> Completion[List[str]]: + """Create a new cephadm exporter daemon""" + raise NotImplementedError() + + def apply_cephadm_exporter(self, spec: ServiceSpec) -> Completion[str]: + """Update an existing cephadm exporter daemon""" + raise NotImplementedError() + def upgrade_check(self, image: Optional[str], version: Optional[str]) -> Completion[str]: raise NotImplementedError() -- 2.39.5