Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions clients/ddm-admin-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ sled-hardware-types.workspace = true
omicron-workspace-hack.workspace = true
ddm-admin-client.workspace = true
uuid.workspace = true
slog-error-chain.workspace = true
7 changes: 4 additions & 3 deletions clients/ddm-admin-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use sled_hardware_types::underlay::BOOTSTRAP_MASK;
use sled_hardware_types::underlay::BOOTSTRAP_PREFIX;
use sled_hardware_types::underlay::BootstrapInterface;
use slog::Logger;
use slog_error_chain::SlogInlineError;
use std::net::Ipv6Addr;
use std::net::SocketAddr;
use std::net::SocketAddrV6;
Expand All @@ -28,12 +29,12 @@ use crate::types::EnableStatsRequest;
// TODO-cleanup Is it okay to hardcode this port number here?
const DDMD_PORT: u16 = 8000;

#[derive(Debug, Error)]
#[derive(Debug, Error, SlogInlineError)]
pub enum DdmError {
#[error("Failed to construct an HTTP client: {0}")]
#[error("Failed to construct an HTTP client:")]
HttpClient(#[from] reqwest012::Error),

#[error("Failed making HTTP request to ddmd: {0}")]
#[error("Failed making HTTP request to ddmd")]
DdmdApi(#[from] Error<types::Error>),
}

Expand Down
2 changes: 1 addition & 1 deletion sled-agent/src/bootstrap/bootstore_setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ pub async fn poll_ddmd_for_bootstore_and_tq_peer_update(
Err(err) => {
warn!(
log, "Failed to get prefixes from ddmd";
"err" => #%err,
&err,
);
break;
}
Expand Down
4 changes: 2 additions & 2 deletions sled-agent/src/bootstrap/early_networking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub enum EarlyNetworkSetupError {
#[error("Bad configuration for setting up rack: {0}")]
BadConfig(String),

#[error("Error contacting ddmd: {0}")]
#[error("Error contacting ddmd")]
DdmError(#[from] DdmError),

#[error("Error during request to MGS: {0}")]
Expand All @@ -71,7 +71,7 @@ pub enum EarlyNetworkSetupError {
#[error("Error during request to Dendrite: {0}")]
Dendrite(String),

#[error("Error during DNS lookup: {0}")]
#[error("Error during DNS lookup")]
DnsResolver(#[from] ResolveError),

#[error("BGP configuration error: {0}")]
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 @@ -194,7 +194,7 @@ pub enum Error {
#[error(transparent)]
ZoneInstall(#[from] illumos_utils::running_zone::InstallZoneError),

#[error("Error contacting ddmd: {0}")]
#[error("Error contacting ddmd")]
DdmError(#[from] DdmError),

#[error("Failed to access underlay device: {0}")]
Expand Down
4 changes: 2 additions & 2 deletions wicketd/src/bootstrap_addrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ async fn possible_sled_agent_addrs(
Err(err) => {
warn!(
log, "Failed to get prefixes from ddm";
"err" => #%err,
&err,
);
tokio::time::sleep(RETRY).await;
}
Expand All @@ -164,7 +164,7 @@ async fn make_ddm_admin_client(log: &Logger) -> DdmAdminClient {
Err(err) => {
warn!(
log, "Failed to construct DdmAdminClient";
"err" => #%err,
&err,
);
tokio::time::sleep(DDM_CONSTRUCT_RETRY).await;
}
Expand Down
Loading