Skip to content

Commit bb14e76

Browse files
committed
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 <[email protected]>
1 parent 9bebe32 commit bb14e76

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/pybind/mgr/cephadm/serve.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,14 @@ def has_interface_for_vip(host: str, sspec: ServiceSpec) -> bool:
802802
)
803803
found = True
804804
break
805+
if not found and spec.virtual_interface_networks:
806+
for subnet, ifaces in self.mgr.cache.networks.get(host, {}).items():
807+
if subnet in spec.virtual_interface_networks:
808+
logger.debug(
809+
f'{subnet} found in virtual_interface_networks list {list(spec.virtual_interface_networks)}'
810+
)
811+
found = True
812+
break
805813
if not found:
806814
self.log.info(
807815
f"Filtered out host {host}: Host has no interface available for VIP: {vip}"

0 commit comments

Comments
 (0)