Commit cdf65d1
[reconfigurator] Fix assert_planning_makes_no_changes() (#7512)
Despite its name, this test function didn't actually invoke the planner.
Now it does, and this fixes up some tests that now fail (and changes the
behavior of the planner in one case where the test failure arguably
indicated some planner misbehavior).
The specific planner change: Previously, if we added an NTP zone to a
sled, we considered that sled ineligible for any other zones (consistent
with the sled-agent behavior of refusing to start zones if time isn't
sync'd yet). This PR relaxes that slightly: if we're adding an NTP zone
to a sled and that sled already has other zones that needed time to be
sync'd, we do consider it eligible. This avoids having to make multiple
planner iterations to repopulate a sled that had a subset of disks/zones
expunged, while maintaining the existing behavior for new sleds being
added.
I'm not totally convinced that the existing behavior for new sleds is
necessary; since we're only waiting for the presence of an NTP zone, not
an inventory report that time is actually sync'd, I'm not sure there's a
meaningful difference to requiring two planning iterations instead of
one to place extra zones. But I don't have a reason to propose changing
it or testing it other than "seems a little over-cautious", so it seems
fine to leave it.1 parent ce67d90 commit cdf65d1
File tree
3 files changed
+150
-105
lines changed- nexus
- reconfigurator/planning/src
- blueprint_builder
- types/src/deployment
3 files changed
+150
-105
lines changedLines changed: 18 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2057 | 2057 | | |
2058 | 2058 | | |
2059 | 2059 | | |
| 2060 | + | |
2060 | 2061 | | |
2061 | | - | |
2062 | 2062 | | |
2063 | 2063 | | |
2064 | 2064 | | |
| |||
2087 | 2087 | | |
2088 | 2088 | | |
2089 | 2089 | | |
2090 | | - | |
2091 | | - | |
2092 | | - | |
2093 | | - | |
2094 | | - | |
2095 | | - | |
2096 | | - | |
2097 | | - | |
2098 | | - | |
2099 | | - | |
2100 | | - | |
2101 | | - | |
2102 | | - | |
2103 | | - | |
2104 | | - | |
2105 | | - | |
2106 | | - | |
2107 | | - | |
2108 | | - | |
2109 | | - | |
2110 | | - | |
2111 | | - | |
2112 | | - | |
2113 | | - | |
2114 | | - | |
2115 | | - | |
2116 | | - | |
2117 | | - | |
2118 | 2090 | | |
2119 | 2091 | | |
2120 | 2092 | | |
| |||
2267 | 2239 | | |
2268 | 2240 | | |
2269 | 2241 | | |
| 2242 | + | |
2270 | 2243 | | |
2271 | 2244 | | |
2272 | 2245 | | |
| |||
2388 | 2361 | | |
2389 | 2362 | | |
2390 | 2363 | | |
2391 | | - | |
2392 | | - | |
2393 | | - | |
2394 | | - | |
2395 | | - | |
2396 | | - | |
2397 | | - | |
2398 | | - | |
2399 | 2364 | | |
2400 | 2365 | | |
2401 | 2366 | | |
| |||
2840 | 2805 | | |
2841 | 2806 | | |
2842 | 2807 | | |
2843 | | - | |
| 2808 | + | |
2844 | 2809 | | |
2845 | | - | |
2846 | | - | |
2847 | | - | |
| 2810 | + | |
2848 | 2811 | | |
2849 | 2812 | | |
2850 | 2813 | | |
| 2814 | + | |
| 2815 | + | |
| 2816 | + | |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
2851 | 2827 | | |
2852 | 2828 | | |
2853 | 2829 | | |
| |||
2895 | 2871 | | |
2896 | 2872 | | |
2897 | 2873 | | |
| 2874 | + | |
2898 | 2875 | | |
2899 | 2876 | | |
2900 | 2877 | | |
| |||
0 commit comments