Repository navigation
fix(vllm): keep NIXL telemetry capture when export is disabled - #15570
Conversation
NIXL 1.4 treats a false NIXL_TELEMETRY_ENABLE as a veto of capture_telemetry=True, so vLLM's get_xfer_telemetry fails the KV load. Clear that setting, and the exporter and dir, before the engine spawns. An explicit enable is left alone. Closes ai-dynamo#15565 Signed-off-by: cipheraxat <[email protected]>
|
👋 Hi cipheraxat! Thank you for contributing to ai-dynamo/dynamo. Just a reminder: The 🚀 |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: ai-dynamo/dynamo/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review. WalkthroughThe vLLM startup path now removes false NIXL telemetry settings before engine initialization. Tests cover false, truthy, unrecognized, and unset values, and clear inherited NIXL variables before an engine-setup test. ChangesNIXL telemetry capture
Priority: ⬆️ High Estimated code review effort: 2 (Simple) | ~10 minutes Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The telemetry-setting change is mergeable after normal checks; the reported whitespace concern does not require a fix. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Comment |
Signed-off-by: cipheraxat <[email protected]>
Secondary multi-node workers skip setup_vllm_engine, so they still inherited NIXL_TELEMETRY_ENABLE=n and failed get_xfer_telemetry. Signed-off-by: cipheraxat <[email protected]>
There was a problem hiding this comment.
Previously reported defects still present:
- Original discussion: Still present:
allow_nixl_telemetry_capture()removesNIXL_TELEMETRY_ENABLE,NIXL_TELEMETRY_EXPORTER, andNIXL_TELEMETRY_DIRbut does not install an explicit capture-only sink. The repository's shared NIXL telemetry helper documents that NIXL can also read these settings fromNIXL_CONFIG_FILE,~/.nixl.cfg, or/etc/nixl.cfg, so clearing the environment can expose a configured exporter or telemetry directory instead of preserving the operator's disabled-export intent. - Original discussion: Still present:
allow_nixl_telemetry_capture()usesstrip()before matching false tokens, while the repository NIXL parser and observability docs state that NIXL compares booleans case-insensitively without trimming whitespace and treats padded values such asyoryas errors. A malformed padded false value is therefore silently converted into capture-only operation instead of surfacing the invalid configuration. - Original discussion: Verified still present:
allow_nixl_telemetry_capture()removesNIXL_TELEMETRY_ENABLE,NIXL_TELEMETRY_EXPORTER, andNIXL_TELEMETRY_DIRwhen the enable value is false, but NIXL resolves options from the environment first and then fromNIXL_CONFIG_FILE,$HOME/.nixl.cfg, or/etc/nixl.cfg. Because vLLM requestscapture_telemetry=True, clearing the environment can reveal a config-file exporter or telemetry directory and export/bind unexpectedly instead of preserving capture-only behavior. The fix should leave capture enabled while explicitly selecting NIXL's NOP exporter or otherwise masking lower-precedence telemetry sinks.
A false enable value was only cleared, so a config file could still select an exporter or directory. Match NIXL's untrimmed boolean tokens and set the exporter to NOP. Signed-off-by: cipheraxat <[email protected]>
There was a problem hiding this comment.
Questions for the author:
- components/src/dynamo/vllm/nixl_telemetry.py: The helper now relies on
NIXL_TELEMETRY_EXPORTER=NOP, but this checkout still declaresnixl[cu13]==1.3.2for the vLLM extra, while the explicit NOP exporter is only documented in the NIXL 1.4.0 docs I could verify. Please confirm whether the supported vLLM runtime for this PR always carries a NIXL build that acceptsNIXL_TELEMETRY_EXPORTER=NOP, or provide evidence that the pinned 1.3.2 path accepts it too.
NIXL 1.3.2, which the vLLM image builds, has no NOP plugin and loads an exporter only when enable is true. Setting enable=y would fail agent startup there. Signed-off-by: cipheraxat <[email protected]>
|
NIXL 1.3.2, which the vLLM image builds, has no NOP plugin and only loads an exporter when enable is true, so enable stays unset and NOP is only there for the 1.4 capture path. |
There was a problem hiding this comment.
Previously reported defects still present:
- Original discussion: Still present:
allow_nixl_telemetry_capture()removes a falseNIXL_TELEMETRY_ENABLEand pinsNIXL_TELEMETRY_EXPORTER=NOP, but it leaves enable unset. The existing discussion notes that lower-precedence NIXL config sources can still provide a false enable value that vetoescapture_telemetry=True, so the current helper can preserve the transfer failure on that path. - Original discussion: Still present: removing
NIXL_TELEMETRY_ENABLEallows NIXL 1.4 to read a lower-precedence false value from its config files, which can continue to vetocapture_telemetry=True. The translation must explicitly enable capture for NIXL 1.4+ while preserving compatibility with the pinned NIXL 1.3.2 path. - Original discussion: Still present: removing
NIXL_TELEMETRY_ENABLElets NIXL 1.4 inherit a false value from a lower-precedence config file, socapture_telemetry=Trueremains vetoed and transfers can still fail withNIXL_ERR_NO_TELEMETRY. Explicitly enable capture with the NOP exporter on NIXL 1.4+, while preserving the false override for NIXL 1.3.2. - Original discussion: Verified still present: after detecting an environment-level false value,
allow_nixl_telemetry_capture()removesNIXL_TELEMETRY_ENABLE. On NIXL 1.4 this can expose a lower-precedence false value fromNIXL_CONFIG_FILE,$HOME/.nixl.cfg, or/etc/nixl.cfg, which still vetoes vLLM'scapture_telemetry=Trueand causesget_xfer_telemetryto fail. Version-gate the translation so NIXL 1.4 receives an explicit true enable with the NOP exporter, while the pinned 1.3.2 path retains compatible behavior. - Original discussion: Verified still present: removing the false
NIXL_TELEMETRY_ENABLEenvironment override lets NIXL 1.4 inherit a lower-precedence false value from its config files, which still vetoes vLLM's requested telemetry capture and leaves disaggregated transfers failing. The translation must explicitly enable capture with the NOP exporter on NIXL 1.4+, while preserving behavior for the pinned NIXL 1.3.2 runtime.
cipheraxat
left a comment
There was a problem hiding this comment.
That change is already pushed, and enable stays unset because the vLLM image builds NIXL 1.3.2, which has no NOP plugin.
There was a problem hiding this comment.
Previously reported defects still present:
- Original discussion: Still present:
allow_nixl_telemetry_capture()removes a falseNIXL_TELEMETRY_ENABLEand leaves enable unset while pinningNIXL_TELEMETRY_EXPORTER=NOP. The original discussion notes that NIXL 1.4 can then read a lower-precedence false enable value fromNIXL_CONFIG_FILE,$HOME/.nixl.cfg, or/etc/nixl.cfg, preserving thecapture_telemetry=Trueveto and the transfer failure. - Original discussion: Verified still present:
allow_nixl_telemetry_capture()still removes a falseNIXL_TELEMETRY_ENABLEand leaves enable unset while settingNIXL_TELEMETRY_EXPORTER=NOP. The existing discussion explains that on NIXL 1.4 this can expose a lower-precedence false enable value from NIXL config files, which still vetoes vLLM's requested telemetry capture and can preserve the transfer failure. - Original discussion: Verified still present:
allow_nixl_telemetry_capture()still removes a falseNIXL_TELEMETRY_ENABLEand leaves enable unset while settingNIXL_TELEMETRY_EXPORTER=NOP. The repo's shared NIXL telemetry utility documents that NIXL can then read lower-precedence config fromNIXL_CONFIG_FILE,~/.nixl.cfg, or/etc/nixl.cfg; on NIXL 1.4 a false enable from those sources can still veto vLLM'scapture_telemetry=True, and the vLLM extra remains pinned to a 1.3.2 path whose NOP support is not available. The existing requested correction, version-gating so NIXL 1.4+ gets an explicit true enable with the NOP exporter while the 1.3.2 path keeps compatible behavior, is still applicable. - Original discussion: Verified still present:
allow_nixl_telemetry_capture()still removes a falseNIXL_TELEMETRY_ENABLEand leaves enable unset. Since the repository's shared NIXL telemetry helper documents that NIXL can also read telemetry settings fromNIXL_CONFIG_FILE,$HOME/.nixl.cfg, or/etc/nixl.cfg, NIXL 1.4 can still inherit a lower-precedence false enable value that vetoes vLLM'scapture_telemetry=Trueand preserves theget_xfer_telemetryfailure on that path. - Original discussion: Verified still present:
allow_nixl_telemetry_capture()still removes the falseNIXL_TELEMETRY_ENABLEenvironment override and leaves enable unset while pinningNIXL_TELEMETRY_EXPORTER=NOP. On NIXL 1.4 this can expose a lower-precedence false enable value fromNIXL_CONFIG_FILE,$HOME/.nixl.cfg, or/etc/nixl.cfg, so vLLM'scapture_telemetry=Trueremains vetoed and disaggregated transfers can still fail withNIXL_ERR_NO_TELEMETRY.
|
/ok to test 75a1f93 |
⏹️ Dynamo PR CI cancelled — run 37518651685 (attempt 2) on
|
| Other | Jobs |
|---|---|
| dynamo-runtime | ⏹️ 1 |
Failure details
No job failed. 1 job was cancelled: dynamo-runtime / image / Build multi-arch cuda13.0 hit its 1h job timeout, so this was not a fail-fast or manual cancel.
⏹️ dynamo-runtime / image / Build multi-arch cuda13.0: job exceeded 1h0m0s timeout
Job: dynamo-runtime / image / Build multi-arch cuda13.0 · Cancelled step: Build and Push Test Image · Logs: gh run view --job 112536745064 -R ai-dynamo/dynamo --log-failed
##[error]The job has exceeded the maximum execution time of 1h0m0s
##[error]The operation was canceled.
Step Build and Push Image took about 59 minutes (22:39:50 to 23:38:37). The job was then cancelled about 1 minute into Build and Push Test Image, while the test image was still installing requirements.test.txt, and nothing errored before that. The image build ran past the job time limit, which is usually a slow or cold build cache. Rerunning the failed jobs is likely enough.
For agents
{"pr": 15570, "run_id": 37518651685, "run_attempt": 2, "head_sha": "2c1ac6b87b68e6573fd714bb38f60f1b82aee8c5",
"failures": [{"job": "dynamo-runtime / image / Build multi-arch cuda13.0", "job_id": 112536745064, "failed_step": "Build and Push Test Image", "signature": "job exceeded maximum execution time of 1h0m0s (cancelled)", "tests": [], "log_cmd": "gh run view --job 112536745064 -R ai-dynamo/dynamo --log-failed"}]}Posted automatically by Devin for run 37518651685. Updated on every full-CI run of this PR.
|
/ok to test 2c1ac6b |
|
factory: automated evidence record for this pull request. Automated evidence record — validation completeTechnical evidence for this pull request at Validation status: complete Evidence summary: AI review assessment (advisory only): sound. A maintainer review is still required. Validation result: pass. The original failure reproduced on NIXL 1.4.1: the workers reported Evidence audit: complete Commands and results [5/5 validated]Generated from the commands recorded during this run. Check 1Builds the changed Dynamo source and confirms that Python can import its compiled extension. Result: Passed ( Command: Not shown because the exact command contained private run data. Check 2Checks the changed files with the repository's fast lint and formatting commands. Result: Passed ( Command: pre-commit run --files components/src/dynamo/vllm/nixl_telemetry.py components/src/dynamo/vllm/main.py components/src/dynamo/vllm/headless.py components/src/dynamo/vllm/tests/test_vllm_nixl_telemetry.py components/src/dynamo/vllm/tests/test_vllm_unit.pyCheck 3Runs the relevant Python unit tests without requiring a GPU. Result: Passed ( Command: /opt/dynamo/venv/bin/python -m pytest components/src/dynamo/vllm/tests/test_vllm_nixl_telemetry.py components/src/dynamo/vllm/tests/test_vllm_unit.py -q -p no:cacheproviderCheck 4Inspects the changed code when the claim cannot be tested with a local command. Result: Passed ( Command: Not shown because the exact command contained private run data. Check 5Starts separate vLLM prefill and decode workers and checks a disaggregated request. Result: Passed ( Command: Not shown because the exact command contained private run data. |
glamr-agent
left a comment
There was a problem hiding this comment.
Automated AI review — advisory. The inline comments below are the findings. The full review is in a separate comment on this pull request.
|
factory: automated review
Assessment: soundThis PR fixes the HTTP 500 from disaggregated vLLM serving reported in #15565. It does so with a small change in the right layer for this repository. I found no blocking issues and one optional nit. Why it works. The operator sets Checks.
The exact vLLM 0.31.0 image is still proven only by the post-merge Findings
On the open pointsConfig-file precedence. NIXL can still read
Why not catch the error in vLLM (Option A). Option A is the right long-term fix, but the code is in vLLM's Backport. Please cherry-pick this to Requested changesNone required. |
Overview:
Operator-deployed vLLM workers get
NIXL_TELEMETRY_ENABLE=n. On NIXL 1.4 that value vetoescapture_telemetry=True, soget_xfer_telemetryfails every disaggregated KV load withNIXL_ERR_NO_TELEMETRY. That is the GAIE deploy failure in #15565. The same thing happens for any operator vLLM disagg deployment on the current runtime image.Summary
Before the engine spawns, a false
NIXL_TELEMETRY_ENABLEis cleared, along withNIXL_TELEMETRY_EXPORTERandNIXL_TELEMETRY_DIR. With those unset, NIXL honors vLLM's capture request through the in-process NOP sink: transfer telemetry can be read, and nothing is exported. An explicityis left alone. The operator default staysn, so SGLang and the exporter port reservation are unchanged.Details:
allow_nixl_telemetry_capture()treats NIXL's false tokens (n,no,off,false,disable,0) as the veto and removes them.setup_vllm_engineafter the spawn method is set and beforeAsyncLLMstarts, so EngineCore inherits the cleared environment.NIXL_TELEMETRY_PROMETHEUS_PORTis left in place. Nothing binds it unless enable isy.Where should the reviewer start?
components/src/dynamo/vllm/nixl_telemetry.py, then the call incomponents/src/dynamo/vllm/main.py.Validation
python3 -m pytest components/src/dynamo/vllm/tests/test_vllm_nixl_telemetry.py— 12 passed (false tokens, an explicity, an unrecognized value, and an unset enable).Related Issues
Summary by CodeRabbit