Skip to content

[sled-agent] apply attached subnets at instance registration - #11557

Merged
sunshowers merged 1 commit into
sunshowers/spr/sled-agent-destructure-instancesledlocalconfig-exhaustively-when-building-instancerunnerfrom
sunshowers/spr/sled-agent-apply-attached-subnets-at-instance-registration
Oct 22, 2026
Merged

sunshowers merged 1 commit into
sunshowers/spr/sled-agent-destructure-instancesledlocalconfig-exhaustively-when-building-instancerunnerfrom
sunshowers/spr/sled-agent-apply-attached-subnets-at-instance-registration

Conversation

@sunshowers

@sunshowers sunshowers commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

When a VMM is registered in Sled Agent, the instance's attached subnets are sent in the InstanceSledLocalConfig. Previously (since #9778), we discarded them in Sled Agent and created the VMM's OPTE ports with no attached subnets. This meant that any traffic to and from the subnets was dropped at the OPTE port.

This bug occurs on every VMM registration for an instance with attached subnets -- certainly starts and restarts, but also (once they are implemented) live migrations.

The good news is that the buggy situation doesn't last very long, because the correct state is fully restored by the attached_subnet_manager background task, which is run every 60 seconds by every Nexus instance. Hooray for reconciliation loops, I guess?

Of course, we should fix the bug. Do this by building the VMM's attached subnets from the registration requests. If a caller lists the same subnet more than once, we reject the registration with a 400. (In a subsequent commit, we'll add a new Sled Agent API version which expresses this constraint in the type system.)

This bug was introduced in #9778, which shipped in v18.

@sunshowers
sunshowers merged commit ff0040c into main Oct 22, 2026
19 checks passed
@sunshowers
sunshowers deleted the sunshowers/spr/sled-agent-apply-attached-subnets-at-instance-registration branch October 22, 2026 16:14
sunshowers added a commit that referenced this pull request Oct 22, 2026
…ap (#11558)

Followup to #11557 which expresses the uniqueness constraint in the type
system.
sunshowers added a commit that referenced this pull request Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants