This is now only used when scheduling mons. (Units now enable the kernel
features needed instead of checking for them during placement.) Move the
message to the filter itself.
Signed-off-by: Sage Weil <sage@newdream.net>
for h in old:
if self.filter_new_host(h.hostname):
ls.append(h)
- else:
- logger.info(
- f"Filtered out host {h.hostname}: could not verify host allowed virtual ips")
if len(old) > len(ls):
logger.debug('Filtered %s down to %s' % (old, ls))
def matches_network(host):
# type: (str) -> bool
- if len(public_networks) == 0:
- return False
# make sure we have 1 or more IPs for any of those networks on that
# host
for network in public_networks:
if len(self.mgr.cache.networks[host].get(network, [])) > 0:
return True
+ self.log.info(
+ f"Filtered out host {host}: does not belong to mon public_network"
+ f" ({','.join(public_networks)})"
+ )
return False
ha = HostAssignment(