Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove OmicronZoneConfig::underlay_address #6794

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

jgallagher
Copy link
Contributor

@jgallagher jgallagher commented Oct 7, 2024

This field (an IP only, no port) was effectively duplicated by every OmicronZoneType variant, which themselves carry one (or more than one) SocketAddrV6 whose IP was always expected to match its containing OmicronZoneConfig's underlay_address, and we had parts of sled-agent that was relying on that fact.

This is purely a cleanup PR that removes the field. Most of the changes here are mechanical: removing the field and instead using the socket address from within OmicronZoneType instead. The changes to sled-agent/src/services.rs warrant the closest look, because these were the spots where we were combining underlay_address with constant port numbers and ignoring the full socket address.

(We're still constructing socket addresses via constant port numbers for some zone types that run multiple servers on different ports; these are all marked TODO-john, and I'll update those comments to refer to a new issue shortly.) Filed #6796

I'm marking this as a draft both because it's a change to a fairly fundamental sled-agent type that I'd like to test on real hardware before merging, and because it should land after we cut R11. But this passes CI and a4x2, so I believe it's ready for review despite its draft status.

Fixes #6651.

Copy link
Contributor

@andrewjstone andrewjstone left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for taking care of this @jgallagher.

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.

Sled-agent service creation ignores the provided addresses
2 participants