Repository navigation
Conversation
In a container which exposes only some of the RDMA devices, the netdev of a hidden device still points to it in sysfs. Tests which selected such an interface for rdmacm failed or hung until the watchdog timeout.
|
🤖 Starting review — findings will be posted here when done. |
|
Coverage note: this path cannot be regression-tested in CI (it depends on a container with partially exposed RDMA devices), so the change relies on manual verification in such an environment. |
|
🤖 CI Triage Agent — TL;DR: The build failed on a single gtest, Full analysisSummary: Root cause: The log shows the failure is a payload-integrity mismatch, not a timeout or crash: the test issues 100 Implicated commit: File: Suggested fix: Re-run the job to confirm this is a flake unrelated to PR #12395 (it is not a legitimate failure of this PR, so don't block on it). For the real defect: (1) in Related: #12266 (UCP/FLUSH: Flush the other lanes after the pending lane), #12362 (UCP/RMA: Balance PUT fragments by measured path bandwidth), #12395 (PR under test)
|
unrelated to this PR, which only changes gtest netdev enumeration; this failure is fixed by #12381. |
|
🤖 Starting review — findings will be posted here when done. |
| continue; | ||
| } | ||
|
|
||
| std::string ib_port = ib_ports.front(); |
There was a problem hiding this comment.
minor: read_dir returns readdir order, so on a dual-port device front() may give the wrong port for this netdev. can we pick the lowest port number instead?
The resulting ib_device:port string ends up in UCX_NET_DEVICES, so a wrong port can make the device unselectable. Note: this is pre-existing behavior, not introduced here — it is only worth raising because the line is being touched. Not a blocker, and a lexicographic min_element would be subtly wrong for ports ≥ 10, so I'd leave the fix choice to you.
|
Residual coverage gap (as already noted in the previous review): this path cannot be regression-tested in CI, since it needs a container exposing only part of the RDMA devices. |
What?
Skip a netdev in
get_all_rdmacm_net_devices()when its RDMA device is not listed in/sys/class/infiniband.Why?
In a container that exposes only some RDMA devices,
/sys/class/net/<if>/device/infinibandstill points to the hidden devices, so their interfaces were reported as rdmacm-capable. UCT rdmacm tests failed on them, and UCP sockaddr tests over IB hung until the watchdog. On Vera Rubin nodes, this cost about 23% of the gtest run time.How?
Check that
/sys/class/infiniband/<dev>exists before adding the netdev. Nothing changes when all devices are visible. On a Vera Rubin node in a container:rdmacm/*528/528 pass, and UCP IB sockaddr tests 1085/1085 pass with no hangs.