Skip to content

Commit

Permalink
Add a background task for update plan execution
Browse files Browse the repository at this point in the history
This PR is the first step in creating a background task that is
capable of taking a `Blueprint` and then reifying that blueprint into
deployed or updated software. This PR uses the initial version of a
Blueprint introduced in #4804. A basic executor that sends the related
`OmicronZonesConfig` to the appropriate sled-agents for newly added
sleds was created.

A test is included that shows how a hypothetical planner for an
`add-sled` workflow will deploy Omicron zones in a manner similar to
RSS, where first the internal DNS zone is deployed and then the internal
DNS and NTP zones are deployed. Deployment alwyas contains all zones
expected to be running on the sled-agent. Any zones running that are not
included are expected to be shut down.
  • Loading branch information
andrewjstone committed Jan 24, 2024
1 parent 624fbba commit a87b985
Show file tree
Hide file tree
Showing 3 changed files with 414 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nexus/src/app/background/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ impl TaskExec {
start_time,
start_instant,
reason,
iteration: iteration,
iteration,
});
});

Expand Down
1 change: 1 addition & 0 deletions nexus/src/app/background/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ mod init;
mod inventory_collection;
mod nat_cleanup;
mod phantom_disks;
mod plan_execution;
mod status;

pub use common::Driver;
Expand Down
Loading

0 comments on commit a87b985

Please sign in to comment.