Skip to content

sled-agent: Remove direct dpd NAT entry creation in service zone startup path - #11073

Merged
jgallagher merged 4 commits into
mainfrom
john/remove-sled-agent-zone-nat-setup
Aug 27, 2026
Merged

jgallagher merged 4 commits into
mainfrom
john/remove-sled-agent-zone-nat-setup

Conversation

@jgallagher

Copy link
Copy Markdown
Contributor

Now that the scrimlet-reconcilers shipped in R22, it's safe to remove this code path: each scrimlet is responsible for configuring NAT entries for all service zones with its own switch zone's dpd, so the individual sled-agents starting service zones no longer need to. This is one of the main goals of #10167.

Closes #9727.

I'll re-test this on a racklette before merging, but it should be good to review - it's basically all deletions.

@jmpesp jmpesp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The direction here looks good. I'm curious what it would look like if this PR was the wrong move - would it mean that something in the deleted lines is not being done by the new reconcilers? This seems unlikely! From what I can gather, if the deleted lines were adding an entry that the reconcilers were not, the reconcile logic would remove that entry, and this would result in a immediately noticed networking problem. If the deleted lines were not adding an entry and the reconcile logic was, then I'd argue that'd be a bug in the deleted logic!

Did you re-test on a racklette already?

@jgallagher

Copy link
Copy Markdown
Contributor Author

The direction here looks good. I'm curious what it would look like if this PR was the wrong move - would it mean that something in the deleted lines is not being done by the new reconcilers? This seems unlikely! From what I can gather, if the deleted lines were adding an entry that the reconcilers were not, the reconcile logic would remove that entry, and this would result in a immediately noticed networking problem. If the deleted lines were not adding an entry and the reconcile logic was, then I'd argue that'd be a bug in the deleted logic!

I think all of this is right, and is phrased in a way I hadn't thought about it before (that also makes me more confident about landing this). Thanks!

Did you re-test on a racklette already?

I had not, but did today. The fundamental things I'm most concerned about both worked fine:

  • RSS -> console access
  • cold boot -> console access

each of which exercises NAT entries to all three of the service types that need them.

@jgallagher
jgallagher merged commit b7fb743 into main Aug 27, 2026
20 checks passed
@jgallagher
jgallagher deleted the john/remove-sled-agent-zone-nat-setup branch August 27, 2026 20:30
sunshowers added a commit that referenced this pull request Nov 10, 2026
The exclusion was a workaround for sled-agent's pinned v1 dpd-client
(#9705). That pin was removed in #11073, which closed #9727, and every
workspace crate now uses dpd-client as a workspace dependency.
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.

Unpin sled-agent dendrite client

2 participants