From bb14e76b3c464d30c92d11467900a59ea9acb6af Mon Sep 17 00:00:00 2001 From: Bradley Bishop Date: Tue, 16 Sep 2025 12:31:57 -0400 Subject: [PATCH] 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 --- src/pybind/mgr/cephadm/serve.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pybind/mgr/cephadm/serve.py b/src/pybind/mgr/cephadm/serve.py index c6196e22f0866..712ebc1d2f94f 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}" -- 2.39.5