]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm:skip an alert if the linkspeed is better than most
authorPaul Cuzner <pcuzner@redhat.com>
Thu, 18 Feb 2021 23:50:22 +0000 (12:50 +1300)
committerSage Weil <sage@newdream.net>
Tue, 16 Mar 2021 12:56:17 +0000 (07:56 -0500)
The logic was issuing a healthcheck if the linkspeed was different
to the majority. But if the difference is good (i.e. better!) we should
not be raising a healthcheck

Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
(cherry picked from commit 74a3599a83b5b1dde094721f7754d284e8acf8fa)

src/pybind/mgr/cephadm/configchecks.py

index 0d855b10000c120bef1ba5ada09e6237e8bd9f9d..36d29c6e723fbfce41b5102795769a08a96b6c55 100644 (file)
@@ -511,6 +511,9 @@ class CephadmConfigChecks:
                     speed_copy = subnet_data.speed_map.copy()
                     del speed_copy[speed_ptr]
                     for bad_speed in speed_copy:
+                        if bad_speed > speed_ptr:
+                            # skip speed is better than most...it can stay!
+                            continue
                         for h in speed_copy[bad_speed]:
                             host = HostFacts()
                             host.load_facts(self.mgr.cache.facts[h])