You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#7234 implements an internal validate_decommissionable() method on SledEditor that checks whether a sled the planner wants to decommission has any non-expunged zones. It should also check for non-expunged disks and datasets, but at the moment doing so causes a variety of test failure. We should add something like this:
fnvalidate_decommisionable(&self) -> Result<(),SledEditError>{// TODO-john The disks and datasets checks below don't pass what the// planner does currently to decommission sleds: if a sled is expunged,// we'll omit its disks and datasets from the outgoing blueprint// entirely without setting them all to the `Expunged` disposition.// Fixing this will conflict with ongoing disk work, so for now these// checks are commented out./* // Check that all disks are expunged... if let Some(disk) = self.disks(DiskFilter::All).find(|disk| match disk.disposition { BlueprintPhysicalDiskDisposition::InService => true, BlueprintPhysicalDiskDisposition::Expunged => false, }) { return Err(SledEditError::NonDecommissionableDiskInService { disk_id: disk.id, zpool_id: disk.pool_id, }); } // ... and all datasets are expunged ... if let Some(dataset) = self.datasets(BlueprintDatasetFilter::All).find(|dataset| { match dataset.disposition { BlueprintDatasetDisposition::InService => true, BlueprintDatasetDisposition::Expunged => false, } }) { return Err(SledEditError::NonDecommissionableDatasetInService { dataset_id: dataset.id, kind: dataset.kind.clone(), }); } */// ... rest of method to check zones ...}
The text was updated successfully, but these errors were encountered:
#7234 implements an internal
validate_decommissionable()
method onSledEditor
that checks whether a sled the planner wants to decommission has any non-expunged zones. It should also check for non-expunged disks and datasets, but at the moment doing so causes a variety of test failure. We should add something like this:The text was updated successfully, but these errors were encountered: