Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set up Recovery Silo and user during rack initialization #2943

Merged
merged 9 commits into from
May 3, 2023
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.

9 changes: 7 additions & 2 deletions dev-tools/src/bin/omicron-dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,12 +370,17 @@ async fn cmd_run_all(args: &RunAllArgs) -> Result<(), anyhow::Error> {
cptestctx.external_dns_server.local_address()
);
println!(
" \
(e.g. `dig @{} -p {} SOME_DNS_NAME.{}`)",
"omicron-dev: e.g. `dig @{} -p {} {}.sys.{}`",
cptestctx.external_dns_server.local_address().ip(),
cptestctx.external_dns_server.local_address().port(),
cptestctx.silo_name,
cptestctx.external_dns_zone_name,
);
println!("omicron-dev: silo name: {}", cptestctx.silo_name,);
println!(
"omicron-dev: privileged user name: {}",
cptestctx.user_name.as_ref(),
);

// Wait for a signal.
let caught_signal = signal_stream.next().await;
Expand Down
1 change: 1 addition & 0 deletions nexus-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ omicron-common.workspace = true
progenitor.workspace = true
regress.workspace = true
reqwest = { workspace = true, features = ["rustls-tls", "stream"] }
schemars.workspace = true
serde.workspace = true
serde_json.workspace = true
slog.workspace = true
Expand Down
18 changes: 15 additions & 3 deletions nexus-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,21 @@
//! Interface for making API requests to the Oxide control plane at large
//! from within the control plane

use omicron_common::generate_logging_api;

generate_logging_api!("../openapi/nexus-internal.json");
progenitor::generate_api!(
spec = "../openapi/nexus-internal.json",
derives = [schemars::JsonSchema, PartialEq],
inner_type = slog::Logger,
pre_hook = (|log: &slog::Logger, request: &reqwest::Request| {
slog::debug!(log, "client request";
"method" => %request.method(),
"uri" => %request.url(),
"body" => ?&request.body(),
);
}),
post_hook = (|log: &slog::Logger, result: &Result<_, _>| {
slog::debug!(log, "client response"; "result" => ?result);
}),
);

impl omicron_common::api::external::ClientError for types::Error {
fn message(&self) -> String {
Expand Down
Loading