Skip to content

Commit 2e12561

Browse files
authored
[sled-agent-types] reorganize per RFD 619 (#9488)
Reorganize sled-agent-types based on the model described in [RFD 619]. [RFD 619]: https://rfd.shared.oxide.computer/rfd/619
1 parent 474c158 commit 2e12561

File tree

172 files changed

+5857
-5284
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+5857
-5284
lines changed

Cargo.lock

Lines changed: 52 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ members = [
7373
"live-tests/macros",
7474
"nexus",
7575
"nexus-config",
76-
"nexus-sled-agent-shared",
7776
"nexus/authz-macros",
7877
"nexus/auth",
7978
"nexus/background-task-interface",
@@ -131,6 +130,7 @@ members = [
131130
"sled-agent/config-reconciler",
132131
"sled-agent/repo-depot-api",
133132
"sled-agent/types",
133+
"sled-agent/types/versions",
134134
"sled-agent/zone-images",
135135
"sled-agent/zone-images-examples",
136136
"sled-diagnostics",
@@ -235,7 +235,6 @@ default-members = [
235235
"live-tests/macros",
236236
"nexus",
237237
"nexus-config",
238-
"nexus-sled-agent-shared",
239238
"nexus/authz-macros",
240239
"nexus/auth",
241240
"nexus/background-task-interface",
@@ -293,6 +292,7 @@ default-members = [
293292
"sled-agent/config-reconciler",
294293
"sled-agent/repo-depot-api",
295294
"sled-agent/types",
295+
"sled-agent/types/versions",
296296
"sled-agent/zone-images",
297297
"sled-agent/zone-images-examples",
298298
"sled-diagnostics",
@@ -568,7 +568,6 @@ nexus-reconfigurator-preparation = { path = "nexus/reconfigurator/preparation" }
568568
nexus-reconfigurator-rendezvous = { path = "nexus/reconfigurator/rendezvous" }
569569
nexus-reconfigurator-simulation = { path = "nexus/reconfigurator/simulation" }
570570
nexus-saga-recovery = { path = "nexus/saga-recovery" }
571-
nexus-sled-agent-shared = { path = "nexus-sled-agent-shared" }
572571
nexus-test-interface = { path = "nexus/test-interface" }
573572
nexus-test-utils-macros = { path = "nexus/test-utils-macros" }
574573
nexus-test-utils = { path = "nexus/test-utils" }
@@ -712,6 +711,7 @@ sled-agent-api = { path = "sled-agent/api" }
712711
sled-agent-client = { path = "clients/sled-agent-client" }
713712
sled-agent-config-reconciler = { path = "sled-agent/config-reconciler" }
714713
sled-agent-types = { path = "sled-agent/types" }
714+
sled-agent-types-versions = { path = "sled-agent/types/versions" }
715715
sled-agent-zone-images = { path = "sled-agent/zone-images" }
716716
sled-agent-zone-images-examples = { path = "sled-agent/zone-images-examples" }
717717
sled-diagnostics = { path = "sled-diagnostics" }
@@ -971,8 +971,9 @@ opt-level = 3
971971
# It's common during development to use a local copy of various complex
972972
# dependencies. If you want to use those, uncomment one of these blocks.
973973
#
974-
# [patch.crates-io]
974+
[patch.crates-io]
975975
# diesel = { path = "../../diesel/diesel" }
976+
# drift = { path = "../drift" }
976977
# dropshot = { path = "../dropshot/dropshot" }
977978
# dropshot_endpoint = { path = "../dropshot/dropshot_endpoint" }
978979
# dropshot-api-manager = { path = "../dropshot-api-manager/crates/dropshot-api-manager" }

clients/nexus-lockstep-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ workspace = true
1111
chrono.workspace = true
1212
futures.workspace = true
1313
iddqd.workspace = true
14-
nexus-sled-agent-shared.workspace = true
14+
sled-agent-types-versions.workspace = true
1515
nexus-types.workspace = true
1616
omicron-common.workspace = true
1717
omicron-passwords.workspace = true

clients/nexus-lockstep-client/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ progenitor::generate_api!(
6464
ReconfiguratorConfig = nexus_types::deployment::ReconfiguratorConfig,
6565
ReconfiguratorConfigParam = nexus_types::deployment::ReconfiguratorConfigParam,
6666
ReconfiguratorConfigView = nexus_types::deployment::ReconfiguratorConfigView,
67-
RecoverySiloConfig = nexus_sled_agent_shared::recovery_silo::RecoverySiloConfig,
67+
RecoverySiloConfig = sled_agent_types_versions::latest::rack_init::RecoverySiloConfig,
6868
SledAgentUpdateStatus = nexus_types::internal_api::views::SledAgentUpdateStatus,
6969
UpdateStatus = nexus_types::internal_api::views::UpdateStatus,
7070
ZoneStatus = nexus_types::internal_api::views::ZoneStatus,

clients/sled-agent-client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ workspace = true
1111
anyhow.workspace = true
1212
async-trait.workspace = true
1313
chrono.workspace = true
14-
nexus-sled-agent-shared.workspace = true
14+
sled-agent-types-versions.workspace = true
1515
omicron-common.workspace = true
1616
omicron-uuid-kinds.workspace = true
1717
omicron-workspace-hack.workspace = true

clients/sled-agent-client/src/lib.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ progenitor::generate_api!(
4646
"oxnet" = "0.1.0",
4747
},
4848
replace = {
49-
Baseboard = nexus_sled_agent_shared::inventory::Baseboard,
49+
Baseboard = sled_agent_types_versions::latest::inventory::Baseboard,
5050
ByteCount = omicron_common::api::external::ByteCount,
5151
DatasetsConfig = omicron_common::disk::DatasetsConfig,
5252
DatasetManagementStatus = omicron_common::disk::DatasetManagementStatus,
@@ -62,21 +62,21 @@ progenitor::generate_api!(
6262
Generation = omicron_common::api::external::Generation,
6363
Hostname = omicron_common::api::external::Hostname,
6464
ImportExportPolicy = omicron_common::api::external::ImportExportPolicy,
65-
Inventory = nexus_sled_agent_shared::inventory::Inventory,
66-
InventoryDisk = nexus_sled_agent_shared::inventory::InventoryDisk,
67-
InventoryZpool = nexus_sled_agent_shared::inventory::InventoryZpool,
65+
Inventory = sled_agent_types_versions::latest::inventory::Inventory,
66+
InventoryDisk = sled_agent_types_versions::latest::inventory::InventoryDisk,
67+
InventoryZpool = sled_agent_types_versions::latest::inventory::InventoryZpool,
6868
MacAddr = omicron_common::api::external::MacAddr,
69-
MupdateOverrideBootInventory = nexus_sled_agent_shared::inventory::MupdateOverrideBootInventory,
69+
MupdateOverrideBootInventory = sled_agent_types_versions::latest::inventory::MupdateOverrideBootInventory,
7070
Name = omicron_common::api::external::Name,
7171
NetworkInterface = omicron_common::api::internal::shared::NetworkInterface,
7272
OmicronPhysicalDiskConfig = omicron_common::disk::OmicronPhysicalDiskConfig,
7373
OmicronPhysicalDisksConfig = omicron_common::disk::OmicronPhysicalDisksConfig,
74-
OmicronSledConfig = nexus_sled_agent_shared::inventory::OmicronSledConfig,
75-
OmicronZoneConfig = nexus_sled_agent_shared::inventory::OmicronZoneConfig,
76-
OmicronZoneDataset = nexus_sled_agent_shared::inventory::OmicronZoneDataset,
77-
OmicronZoneImageSource = nexus_sled_agent_shared::inventory::OmicronZoneImageSource,
78-
OmicronZoneType = nexus_sled_agent_shared::inventory::OmicronZoneType,
79-
OmicronZonesConfig = nexus_sled_agent_shared::inventory::OmicronZonesConfig,
74+
OmicronSledConfig = sled_agent_types_versions::latest::inventory::OmicronSledConfig,
75+
OmicronZoneConfig = sled_agent_types_versions::latest::inventory::OmicronZoneConfig,
76+
OmicronZoneDataset = sled_agent_types_versions::latest::inventory::OmicronZoneDataset,
77+
OmicronZoneImageSource = sled_agent_types_versions::latest::inventory::OmicronZoneImageSource,
78+
OmicronZoneType = sled_agent_types_versions::latest::inventory::OmicronZoneType,
79+
OmicronZonesConfig = sled_agent_types_versions::latest::inventory::OmicronZonesConfig,
8080
PortFec = omicron_common::api::internal::shared::PortFec,
8181
PortSpeed = omicron_common::api::internal::shared::PortSpeed,
8282
RouterId = omicron_common::api::internal::shared::RouterId,
@@ -85,7 +85,7 @@ progenitor::generate_api!(
8585
ResolvedVpcRouteSet = omicron_common::api::internal::shared::ResolvedVpcRouteSet,
8686
RouterTarget = omicron_common::api::internal::shared::RouterTarget,
8787
RouterVersion = omicron_common::api::internal::shared::RouterVersion,
88-
SledRole = nexus_sled_agent_shared::inventory::SledRole,
88+
SledRole = sled_agent_types_versions::latest::inventory::SledRole,
8989
SourceNatConfigGeneric = omicron_common::api::internal::shared::SourceNatConfigGeneric,
9090
SwitchLocation = omicron_common::api::external::SwitchLocation,
9191
Vni = omicron_common::api::external::Vni,

dev-tools/omdb/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ nexus-inventory.workspace = true
5353
nexus-lockstep-client.workspace = true
5454
nexus-reconfigurator-preparation.workspace = true
5555
nexus-saga-recovery.workspace = true
56-
nexus-sled-agent-shared.workspace = true
5756
nexus-types.workspace = true
5857
omicron-common.workspace = true
5958
omicron-uuid-kinds.workspace = true
@@ -73,6 +72,7 @@ serde.workspace = true
7372
sigpipe.workspace = true
7473
serde_json.workspace = true
7574
sled-agent-client.workspace = true
75+
sled-agent-types.workspace = true
7676
slog.workspace = true
7777
slog-error-chain.workspace = true
7878
steno.workspace = true

dev-tools/reconfigurator-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ nexus-inventory.workspace = true
2929
nexus-reconfigurator-blippy.workspace = true
3030
nexus-reconfigurator-planning.workspace = true
3131
nexus-reconfigurator-simulation.workspace = true
32-
nexus-sled-agent-shared.workspace = true
3332
nexus-types.workspace = true
33+
sled-agent-types.workspace = true
3434
omicron-common.workspace = true
3535
omicron-repl-utils.workspace = true
3636
omicron-uuid-kinds.workspace = true

dev-tools/reconfigurator-cli/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ use nexus_reconfigurator_simulation::{
3434
};
3535
use nexus_reconfigurator_simulation::{SimStateBuilder, SimTufRepoSource};
3636
use nexus_reconfigurator_simulation::{SimTufRepoDescription, Simulator};
37-
use nexus_sled_agent_shared::inventory::ZoneKind;
3837
use nexus_types::deployment::execution;
3938
use nexus_types::deployment::execution::blueprint_external_dns_config;
4039
use nexus_types::deployment::execution::blueprint_internal_dns_config;
@@ -68,6 +67,7 @@ use omicron_uuid_kinds::SledUuid;
6867
use omicron_uuid_kinds::VnicUuid;
6968
use omicron_uuid_kinds::{BlueprintUuid, MupdateOverrideUuid};
7069
use omicron_uuid_kinds::{CollectionUuid, MupdateUuid};
70+
use sled_agent_types::inventory::ZoneKind;
7171
use slog_error_chain::InlineErrorChain;
7272
use std::borrow::Cow;
7373
use std::collections::BTreeSet;

live-tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ nexus-inventory.workspace = true
2828
nexus-lockstep-client.workspace = true
2929
nexus-reconfigurator-planning.workspace = true
3030
nexus-reconfigurator-preparation.workspace = true
31-
nexus-sled-agent-shared.workspace = true
3231
nexus-types.workspace = true
32+
sled-agent-types.workspace = true
3333
omicron-common.workspace = true
3434
omicron-test-utils.workspace = true
3535
omicron-uuid-kinds.workspace = true

0 commit comments

Comments
 (0)