Skip to content

Commit

Permalink
rename reconfigurator packages (#5163)
Browse files Browse the repository at this point in the history
  • Loading branch information
davepacheco authored Feb 29, 2024
1 parent c42b505 commit 55a0760
Show file tree
Hide file tree
Showing 23 changed files with 97 additions and 83 deletions.
112 changes: 56 additions & 56 deletions Cargo.lock

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

12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ members = [
"key-manager",
"nexus",
"nexus/authz-macros",
"nexus/blueprint-execution",
"nexus/db-macros",
"nexus/db-model",
"nexus/db-queries",
"nexus/defaults",
"nexus/deployment",
"nexus/inventory",
"nexus/macros-common",
"nexus/reconfigurator/execution",
"nexus/reconfigurator/planning",
"nexus/test-interface",
"nexus/test-utils-macros",
"nexus/test-utils",
Expand Down Expand Up @@ -114,14 +114,14 @@ default-members = [
"key-manager",
"nexus",
"nexus/authz-macros",
"nexus/blueprint-execution",
"nexus/macros-common",
"nexus/db-macros",
"nexus/db-model",
"nexus/db-queries",
"nexus/defaults",
"nexus/deployment",
"nexus/inventory",
"nexus/reconfigurator/execution",
"nexus/reconfigurator/planning",
"nexus/types",
"oximeter/collector",
"oximeter/db",
Expand Down Expand Up @@ -253,14 +253,14 @@ mockall = "0.12"
newtype_derive = "0.1.6"
mg-admin-client = { path = "clients/mg-admin-client" }
multimap = "0.10.0"
nexus-blueprint-execution = { path = "nexus/blueprint-execution" }
nexus-client = { path = "clients/nexus-client" }
nexus-db-model = { path = "nexus/db-model" }
nexus-db-queries = { path = "nexus/db-queries" }
nexus-defaults = { path = "nexus/defaults" }
nexus-deployment = { path = "nexus/deployment" }
nexus-inventory = { path = "nexus/inventory" }
nexus-macros-common = { path = "nexus/macros-common" }
nexus-reconfigurator-execution = { path = "nexus/reconfigurator/execution" }
nexus-reconfigurator-planning = { path = "nexus/reconfigurator/planning" }
omicron-certificates = { path = "certificates" }
omicron-passwords = { path = "passwords" }
omicron-workspace-hack = "0.1.0"
Expand Down
4 changes: 2 additions & 2 deletions nexus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ tough.workspace = true
trust-dns-resolver.workspace = true
uuid.workspace = true

nexus-blueprint-execution.workspace = true
nexus-defaults.workspace = true
nexus-db-model.workspace = true
nexus-db-queries.workspace = true
nexus-deployment.workspace = true
nexus-inventory.workspace = true
nexus-reconfigurator-execution.workspace = true
nexus-reconfigurator-planning.workspace = true
nexus-types.workspace = true
omicron-common.workspace = true
omicron-passwords.workspace = true
Expand Down
1 change: 0 additions & 1 deletion nexus/blueprint-execution/tests/config.test.toml

This file was deleted.

2 changes: 1 addition & 1 deletion nexus/db-queries/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ gateway-client.workspace = true
illumos-utils.workspace = true
internal-dns.workspace = true
itertools.workspace = true
nexus-deployment.workspace = true
nexus-inventory.workspace = true
nexus-reconfigurator-planning.workspace = true
nexus-test-utils.workspace = true
omicron-sled-agent.workspace = true
omicron-test-utils.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions nexus/db-queries/src/db/datastore/deployment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1055,9 +1055,9 @@ impl RunQueryDsl<DbConnection> for InsertTargetQuery {}
mod tests {
use super::*;
use crate::db::datastore::test_utils::datastore_test;
use nexus_deployment::blueprint_builder::BlueprintBuilder;
use nexus_deployment::blueprint_builder::Ensure;
use nexus_inventory::now_db_precision;
use nexus_reconfigurator_planning::blueprint_builder::BlueprintBuilder;
use nexus_reconfigurator_planning::blueprint_builder::Ensure;
use nexus_test_utils::db::test_setup_database;
use nexus_types::deployment::Policy;
use nexus_types::deployment::SledResources;
Expand Down
13 changes: 13 additions & 0 deletions nexus/reconfigurator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Reconfigurator

**Reconfigurator** is a project and control plane facility for dynamically reconfiguring the software running on the Oxide rack. This will be used for a variety of use cases:

* Adding, removing, or replacing sleds (gracefully or otherwise)
* Upgrading any Oxide-delivered software (see below)
* Scale-up and scale-down of control plane services
* Automated response to hardware failure

For those with access (primarily, Oxide employees), see:

* [RFD 418 Towards automated system update](https://rfd.shared.oxide.computer/rfd/418).
* [Reconfigurator GitHub Project](https://github.com/orgs/oxidecomputer/projects/44?pane=info).
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "nexus-blueprint-execution"
name = "nexus-reconfigurator-execution"
version = "0.1.0"
edition = "2021"

Expand Down Expand Up @@ -33,7 +33,7 @@ omicron-workspace-hack.workspace = true
chrono.workspace = true
httptest.workspace = true
ipnet.workspace = true
nexus-deployment.workspace = true
nexus-reconfigurator-planning.workspace = true
nexus-inventory.workspace = true
nexus-test-utils.workspace = true
nexus-test-utils-macros.workspace = true
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ mod test {
use crate::Sled;
use internal_dns::ServiceName;
use internal_dns::DNS_ZONE;
use nexus_deployment::blueprint_builder::BlueprintBuilder;
use nexus_inventory::CollectionBuilder;
use nexus_reconfigurator_planning::blueprint_builder::BlueprintBuilder;
use nexus_types::deployment::Blueprint;
use nexus_types::deployment::OmicronZoneConfig;
use nexus_types::deployment::OmicronZoneType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

//! Execution of Nexus blueprints
//!
//! See `nexus_deployment` crate-level docs for background.
//! See `nexus_reconfigurator_planning` crate-level docs for background.
use anyhow::{anyhow, Context};
use nexus_db_queries::context::OpContext;
Expand Down
1 change: 1 addition & 0 deletions nexus/reconfigurator/execution/tests/config.test.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "nexus-deployment"
name = "nexus-reconfigurator-planning"
version = "0.1.0"
edition = "2021"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions nexus/src/app/background/blueprint_execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl BackgroundTask for BlueprintExecutor {
});
}

let result = nexus_blueprint_execution::realize_blueprint(
let result = nexus_reconfigurator_execution::realize_blueprint(
opctx,
&self.datastore,
blueprint,
Expand Down Expand Up @@ -258,7 +258,7 @@ mod test {

// Make sure that requests get made to the sled agent. This is not a
// careful check of exactly what gets sent. For that, see the tests in
// nexus-blueprint-execution.
// nexus-reconfigurator-execution.
for s in [&mut s1, &mut s2] {
s.expect(
Expectation::matching(all_of![request::method_path(
Expand Down
4 changes: 2 additions & 2 deletions nexus/src/app/deployment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use nexus_db_queries::authz;
use nexus_db_queries::context::OpContext;
use nexus_db_queries::db::datastore::SQL_BATCH_SIZE;
use nexus_db_queries::db::pagination::Paginator;
use nexus_deployment::blueprint_builder::BlueprintBuilder;
use nexus_deployment::planner::Planner;
use nexus_reconfigurator_planning::blueprint_builder::BlueprintBuilder;
use nexus_reconfigurator_planning::planner::Planner;
use nexus_types::deployment::Blueprint;
use nexus_types::deployment::BlueprintMetadata;
use nexus_types::deployment::BlueprintTarget;
Expand Down
13 changes: 7 additions & 6 deletions nexus/types/src/deployment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@

//! Types representing deployed software and configuration
//!
//! For more on this, see the crate-level documentation for `nexus/deployment`.
//! For more on this, see the crate-level documentation for
//! `nexus/reconfigurator/planning`.
//!
//! This lives in nexus/types because it's used by both nexus/db-model and
//! nexus/deployment. (It could as well just live in nexus/db-model, but
//! nexus/deployment does not currently know about nexus/db-model and it's
//! convenient to separate these concerns.)
//! nexus/reconfigurator/planning. (It could as well just live in
//! nexus/db-model, but nexus/reconfigurator/planning does not currently know
//! about nexus/db-model and it's convenient to separate these concerns.)
use crate::external_api::views::SledPolicy;
use crate::external_api::views::SledState;
Expand Down Expand Up @@ -98,8 +99,8 @@ impl SledResources {
/// Describes a complete set of software and configuration for the system
// Blueprints are a fundamental part of how the system modifies itself. Each
// blueprint completely describes all of the software and configuration
// that the control plane manages. See the nexus/deployment crate-level
// documentation for details.
// that the control plane manages. See the nexus/reconfigurator/planning
// crate-level documentation for details.
//
// Blueprints are different from policy. Policy describes the things that an
// operator would generally want to control. The blueprint describes the
Expand Down

0 comments on commit 55a0760

Please sign in to comment.