Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 26 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ members = [
"sled-agent/bootstrap-agent-lockstep-api",
"sled-agent/bootstrap-agent-lockstep-types",
"sled-agent/config-reconciler",
"sled-agent/early-networking",
"sled-agent/health-monitor",
"sled-agent/measurements",
"sled-agent/rack-setup",
Expand Down Expand Up @@ -333,6 +334,7 @@ default-members = [
"sled-agent/bootstrap-agent-lockstep-api",
"sled-agent/bootstrap-agent-lockstep-types",
"sled-agent/config-reconciler",
"sled-agent/early-networking",
"sled-agent/health-monitor",
"sled-agent/measurements",
"sled-agent/rack-setup",
Expand Down Expand Up @@ -789,6 +791,7 @@ sled = "=0.34.7"
sled-agent-api = { path = "sled-agent/api" }
sled-agent-client = { path = "clients/sled-agent-client" }
sled-agent-config-reconciler = { path = "sled-agent/config-reconciler" }
sled-agent-early-networking = { path = "sled-agent/early-networking" }
sled-agent-health-monitor = { path = "sled-agent/health-monitor" }
sled-agent-measurements = { path = "sled-agent/measurements" }
sled-agent-rack-setup = { path = "sled-agent/rack-setup" }
Expand Down
2 changes: 1 addition & 1 deletion dev-tools/ls-apis/tests/api_dependencies.out
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Nexus Internal Lockstep API (client: nexus-lockstep-client)

NTP Admin (client: ntp-admin-client)
consumed by: omicron-nexus (omicron/nexus) via 2 paths
consumed by: omicron-sled-agent (omicron/sled-agent) via 3 paths
consumed by: omicron-sled-agent (omicron/sled-agent) via 2 paths

External API (client: oxide-client)

Expand Down
3 changes: 1 addition & 2 deletions sled-agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ nexus-config.workspace = true
nexus-lockstep-client.workspace = true
nexus-types.workspace = true
nix = { workspace = true, features = ["signal"] }
ntp-admin-client.workspace = true
Comment thread
sunshowers marked this conversation as resolved.
Outdated
omicron-common.workspace = true
omicron-ledger.workspace = true
omicron-ddm-admin-client.workspace = true
Expand Down Expand Up @@ -90,6 +89,7 @@ signal-hook.workspace = true
sled-agent-api.workspace = true
sled-agent-client.workspace = true
sled-agent-config-reconciler.workspace = true
sled-agent-early-networking.workspace = true
sled-agent-health-monitor.workspace = true
sled-agent-measurements.workspace = true
sled-agent-rack-setup.workspace = true
Expand All @@ -109,7 +109,6 @@ slog-error-chain.workspace = true
slog-term.workspace = true
smf.workspace = true
sprockets-tls.workspace = true
static_assertions.workspace = true
strum.workspace = true
tar.workspace = true
thiserror.workspace = true
Expand Down
31 changes: 31 additions & 0 deletions sled-agent/early-networking/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[package]
name = "sled-agent-early-networking"
version = "0.1.0"
edition.workspace = true
license = "MPL-2.0"

[lints]
workspace = true

[dependencies]
anyhow.workspace = true
# XXX NOTE this is due to https://github.com/oxidecomputer/omicron/issues/9704
# This is the R17 dpd client
# dpd-client.workspace = true
dpd-client = { git = "https://github.com/oxidecomputer/dendrite", rev = "cc8e02a0800034c431c8cf96b889ea638da3d194" }
Comment on lines +12 to +15
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still the status quo?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically yes. I think we could bump it up to the R18 dpd client, now that R19 is shipping? But I don't know that there's a need to do that and test it.

futures.workspace = true
gateway-client.workspace = true
http.workspace = true
internal-dns-resolver.workspace = true
internal-dns-types.workspace = true
mg-admin-client.workspace = true
omicron-common.workspace = true
omicron-ddm-admin-client.workspace = true
omicron-workspace-hack.workspace = true
oxnet.workspace = true
rdb-types.workspace = true
sled-agent-types.workspace = true
slog.workspace = true
slog-error-chain.workspace = true
thiserror.workspace = true
tokio = { workspace = true, features = ["full"] }
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ use sled_agent_types::early_networking::{
use sled_agent_types::sled::ThisSledSwitchZoneUnderlayIpAddr;
use sled_agent_types::system_networking::SystemNetworkingConfig;
use slog::Logger;
use slog::error;
use slog::info;
use slog::o;
use slog::warn;
use slog_error_chain::InlineErrorChain;
use std::collections::{HashMap, HashSet};
use std::net::{IpAddr, Ipv4Addr, Ipv6Addr};
Expand Down
10 changes: 2 additions & 8 deletions sled-agent/rack-setup/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,13 @@ cancel-safe-futures.workspace = true
chrono.workspace = true
cockroach-admin-client.workspace = true
dns-service-client.workspace = true
# XXX NOTE this is due to https://github.com/oxidecomputer/omicron/issues/9704
# This is the R17 dpd client
# dpd-client.workspace = true
dpd-client = { git = "https://github.com/oxidecomputer/dendrite", rev = "cc8e02a0800034c431c8cf96b889ea638da3d194" }
futures.workspace = true
gateway-client.workspace = true
http.workspace = true
iddqd.workspace = true
illumos-utils.workspace = true
internal-dns-resolver.workspace = true
internal-dns-types.workspace = true
itertools.workspace = true
mg-admin-client.workspace = true
nexus-lockstep-client.workspace = true
nexus-types.workspace = true
ntp-admin-client.workspace = true
Expand All @@ -38,13 +32,13 @@ omicron-ledger.workspace = true
omicron-uuid-kinds.workspace = true
omicron-workspace-hack.workspace = true
oxnet.workspace = true
rand = { workspace = true, features = ["os_rng"] }
rdb-types.workspace = true
rand.workspace = true
reqwest = { workspace = true, features = ["rustls", "stream"] }
schemars = { workspace = true, features = ["chrono", "uuid1"] }
serde.workspace = true
sled-agent-client.workspace = true
sled-agent-config-reconciler.workspace = true
sled-agent-early-networking.workspace = true
sled-agent-types.workspace = true
sled-hardware-types.workspace = true
sled-storage.workspace = true
Expand Down
3 changes: 0 additions & 3 deletions sled-agent/rack-setup/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@
#[macro_use]
extern crate slog;

mod early_networking;
mod plan;
mod service;

pub use early_networking::EarlyNetworkSetup;
pub use early_networking::EarlyNetworkSetupError;
pub use plan::service::PlannedSledDescription;
pub use plan::service::ServicePlan;
pub use plan::service::SledConfig;
Expand Down
2 changes: 1 addition & 1 deletion sled-agent/rack-setup/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
//! after a clean slate upon failure.
//! See <https://github.com/oxidecomputer/omicron/issues/7174> for details.

use crate::early_networking::EarlyNetworkSetupError;
use crate::plan::service::PlanError as ServicePlanError;
use crate::plan::service::ServicePlan;
use crate::plan::sled::SledPlan;
Expand Down Expand Up @@ -110,6 +109,7 @@ use sled_agent_client::{
Client as SledAgentClient, Error as SledAgentError, types as SledAgentTypes,
};
use sled_agent_config_reconciler::InternalDisksReceiver;
use sled_agent_early_networking::EarlyNetworkSetupError;
use sled_agent_types::early_networking::{
EarlyNetworkConfigEnvelope, LldpAdminStatus,
};
Expand Down
2 changes: 1 addition & 1 deletion sled-agent/src/services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ use omicron_common::backoff::{
use omicron_common::disk::{DatasetKind, DatasetName};
use omicron_ddm_admin_client::DdmError;
use omicron_uuid_kinds::OmicronZoneUuid;
use sled_agent_rack_setup::{EarlyNetworkSetup, EarlyNetworkSetupError};
use sled_agent_early_networking::{EarlyNetworkSetup, EarlyNetworkSetupError};
use sled_agent_resolvable_files::{
ZoneImageSourceResolver, ramdisk_file_source,
};
Expand Down
2 changes: 1 addition & 1 deletion sled-agent/src/sled_agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ use sled_agent_config_reconciler::{
};
use sled_agent_health_monitor::handle::HealthMonitorHandle;
use sled_agent_measurements::MeasurementsHandle;
use sled_agent_rack_setup::EarlyNetworkSetupError;
use sled_agent_early_networking::EarlyNetworkSetupError;
use sled_agent_types::attached_subnet::AttachedSubnet;
use sled_agent_types::attached_subnet::AttachedSubnets;
use sled_agent_types::dataset::LocalStorageDatasetDeleteRequest;
Expand Down
Loading