Skip to content

Remove OmicronZoneConfig::underlay_address - #6794

Merged
jgallagher merged 18 commits into
mainfrom
john/remove-omicron-zone-config-ip
Oct 24, 2024
Merged

jgallagher merged 18 commits into
mainfrom
john/remove-omicron-zone-config-ip

Conversation

@jgallagher

@jgallagher jgallagher commented Oct 7, 2024 •

Copy link
Copy Markdown
Contributor

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.

@andrewjstone andrewjstone 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.

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

@jgallagher

Copy link
Copy Markdown
Contributor Author

I ran e20aab3 through london, both an upgrade from R11 and as a clean-slate RSS, and both worked fine. I'm going to catch up to main and enable automerge on this one.

@jgallagher
jgallagher marked this pull request as ready for review October 17, 2024 18:31
@jgallagher
jgallagher merged commit f498e47 into main Oct 24, 2024
@jgallagher
jgallagher deleted the john/remove-omicron-zone-config-ip branch October 24, 2024 22:29
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