fix: 3024, offline non-MLX interfaces so we skip onboard NICs#4120
fix: 3024, offline non-MLX interfaces so we skip onboard NICs#4120stoo-davies wants to merge 3 commits into
Conversation
Signed-off-by: Stoo Davies <189670495+stoo-davies@users.noreply.github.com>
Signed-off-by: Stoo Davies <189670495+stoo-davies@users.noreply.github.com>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughAdds a Scout NIC filtering helper that preserves loopback and Mellanox interfaces, packages it into both Scout images with ChangesScout NIC filtering
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant ScoutImage
participant forge-scout-pre.sh
participant forge-scout-network.sh
participant SysfsNet
participant ip
ScoutImage->>forge-scout-pre.sh: Start boot preparation
forge-scout-pre.sh->>forge-scout-network.sh: Invoke NIC filtering
forge-scout-network.sh->>SysfsNet: Inspect network interfaces
SysfsNet-->>forge-scout-network.sh: Return interface and vendor data
forge-scout-network.sh->>ip: Disable non-preserved interfaces
ip-->>forge-scout-network.sh: Return operation status
forge-scout-network.sh-->>forge-scout-pre.sh: Return success or failure
forge-scout-pre.sh-->>ScoutImage: Continue startup
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
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
`@pxe/mkosi.profiles/scout-oss-aarch64/mkosi.extra/opt/forge/forge-scout-pre.sh`:
- Line 41: Move the /opt/forge/forge-scout-network.sh invocation in both
forge-scout-pre.sh variants to after the final udevadm settle and module-loading
steps, so all interfaces are filtered; alternatively, make its non-zero exit
fail pre-start instead of suppressing it with a warning. Apply the same change
to
pxe/mkosi.profiles/scout-oss-aarch64/mkosi.extra/opt/forge/forge-scout-pre.sh:41-41
and
pxe/mkosi.profiles/scout-oss-x86_64/mkosi.extra/opt/forge/forge-scout-pre.sh:41-41.
🪄 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: 04d3dfda-a8b7-4a96-a3c2-4c4065428296
📒 Files selected for processing (8)
pxe/Makefile.tomlpxe/common_files/forge-scout-network.shpxe/mkosi.profiles/scout-oss-aarch64/mkosi.confpxe/mkosi.profiles/scout-oss-aarch64/mkosi.extra/opt/forge/forge-scout-pre.shpxe/mkosi.profiles/scout-oss-aarch64/mkosi.postinst.chrootpxe/mkosi.profiles/scout-oss-x86_64/mkosi.confpxe/mkosi.profiles/scout-oss-x86_64/mkosi.extra/opt/forge/forge-scout-pre.shpxe/mkosi.profiles/scout-oss-x86_64/mkosi.postinst.chroot
Signed-off-by: Stoo Davies <189670495+stoo-davies@users.noreply.github.com>
|
/ok to test 9ebbba5 |
|
🌿 Preview your docs: https://nvidia-preview-pull-request-4120.docs.buildwithfern.com/infra-controller |
Fixes issue 3024.
We will offline any non-MLX interfaces before starting forge-dpu-agent, so we don't try to register via the wrong IP address.
Seen on a GB300 setup where the onboard NIC was connected up, and showed up first in the routing table.
Related issues
#3024
Type of Change
Breaking Changes
Testing
Additional Notes
Tested on an x86 host, a GB200 and a GB300.
The GB300 test below was one of the machines we hit the original bug on.
Also adds the anynic kernel command line arg to skip the checks, useful for booting from test interfaces.