File tree Expand file tree Collapse file tree 4 files changed +22
-8
lines changed
dev-tools/reconfigurator-cli/tests/output
nexus/types/src/deployment/execution Expand file tree Collapse file tree 4 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ to: blueprint af934083-59b5-4bf6-8966-6fb5292c29e1
510
510
511
511
internal DNS:
512
512
DNS zone: "control-plane.oxide.internal" (unchanged)
513
- unchanged names: 53 (records: 76 )
513
+ unchanged names: 53 (records: 75 )
514
514
515
515
external DNS:
516
516
DNS zone: "oxide.example" (unchanged)
Original file line number Diff line number Diff line change @@ -666,7 +666,7 @@ internal DNS:
666
666
- AAAA fd00:1122:3344:107::22
667
667
- name: c800ba17-240e-4b72-8ae6-afc30b6baa96.host (records: 1)
668
668
- AAAA fd00:1122:3344:107::21
669
- unchanged names: 52 (records: 70 )
669
+ unchanged names: 52 (records: 69 )
670
670
671
671
external DNS:
672
672
DNS zone: "oxide.example" (unchanged)
@@ -1015,7 +1015,7 @@ to: blueprint ce365dff-2cdb-4f35-a186-b15e20e1e700
1015
1015
1016
1016
internal DNS:
1017
1017
DNS zone: "control-plane.oxide.internal" (unchanged)
1018
- unchanged names: 53 (records: 76 )
1018
+ unchanged names: 53 (records: 75 )
1019
1019
1020
1020
external DNS:
1021
1021
DNS zone: "oxide.example" (unchanged)
Original file line number Diff line number Diff line change @@ -92,6 +92,9 @@ target release (generation 2): 0.0.1 (system-update-v0.0.1.zip)
92
92
artifact: 7776db817d1f1b1a2f578050742e33bd4e805a4c76f36bce84dcb509b900249c switch_rot_image_b (fake-switch-rot version 0.0.1)
93
93
artifact: 0686443d50db2247077dc70b6543cea9a90a9792de00e06c06cff4c91fa5a4a8 switch_rot_bootloader (fake-switch-rot-bootloader version 0.0.1)
94
94
artifact: 657aaebc9c2f451446af0411a67a4bd057f39fa1b8a7fdc429ca4a2facd9344c installinator_document (installinator_document version 0.0.1)
95
+ active nexus zone generation: 1
96
+ active nexus zones: inferred from generation
97
+ not-yet nexus zones: inferred from generation
95
98
planner config:
96
99
add zones with mupdate override: false
97
100
Original file line number Diff line number Diff line change @@ -171,18 +171,29 @@ pub fn blueprint_internal_dns_config(
171
171
// replicated synchronously or atomically to all instances. That is: a
172
172
// consumer should be careful when fetching an artifact about whether they
173
173
// really can just pick any backend of this service or not.
174
+ //
175
+ // We currently limit the repo depot backends to keep us under current DNS
176
+ // limits. See oxidecomputer/omicron#6342. This number is chosen somewhat
177
+ // arbitrarily: it's small enough to fit under the DNS limit, but enough
178
+ // to give some redundancy. We're implicitly assuming iteration over
179
+ // `sleds_by_id` will be stable so that we're not thrashing on the DNS
180
+ // names.
181
+ let mut nrepo_depots = 6 ;
174
182
for sled in sleds_by_id {
175
183
if !sled. policy ( ) . matches ( SledFilter :: TufArtifactReplication ) {
176
184
continue ;
177
185
}
178
186
179
187
let dns_sled = dns_builder
180
188
. host_sled ( sled. id ( ) , * sled. sled_agent_address ( ) . ip ( ) ) ?;
181
- dns_builder. service_backend_sled (
182
- ServiceName :: RepoDepot ,
183
- & dns_sled,
184
- sled. repo_depot_address ( ) . port ( ) ,
185
- ) ?;
189
+ if nrepo_depots > 0 {
190
+ dns_builder. service_backend_sled (
191
+ ServiceName :: RepoDepot ,
192
+ & dns_sled,
193
+ sled. repo_depot_address ( ) . port ( ) ,
194
+ ) ?;
195
+ nrepo_depots -= 1 ;
196
+ }
186
197
}
187
198
188
199
Ok ( dns_builder. build_zone ( ) )
You can’t perform that action at this time.
0 commit comments