]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: Add RDMA device check only when ip is available in 'cephadm list-network' 67651/head
authorShweta Bhosale <Shweta.Bhosale1@ibm.com>
Tue, 21 Apr 2026 10:05:28 +0000 (15:35 +0530)
committerShweta Bhosale <Shweta.Bhosale1@ibm.com>
Tue, 21 Apr 2026 10:24:04 +0000 (15:54 +0530)
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>
src/pybind/mgr/cephadm/services/nfs.py

index 3461b8fc373123a0a565a19ad60814b16ccba492..ffc4fff849b12baab7cb0467bcfe5eedc8541169 100644 (file)
@@ -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. '