fix: Use product_name to identify BF4 DPU.#3978
Open
abvarshney-nv wants to merge 1 commit into
Open
Conversation
Contributor
Summary by CodeRabbit
WalkthroughBF4/DPU ownership detection now uses DPU topology product data. DPU UEFI setup distinguishes updated, unavailable, and failed credential operations, changing reboot and convergence-record behavior accordingly. ChangesDPU platform and credential flow
Estimated code review effort: 4 (Complex) | ~35 minutes Sequence Diagram(s)sequenceDiagram
participant DpuMachineStateHandler
participant RedfishClientPool
participant DPU
participant Database
DpuMachineStateHandler->>RedfishClientPool: uefi_setup(...)
RedfishClientPool->>DPU: change_uefi_password(...)
DPU-->>RedfishClientPool: success or error
RedfishClientPool-->>DpuMachineStateHandler: Ok(Some), Ok(None), or error
DpuMachineStateHandler->>DPU: trigger_reboot_if_needed on error or update
DpuMachineStateHandler->>Database: record_device_converged for staged updates
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
bcavnvidia
approved these changes
Jul 23, 2026
Contributor
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@crates/machine-controller/src/handler.rs`:
- Around line 4295-4298: Update the format string assigned to msg in the
uefi_setup error-handling path to remove the redundant “failed” phrasing, while
preserving the DPU ID and underlying error details.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: c48c0228-7a70-410b-88b6-3f8250dc76b9
📒 Files selected for processing (2)
crates/machine-controller/src/handler.rscrates/redfish/src/libredfish/mod.rs
abvarshney-nv
enabled auto-merge (squash)
July 23, 2026 12:34
12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use product_name to identify BF4 DPU. Also avoid dpu reboot if no BIOS operation is touched.
Related issues
#3863
Type of Change
Breaking Changes
Testing
Additional Notes