Commit 33d4f82
authored
[sled-agent] Remove chicken switch and always destroy orphaned Omicron datasets (#8895)
The main point of this PR is that the sled-agent config reconciler now
always attempts to destroy datasets it believes have been expunged
instead of defaulting to reporting them unless an operator has toggled a
chicken switch. (See the comments on `datasets_destroy_orphans()` for
details; this is pretty specific to only destroy datasets whose names we
understand.) We wanted to ship "report only" in R16 and then confirm
during upgrades that this wasn't showing any surprises; now that R16 is
out the door we can turn this on all the time.
This also (starts to? attempts to?) removes the sled-agent API endpoints
for interacting with the chicken switches. The openapi xtask yelled at
me for this, so instead I followed the guide for removing endpoints.
This was almost entirely painless, except that I'd already (locally)
committed the change to remove the endpoints mixed in with other things,
so I had to dig back out the endpoints and the types they used. Kudos to
all involved for the tooling and instructions here!
Closes #6177. Closes #7312 (no longer needed). Closes #7313.1 parent 683a29a commit 33d4f82
File tree
15 files changed
+8429
-214
lines changed- clients/sled-agent-client/src
- dev-tools/omdb
- src/bin/omdb
- tests
- nexus/mgs-updates/src/test_util
- openapi/sled-agent
- sled-agent
- api/src
- config-reconciler/src
- reconciler_task
- src
- sim
15 files changed
+8429
-214
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
334 | 347 | | |
335 | 348 | | |
336 | 349 | | |
| |||
353 | 366 | | |
354 | 367 | | |
355 | 368 | | |
| 369 | + | |
356 | 370 | | |
357 | 371 | | |
358 | 372 | | |
| |||
364 | 378 | | |
365 | 379 | | |
366 | 380 | | |
| 381 | + | |
367 | 382 | | |
368 | 383 | | |
369 | 384 | | |
| |||
375 | 390 | | |
376 | 391 | | |
377 | 392 | | |
| 393 | + | |
378 | 394 | | |
379 | 395 | | |
380 | 396 | | |
| |||
390 | 406 | | |
391 | 407 | | |
392 | 408 | | |
| 409 | + | |
393 | 410 | | |
394 | 411 | | |
395 | 412 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
| |||
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 40 | | |
48 | 41 | | |
49 | 42 | | |
| |||
58 | 51 | | |
59 | 52 | | |
60 | 53 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 54 | | |
68 | 55 | | |
69 | 56 | | |
| |||
84 | 71 | | |
85 | 72 | | |
86 | 73 | | |
87 | | - | |
| 74 | + | |
88 | 75 | | |
89 | 76 | | |
90 | 77 | | |
| |||
105 | 92 | | |
106 | 93 | | |
107 | 94 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | 95 | | |
132 | 96 | | |
133 | 97 | | |
| |||
193 | 157 | | |
194 | 158 | | |
195 | 159 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1063 | 1063 | | |
1064 | 1064 | | |
1065 | 1065 | | |
1066 | | - | |
1067 | | - | |
1068 | | - | |
1069 | | - | |
1070 | | - | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
1071 | 1069 | | |
1072 | 1070 | | |
1073 | 1071 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
127 | 133 | | |
128 | 134 | | |
129 | 135 | | |
| |||
0 commit comments