From 66e7c8347aa3accd6662178172b8253ec857008d Mon Sep 17 00:00:00 2001 From: Shweta Bhosale Date: Tue, 21 Apr 2026 15:35:28 +0530 Subject: [PATCH] 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 --- src/pybind/mgr/cephadm/services/nfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/cephadm/services/nfs.py b/src/pybind/mgr/cephadm/services/nfs.py index 3461b8fc373..ffc4fff849b 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. ' -- 2.47.3