fix: BF4 part number and card1 difference for DGX VR BF4#3055
fix: BF4 part number and card1 difference for DGX VR BF4#3055hakhondzadeh wants to merge 1 commit into
Conversation
WalkthroughAdds a fallback mechanism to ChangesBF4 DPU part number fallback
Estimated code review effort: 2 (Simple) | ~10 minutes Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
crates/api-model/src/site_explorer/mod.rs (1)
937-954: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winUse the shared DPU chassis matcher here as well.
machine_id_serial_numberstill hardcodesBluefield_BMC, so BF4 trays that only exposeBlueField_BMC_0will not produce a machine ID even though this codebase already treats both chassis IDs as valid elsewhere. Reusingis_dpu_product_chassis_idkeeps the BF4 serial fallback correct and consistent.🤖 Prompt for 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. In `@crates/api-model/src/site_explorer/mod.rs` around lines 937 - 954, The machine ID serial fallback in machine_id_serial_number still hardcodes the Bluefield_BMC chassis ID, so BF4 systems exposing BlueField_BMC_0 will be missed. Update the DPU fallback in this method to reuse the shared is_dpu_product_chassis_id matcher instead of checking a single literal chassis id, while keeping the existing trim and non-empty filtering behavior.
🤖 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.
Outside diff comments:
In `@crates/api-model/src/site_explorer/mod.rs`:
- Around line 937-954: The machine ID serial fallback in
machine_id_serial_number still hardcodes the Bluefield_BMC chassis ID, so BF4
systems exposing BlueField_BMC_0 will be missed. Update the DPU fallback in this
method to reuse the shared is_dpu_product_chassis_id matcher instead of checking
a single literal chassis id, while keeping the existing trim and non-empty
filtering behavior.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: f30f257f-5c00-4f0a-adb1-231b9e2e1534
📒 Files selected for processing (1)
crates/api-model/src/site_explorer/mod.rs
🔍 Container Scan Summary
Per-CVE detail lives in the per-service |
VR BF4 DPU BMCs on Vera Rubin NVL72 trays expose the product part number on Chassis/Bluefield_BMC or Chassis/BlueField_BMC_0, not on Card1. Host trays use SKU prefix 900-9D4A4, which was not treated as BF4.
Related issues
(https://jirasw.nvidia.com/browse/FORGE-8111)
Type of Change
Testing
Additional notes:
curl -sk 'https://10.73.114.70/redfish/v1/Chassis/BlueField_BMC_0' | grep -i PartNumber "PartNumber": "900-9D4A4-00CB-TS4",curl -sk 'https://10.73.114.70/redfish/v1/Chassis/Card1' { "error": { "@Message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The requested resource of type Chassis named 'Card1' was not found.",