From 70a2bb2a303d9f56958cc66b74cb00dafc12ba41 Mon Sep 17 00:00:00 2001 From: Zhaoyi Li <36555117+Lzy17@users.noreply.github.com> Date: Tue, 22 Sep 2026 04:15:18 -0500 Subject: [PATCH] [AMD][DI] Keep loopback in UCX_NET_DEVICES (#40641) --- .../sglang/test/server_fixtures/disaggregation_fixture.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/sglang/test/server_fixtures/disaggregation_fixture.py b/python/sglang/test/server_fixtures/disaggregation_fixture.py index 9956e4728a..7bdf57cec8 100644 --- a/python/sglang/test/server_fixtures/disaggregation_fixture.py +++ b/python/sglang/test/server_fixtures/disaggregation_fixture.py @@ -490,7 +490,11 @@ def _maybe_set_ucx_net_devices(ib_devices) -> bool: devices = [d.strip() for d in ib_devices.split(",") if d.strip()] if not devices: return False - net_devices = ",".join(f"{d}:1" for d in devices) + # UCX applies this list to every network device, not just the RDMA ones, so + # an RDMA-only list also drops tcp. NIXL opens an endpoint to itself during + # createBackend and tcp is the only transport left that can serve it, so + # keep loopback here. + net_devices = ",".join([*(f"{d}:1" for d in devices), "lo"]) # NIXL ignores --disaggregation-ib-device; without this UCX opens every RDMA # device on the host, and that full-device init can stall inside the driver. os.environ["UCX_NET_DEVICES"] = net_devices