Commit 21d47c5
authored
[reconfigurator] Remove spicy blueprint -> sled-agent From impls (#7505)
This is followup from #7308 and
#7500 (comment):
* Remove `From<BlueprintZonesConfig> for OmicronZonesConfig`. This
included expunged zones, but thankfully had no callers.
* Change `BlueprintZonesConfig::to_omicron_zones_config(filter)` to
`BlueprintZonesConfig::into_running_omicron_zones_config()` (no `filter`
argument). All the callers of this method were passing
`BlueprintZoneFilter::ShouldBeRunning`, and I don't think there's a
reason to use any other filter?
* Remove `From<BlueprintPhysicalDisksConfig> for
OmicronPhysicalDisksConfig` (which included expunged disks), and replace
it with `BlueprintPhysicalDisksConfig::into_in_service_disks()`. This
one _did_ have callers, including the blueprint executor, but I think
we've avoided problems because the planner current [drops disks if the
incoming planning input says they're not in
service](https://github.com/oxidecomputer/omicron/blob/3ae42bf76cb9b55993705b817157e4f60935b6dd/nexus/reconfigurator/planning/src/blueprint_builder/builder.rs#L1090-L1097).
I'm not sure that planner behavior is right, and might change with
#7286, so it seemed safer to go ahead and fix this now.1 parent 0c6ab09 commit 21d47c5
File tree
7 files changed
+60
-61
lines changed- nexus
- reconfigurator
- execution/src
- planning/src
- types/src
- sled-agent/src/rack_setup
7 files changed
+60
-61
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
197 | 188 | | |
198 | 189 | | |
199 | 190 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
68 | | - | |
69 | | - | |
| 67 | + | |
| 68 | + | |
70 | 69 | | |
71 | 70 | | |
72 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
490 | 489 | | |
491 | 490 | | |
492 | 491 | | |
493 | | - | |
494 | | - | |
495 | | - | |
| 492 | + | |
496 | 493 | | |
497 | 494 | | |
498 | 495 | | |
| |||
546 | 543 | | |
547 | 544 | | |
548 | 545 | | |
549 | | - | |
| 546 | + | |
550 | 547 | | |
551 | 548 | | |
552 | 549 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
976 | 976 | | |
977 | 977 | | |
978 | 978 | | |
979 | | - | |
980 | | - | |
981 | | - | |
| 979 | + | |
| 980 | + | |
982 | 981 | | |
983 | 982 | | |
984 | 983 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | 550 | | |
560 | | - | |
561 | | - | |
| 551 | + | |
562 | 552 | | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
569 | 560 | | |
570 | 561 | | |
571 | 562 | | |
572 | 563 | | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
577 | 574 | | |
578 | 575 | | |
579 | 576 | | |
| |||
899 | 896 | | |
900 | 897 | | |
901 | 898 | | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
902 | 926 | | |
903 | 927 | | |
904 | 928 | | |
| |||
927 | 951 | | |
928 | 952 | | |
929 | 953 | | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | | - | |
937 | | - | |
938 | | - | |
939 | | - | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | 954 | | |
944 | 955 | | |
945 | 956 | | |
| |||
950 | 961 | | |
951 | 962 | | |
952 | 963 | | |
953 | | - | |
| 964 | + | |
954 | 965 | | |
955 | 966 | | |
956 | 967 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
| 347 | + | |
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| |||
0 commit comments