Skip to content

Support multiple external addresses in database inventory tables - #11114

Open
bnaecker wants to merge 1 commit into
mainfrom
ben/multiple-eips-in-database-inventory
Open

Support multiple external addresses in database inventory tables#11114
bnaecker wants to merge 1 commit into
mainfrom
ben/multiple-eips-in-database-inventory

Conversation

@bnaecker

Copy link
Copy Markdown
Collaborator
  • Add a new table inv_omicron_sled_config_zone_external_ip to store the external IP information for inventoried zones in inv_omicron_sled_config_zone. This lets us support multiple IPs in the table, each with a reference back to the inventory collection and zone it came from.
  • Migrate schema and old data. This moves the "second service IP" information to the new table, only for the zones where that IP is an external address (Nexus, External DNS, and Boundary NTP). This also drops the now-unused SNAT related columns, but leaves the second_service_ip column for things like internal DNS's additional underlay address.
  • Add model types and update a bunch of callsites and tests.

@bnaecker
bnaecker force-pushed the ben/multiple-eips-in-database-inventory branch from 1cf85ce to c22a827 Compare August 19, 2026 23:51
- Add a new table `inv_omicron_sled_config_zone_external_ip` to store
  the external IP information for inventoried zones in
  `inv_omicron_sled_config_zone`. This lets us support multiple IPs in
  the table, each with a reference back to the inventory collection and
  zone it came from.
- Migrate schema and old data. This moves the "second service IP"
  information to the new table, only for the zones where that IP is an
  external address (Nexus, External DNS, and Boundary NTP). This also
  drops the now-unused SNAT related columns, but leaves the
  `second_service_ip` column for things like internal DNS's additional
  underlay address.
- Add model types and update a bunch of callsites and tests.
@bnaecker
bnaecker force-pushed the ben/multiple-eips-in-database-inventory branch from c22a827 to 1ed5074 Compare August 20, 2026 02:55
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.

1 participant