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

omdb support for showing devices visible to MGS #4162

Merged
merged 8 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from 3 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
6 changes: 6 additions & 0 deletions Cargo.lock

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

4 changes: 4 additions & 0 deletions dev-tools/omdb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ chrono.workspace = true
clap.workspace = true
diesel.workspace = true
dropshot.workspace = true
futures.workspace = true
gateway-client.workspace = true
gateway-messages.workspace = true
gateway-test-utils.workspace = true
humantime.workspace = true
internal-dns.workspace = true
nexus-client.workspace = true
Expand Down
4 changes: 4 additions & 0 deletions dev-tools/omdb/src/bin/omdb/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ use std::net::SocketAddr;
use std::net::SocketAddrV6;

mod db;
mod mgs;
mod nexus;
mod sled_agent;

Expand All @@ -56,6 +57,7 @@ async fn main() -> Result<(), anyhow::Error> {

match &args.command {
OmdbCommands::Db(db) => db.run_cmd(&args, &log).await,
OmdbCommands::Mgs(mgs) => mgs.run_cmd(&args, &log).await,
OmdbCommands::Nexus(nexus) => nexus.run_cmd(&args, &log).await,
OmdbCommands::SledAgent(sled) => sled.run_cmd(&args, &log).await,
}
Expand Down Expand Up @@ -153,6 +155,8 @@ impl Omdb {
enum OmdbCommands {
/// Query the control plane database (CockroachDB)
Db(db::DbArgs),
/// Debug a specific Management Gateway Service instance
Mgs(mgs::MgsArgs),
/// Debug a specific Nexus instance
Nexus(nexus::NexusArgs),
/// Debug a specific Sled
Expand Down
Loading