Commit 84e9c27
authored
Remove ability to generate a Blueprint from an inventory collection (#5583)
We want to add information in blueprints, particularly
`BlueprintZoneConfig` and `BlueprintZoneType`, that is not present in
the sled-agent types `OmicronZoneConfig` and `OmicronZoneType`. Today on
main conversion between those types is bidirectional. As we add to
blueprints, we will continue to be able to convert a
`BlueprintZoneConfig` into an `OmicronZoneConfig`, but the opposite
direction will become more and more difficult as callers need to provide
the additional information required for blueprints.
We have enough users of the inventory -> blueprint direction that it's
quite painful to try to add to blueprints, so this PR attempts to knock
out one of the more common uses: converting an inventory collection into
a blueprint via `BlueprintBuilder::build_initial_from_collection()`.
This method is removed, and all the remaining changes are fallout from
that. Most uses of this have been replaced by either the blueprint
produced by `ExampleSystem` or the new
`BlueprintBuilder::build_empty_with_sleds()` helper for constructing an
empty blueprint. One test needed the full blueprint-from-inventory, so
that one actually gained a new use of converting OmicronZoneConfig ->
BlueprintZoneConfig. (Not ideal, but fine for now!)1 parent a080dff commit 84e9c27
File tree
16 files changed
+448
-906
lines changed- dev-tools
- omdb/src/bin/omdb
- reconfigurator-cli/src
- nexus
- db-queries/src/db/datastore
- reconfigurator
- execution/src
- planning
- src
- blueprint_builder
- tests/output
- src
- app
- internal_api
- types/src
- openapi
16 files changed
+448
-906
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | 100 | | |
103 | 101 | | |
104 | 102 | | |
| |||
361 | 359 | | |
362 | 360 | | |
363 | 361 | | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | 362 | | |
374 | 363 | | |
375 | 364 | | |
| |||
1134 | 1123 | | |
1135 | 1124 | | |
1136 | 1125 | | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | 1126 | | |
1158 | 1127 | | |
1159 | 1128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | 317 | | |
321 | 318 | | |
322 | 319 | | |
| |||
374 | 371 | | |
375 | 372 | | |
376 | 373 | | |
377 | | - | |
378 | | - | |
379 | 374 | | |
380 | 375 | | |
381 | 376 | | |
| |||
718 | 713 | | |
719 | 714 | | |
720 | 715 | | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | 716 | | |
754 | 717 | | |
755 | 718 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1263 | 1263 | | |
1264 | 1264 | | |
1265 | 1265 | | |
| 1266 | + | |
1266 | 1267 | | |
1267 | 1268 | | |
1268 | 1269 | | |
1269 | 1270 | | |
1270 | 1271 | | |
1271 | | - | |
1272 | 1272 | | |
1273 | 1273 | | |
1274 | 1274 | | |
| |||
1279 | 1279 | | |
1280 | 1280 | | |
1281 | 1281 | | |
1282 | | - | |
1283 | 1282 | | |
1284 | 1283 | | |
1285 | 1284 | | |
| |||
1288 | 1287 | | |
1289 | 1288 | | |
1290 | 1289 | | |
| 1290 | + | |
1291 | 1291 | | |
1292 | 1292 | | |
1293 | 1293 | | |
| |||
1359 | 1359 | | |
1360 | 1360 | | |
1361 | 1361 | | |
1362 | | - | |
1363 | | - | |
1364 | | - | |
1365 | | - | |
1366 | | - | |
1367 | | - | |
1368 | | - | |
1369 | | - | |
1370 | | - | |
1371 | | - | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
1372 | 1369 | | |
1373 | | - | |
1374 | | - | |
| 1370 | + | |
| 1371 | + | |
1375 | 1372 | | |
1376 | 1373 | | |
1377 | 1374 | | |
1378 | | - | |
1379 | | - | |
1380 | | - | |
1381 | | - | |
1382 | | - | |
1383 | | - | |
1384 | | - | |
1385 | | - | |
1386 | | - | |
1387 | | - | |
1388 | | - | |
1389 | | - | |
1390 | | - | |
1391 | | - | |
1392 | | - | |
1393 | | - | |
1394 | | - | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
1395 | 1385 | | |
1396 | | - | |
1397 | | - | |
1398 | | - | |
1399 | | - | |
1400 | | - | |
1401 | | - | |
1402 | | - | |
1403 | | - | |
1404 | | - | |
1405 | | - | |
1406 | | - | |
1407 | | - | |
1408 | | - | |
1409 | | - | |
1410 | | - | |
1411 | | - | |
1412 | | - | |
1413 | | - | |
1414 | | - | |
1415 | | - | |
1416 | | - | |
1417 | | - | |
1418 | | - | |
1419 | | - | |
1420 | | - | |
| 1386 | + | |
| 1387 | + | |
1421 | 1388 | | |
1422 | 1389 | | |
1423 | 1390 | | |
| |||
1442 | 1409 | | |
1443 | 1410 | | |
1444 | 1411 | | |
1445 | | - | |
1446 | | - | |
1447 | | - | |
1448 | | - | |
1449 | | - | |
1450 | | - | |
1451 | | - | |
| 1412 | + | |
| 1413 | + | |
1452 | 1414 | | |
1453 | 1415 | | |
1454 | | - | |
1455 | | - | |
| 1416 | + | |
1456 | 1417 | | |
1457 | 1418 | | |
1458 | 1419 | | |
| |||
1471 | 1432 | | |
1472 | 1433 | | |
1473 | 1434 | | |
1474 | | - | |
| 1435 | + | |
1475 | 1436 | | |
1476 | 1437 | | |
1477 | 1438 | | |
| |||
1501 | 1462 | | |
1502 | 1463 | | |
1503 | 1464 | | |
| 1465 | + | |
1504 | 1466 | | |
1505 | | - | |
| 1467 | + | |
1506 | 1468 | | |
1507 | 1469 | | |
1508 | 1470 | | |
1509 | 1471 | | |
1510 | | - | |
| 1472 | + | |
| 1473 | + | |
1511 | 1474 | | |
1512 | 1475 | | |
1513 | 1476 | | |
| |||
1632 | 1595 | | |
1633 | 1596 | | |
1634 | 1597 | | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
1635 | 1602 | | |
1636 | 1603 | | |
1637 | | - | |
1638 | | - | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
1639 | 1615 | | |
1640 | 1616 | | |
1641 | 1617 | | |
| |||
1757 | 1733 | | |
1758 | 1734 | | |
1759 | 1735 | | |
1760 | | - | |
1761 | | - | |
1762 | | - | |
1763 | | - | |
1764 | | - | |
1765 | | - | |
| 1736 | + | |
1766 | 1737 | | |
1767 | 1738 | | |
1768 | | - | |
1769 | | - | |
| 1739 | + | |
1770 | 1740 | | |
1771 | 1741 | | |
1772 | 1742 | | |
| |||
1911 | 1881 | | |
1912 | 1882 | | |
1913 | 1883 | | |
1914 | | - | |
1915 | | - | |
1916 | | - | |
1917 | | - | |
1918 | | - | |
1919 | | - | |
| 1884 | + | |
1920 | 1885 | | |
1921 | 1886 | | |
1922 | | - | |
1923 | | - | |
| 1887 | + | |
1924 | 1888 | | |
1925 | 1889 | | |
1926 | 1890 | | |
| |||
0 commit comments