Skip to content
Merged
Changes from all 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
14 changes: 12 additions & 2 deletions nexus/reconfigurator/planning/src/blueprint_builder/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -925,13 +925,23 @@ impl<'a> BlueprintBuilder<'a> {
match zone.disposition {
BlueprintZoneDisposition::Expunged => (),
BlueprintZoneDisposition::InService
| BlueprintZoneDisposition::Quiesced => todo!("fixme-1"),
| BlueprintZoneDisposition::Quiesced => {
return Err(Error::Planner(anyhow!(
"expunged all disks but a zone \
is still in service: {zone:?}"
)));
}
}
}
for dataset in editor.datasets(BlueprintDatasetFilter::All) {
match dataset.disposition {
BlueprintDatasetDisposition::Expunged => (),
BlueprintDatasetDisposition::InService => todo!("fixme-2"),
BlueprintDatasetDisposition::InService => {
return Err(Error::Planner(anyhow!(
"expunged all disks but a dataset \
is still in service: {dataset:?}"
)));
}
}
}

Expand Down
Loading