From: Bradley Bishop Date: Tue, 16 Sep 2025 16:31:57 +0000 (-0400) Subject: mgr/cephadm: Add check for virtual_interface_networks X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bb14e76b3c464d30c92d11467900a59ea9acb6af;p=ceph.git mgr/cephadm: Add check for virtual_interface_networks 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 --- diff --git a/src/pybind/mgr/cephadm/serve.py b/src/pybind/mgr/cephadm/serve.py index c6196e22f086..712ebc1d2f94 100644 --- a/src/pybind/mgr/cephadm/serve.py +++ b/src/pybind/mgr/cephadm/serve.py @@ -802,6 +802,14 @@ class CephadmServe: ) 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}"