If interface has secondary ip and there is no route explicitly added for that ip then it does not
get listed in 'cephadm list-network'. And RDMA precheck fails even if RDMA enabled interface exists.
Fixes: https://tracker.ceph.com/issues/75189
Signed-off-by: Shweta Bhosale <Shweta.Bhosale1@ibm.com>
bind_ip = bind_addr.split('/')[0]
iface = self.mgr.cache.get_interface_for_ip(host, bind_ip)
rdma_netdevs = {d.get('netdev', '') for d in rdma_devices}
- if iface not in rdma_netdevs:
+ if iface and iface not in rdma_netdevs:
raise OrchestratorError(
f'NFS RDMA is enabled with bind address {bind_addr} on host {host}, '
f'but interface {iface} (for this IP) is not RDMA-capable. '