Initial implementation used the Serve class as the owner of the
configuration checker. This patch moves the checker up to the
cephadm module itself, to make the CLI command logic cleaner
Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
(cherry picked from commit
9ef3bb373362acb4436d3a6d32e290a713edc26a)
def __init__(self, mgr: "CephadmOrchestrator"):
self.mgr: "CephadmOrchestrator" = mgr
self.log = logger
- self.config_checker = CephadmConfigChecks(self.mgr)
def serve(self) -> None:
"""
of cephadm. This loop will then attempt to apply this new state.
"""
self.log.debug("serve starting")
- self.config_checker.load_network_config()
+ self.mgr.config_checker.load_network_config()
while self.mgr.run:
refresh(self.mgr.cache.get_hosts())
- self.config_checker.run_checks()
+ self.mgr.config_checker.run_checks()
health_changed = False
for k in [