From: Shweta Bhosale Date: Tue, 21 Apr 2026 10:05:28 +0000 (+0530) Subject: mgr/cephadm: Add RDMA device check only when ip is available in 'cephadm list-network' X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=66e7c8347aa3accd6662178172b8253ec857008d;p=ceph.git mgr/cephadm: Add RDMA device check only when ip is available in 'cephadm list-network' 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 --- diff --git a/src/pybind/mgr/cephadm/services/nfs.py b/src/pybind/mgr/cephadm/services/nfs.py index 3461b8fc3731..ffc4fff849b1 100644 --- a/src/pybind/mgr/cephadm/services/nfs.py +++ b/src/pybind/mgr/cephadm/services/nfs.py @@ -208,7 +208,7 @@ class NFSService(CephService): 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. '