]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: remove virtual_ip check during scheduling
authorSage Weil <sage@newdream.net>
Thu, 15 Apr 2021 22:22:26 +0000 (17:22 -0500)
committerSage Weil <sage@newdream.net>
Fri, 23 Apr 2021 12:24:15 +0000 (07:24 -0500)
In 2f33c6ebbc8e2a6c3844a6921c857fb0796a1552 we made the keepalived task
set the necessary sysctls  to add a virtual_ip, so we don't need this
check anymore.

Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 2382603162ec6785681700134e3c5764bd5aa99f)

src/pybind/mgr/cephadm/serve.py

index a818029629fb5f0dd4f5d199022eb7bf101b5d0f..418cecf6078f2159a83781ebf077640d183555c9 100644 (file)
@@ -544,17 +544,6 @@ class CephadmServe:
             # host
             return len(self.mgr.cache.networks[host].get(public_network, [])) > 0
 
-        def virtual_ip_allowed(host):
-            # type: (str) -> bool
-            # Verify that it is possible to use Virtual IPs in the host
-            try:
-                if self.mgr.cache.facts[host]['kernel_parameters']['net.ipv4.ip_nonlocal_bind'] == '0':
-                    return False
-            except KeyError:
-                return False
-
-            return True
-
         ha = HostAssignment(
             spec=spec,
             hosts=self.mgr._hosts_with_daemon_inventory(),
@@ -562,7 +551,6 @@ class CephadmServe:
             networks=self.mgr.cache.networks,
             filter_new_host=(
                 matches_network if service_type == 'mon'
-                else virtual_ip_allowed if service_type == 'ingress'
                 else None
             ),
             allow_colo=svc.allow_colo(),