Added an additional look up for if a match with the ceph networks is not found it will check the virtual_interface_networks list from the config that will enable matching to those networks, enabling dummy IP usage as described in the docs: https://docs.ceph.com/en/reef/cephadm/services/rgw/#selecting-network-interfaces-for-the-virtual-ip.
Fixes: https://tracker.ceph.com/issues/66874
Signed-off-by: Bradley Bishop <bishopbm1@gmail.com>
)
found = True
break
+ if not found and spec.virtual_interface_networks:
+ for subnet, ifaces in self.mgr.cache.networks.get(host, {}).items():
+ if subnet in spec.virtual_interface_networks:
+ logger.debug(
+ f'{subnet} found in virtual_interface_networks list {list(spec.virtual_interface_networks)}'
+ )
+ found = True
+ break
if not found:
self.log.info(
f"Filtered out host {host}: Host has no interface available for VIP: {vip}"