]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: Fixed warn_on_stray_hosts setting 34555/head
authorAndreas Haase <andreas.haase@community4you.de>
Tue, 14 Apr 2020 15:09:04 +0000 (17:09 +0200)
committerAndreas Haase <andreas.haase@community4you.de>
Tue, 14 Apr 2020 17:26:19 +0000 (19:26 +0200)
Fixes: https://tracker.ceph.com/issues/45065
Signed-off-by: Andreas Haase <andreas.haase@community4you.de>
src/pybind/mgr/cephadm/module.py

index b730888e5c4eb51f82229eda03205d3f8913d6a0..bb623ef6496c12e4a6983130dd59124a7a5a136f 100644 (file)
@@ -1069,7 +1069,7 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule):
                     host_detail.append(
                         'stray host %s has %d stray daemons: %s' % (
                             host, len(missing_names), missing_names))
-            if host_detail:
+            if self.warn_on_stray_hosts and host_detail:
                 self.health_checks['CEPHADM_STRAY_HOST'] = {
                     'severity': 'warning',
                     'summary': '%d stray host(s) with %s daemon(s) '
@@ -1078,7 +1078,7 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule):
                     'count': len(host_detail),
                     'detail': host_detail,
                 }
-            if daemon_detail:
+            if self.warn_on_stray_daemons and daemon_detail:
                 self.health_checks['CEPHADM_STRAY_DAEMON'] = {
                     'severity': 'warning',
                     'summary': '%d stray daemons(s) not managed by cephadm' % (