Skip to content

Commit

Permalink
Use Zone UUID as Dataset UUID in RSS
Browse files Browse the repository at this point in the history
  • Loading branch information
smklein committed Dec 18, 2024
1 parent 4a4d6ca commit 785d4a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sled-agent/src/rack_setup/plan/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ impl SledConfig {

// If a durable dataset exists, add it.
if let Some(dataset) = zone.zone_type.durable_dataset() {
let id = DatasetUuid::new_v4();
// NOTE(https://github.com/oxidecomputer/omicron/issues/7265): This
// UUID is intentionally set to the same value as the Zone UUID
let id =
DatasetUuid::from_untyped_uuid(zone.id.into_untyped_uuid());
self.datasets.datasets.insert(
id,
DatasetConfig {
Expand Down

0 comments on commit 785d4a3

Please sign in to comment.