-
Notifications
You must be signed in to change notification settings - Fork 61
Specify external DNS IPs in PlanningInput instead of deriving them from the parent blueprint
#9291
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
Merged
Merged
Changes from 12 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
5b0191f
BlueprintBuilder: require caller to provide internal DNS subnet
jgallagher 76cdc3a
Merge branch 'main' into john/prune-blueprint-resource-allocator-1
jgallagher aafec76
first draft of ExternalIpPolicy type
jgallagher 2dceb1c
read external DNS IPs from policy instead of the parent blueprint
jgallagher 2ba1048
add IpRange::overlaps()
jgallagher 8e6e014
add DataStore::policy_external_dns_ips()
jgallagher 42eaa55
separate ExternalIpPolicyBuilder
jgallagher c2fe90a
test fix
jgallagher 82474cd
don't expose raw IP pools slice
jgallagher b92fe08
cargo fmt
jgallagher 34a8be2
typo
jgallagher 3f3f370
rustdoc linkify
jgallagher a7edfe5
test fix
jgallagher 4039a44
Merge branch 'john/prune-blueprint-resource-allocator-1' into john/ex…
jgallagher c385f6d
clean up ExternalIpPolicy confusion about pools and ranges
jgallagher 9aea90e
typo
jgallagher 60ff5b3
expectorate
jgallagher cbc8215
Merge branch 'main' into john/external-dns-ips-in-policy
jgallagher 31572a5
typo
jgallagher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -16,6 +16,8 @@ use nexus_db_model::IpConfig; | |||||
| use nexus_db_model::IpPool; | ||||||
| use nexus_sled_agent_shared::inventory::ZoneKind; | ||||||
| use nexus_types::deployment::BlueprintZoneConfig; | ||||||
| use nexus_types::deployment::BlueprintZoneDisposition; | ||||||
| use nexus_types::deployment::BlueprintZoneType; | ||||||
| use nexus_types::deployment::OmicronZoneExternalIp; | ||||||
| use omicron_common::api::external::Error; | ||||||
| use omicron_common::api::external::IdentityMetadataCreateParams; | ||||||
|
|
@@ -30,8 +32,57 @@ use slog::error; | |||||
| use slog::info; | ||||||
| use slog::warn; | ||||||
| use slog_error_chain::InlineErrorChain; | ||||||
| use std::collections::BTreeSet; | ||||||
| use std::net::IpAddr; | ||||||
|
|
||||||
| impl DataStore { | ||||||
| /// Return the set of external IPs configured for our external DNS servers | ||||||
| /// when the rack was set up. | ||||||
| /// | ||||||
| /// We should have explicit storage for the external IPs on which we run | ||||||
| /// external DNS that an operator can update. Today, we do not: whatever | ||||||
| /// external DNS IPs are provided at rack setup time are the IPs we use | ||||||
| /// forever. (Fixing this is tracked by | ||||||
| /// <https://github.com/oxidecomputer/omicron/issues/8255>.) | ||||||
| pub async fn external_dns_external_ips_specified_by_rack_setup( | ||||||
| &self, | ||||||
| opctx: &OpContext, | ||||||
| ) -> Result<BTreeSet<IpAddr>, Error> { | ||||||
| // We can _implicitly_ determine the set of external DNS IPs provied | ||||||
|
||||||
| // We can _implicitly_ determine the set of external DNS IPs provied | |
| // We can _implicitly_ determine the set of external DNS IPs provided |
jgallagher marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
jgallagher marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
jgallagher marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
jgallagher marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.