Commit 28bb4b0
authored
[sled-agent] Report boot partition contents of M.2 drives in inventory (PR 2/2) (#8451)
Add a `BootPartitionContents` structure to the inventory reported by the sled-agent-config-reconciler which contains:
* which slot we booted from (A or B)
* the contents of each slot
each of which is a `Result` in case we failed to determine any of those
three items. In practice, I'd expect us to basically never fail to
report which slot we booted from, and to only fail on the contents of a
slot if that slot doesn't have a valid phase 2 image in it.1 parent 765dbb0 commit 28bb4b0
File tree
18 files changed
+1248
-143
lines changed- dev-tools/omdb
- src/bin/omdb
- nexus
- db-model/src
- db-queries/src/db/datastore
- db-schema/src
- inventory/src
- tests/integration_tests
- openapi
- schema/crdb
- boot-partitions-inventory
- sled-agent/config-reconciler/src
18 files changed
+1248
-143
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
| |||
178 | 182 | | |
179 | 183 | | |
180 | 184 | | |
| 185 | + | |
181 | 186 | | |
182 | 187 | | |
183 | 188 | | |
| |||
7361 | 7366 | | |
7362 | 7367 | | |
7363 | 7368 | | |
7364 | | - | |
| 7369 | + | |
| 7370 | + | |
| 7371 | + | |
| 7372 | + | |
| 7373 | + | |
| 7374 | + | |
| 7375 | + | |
| 7376 | + | |
| 7377 | + | |
| 7378 | + | |
| 7379 | + | |
| 7380 | + | |
7365 | 7381 | | |
7366 | 7382 | | |
7367 | 7383 | | |
7368 | 7384 | | |
7369 | 7385 | | |
7370 | 7386 | | |
7371 | | - | |
| 7387 | + | |
7372 | 7388 | | |
7373 | 7389 | | |
7374 | | - | |
| 7390 | + | |
7375 | 7391 | | |
7376 | 7392 | | |
7377 | 7393 | | |
7378 | 7394 | | |
7379 | | - | |
| 7395 | + | |
7380 | 7396 | | |
7381 | | - | |
| 7397 | + | |
7382 | 7398 | | |
7383 | 7399 | | |
7384 | 7400 | | |
7385 | | - | |
7386 | | - | |
7387 | | - | |
7388 | | - | |
7389 | | - | |
7390 | | - | |
7391 | | - | |
| 7401 | + | |
| 7402 | + | |
| 7403 | + | |
7392 | 7404 | | |
7393 | 7405 | | |
7394 | 7406 | | |
| |||
7438 | 7450 | | |
7439 | 7451 | | |
7440 | 7452 | | |
| 7453 | + | |
| 7454 | + | |
| 7455 | + | |
| 7456 | + | |
| 7457 | + | |
| 7458 | + | |
| 7459 | + | |
| 7460 | + | |
| 7461 | + | |
| 7462 | + | |
| 7463 | + | |
| 7464 | + | |
| 7465 | + | |
| 7466 | + | |
| 7467 | + | |
| 7468 | + | |
| 7469 | + | |
| 7470 | + | |
| 7471 | + | |
| 7472 | + | |
| 7473 | + | |
| 7474 | + | |
| 7475 | + | |
| 7476 | + | |
| 7477 | + | |
| 7478 | + | |
| 7479 | + | |
| 7480 | + | |
| 7481 | + | |
| 7482 | + | |
| 7483 | + | |
| 7484 | + | |
| 7485 | + | |
| 7486 | + | |
| 7487 | + | |
| 7488 | + | |
| 7489 | + | |
| 7490 | + | |
| 7491 | + | |
| 7492 | + | |
| 7493 | + | |
| 7494 | + | |
| 7495 | + | |
| 7496 | + | |
| 7497 | + | |
| 7498 | + | |
| 7499 | + | |
| 7500 | + | |
| 7501 | + | |
| 7502 | + | |
| 7503 | + | |
7441 | 7504 | | |
7442 | 7505 | | |
7443 | 7506 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | | - | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| 143 | + | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
| |||
202 | 204 | | |
203 | 205 | | |
204 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
205 | 217 | | |
206 | 218 | | |
207 | 219 | | |
208 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
209 | 258 | | |
210 | 259 | | |
211 | 260 | | |
| |||
0 commit comments