Skip to content

Commit 04f6974

Browse files
authored
[20/n] [reconfigurator-planning] do decommission before add (#8464)
In #8456 we'll block the `do_plan_add` step on whether the system is currently recovering from a mupdate override. But there's no reason to block the `do_plan_decommission` step on that. This is easiest expressed by moving decommission to before add.
1 parent 2d9d447 commit 04f6974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nexus/reconfigurator/planning/src/planner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ impl<'a> Planner<'a> {
146146

147147
fn do_plan(&mut self) -> Result<(), Error> {
148148
self.do_plan_expunge()?;
149-
self.do_plan_add()?;
150149
self.do_plan_decommission()?;
150+
self.do_plan_add()?;
151151
if let UpdateStepResult::ContinueToNextStep = self.do_plan_mgs_updates()
152152
{
153153
self.do_plan_zone_updates()?;

0 commit comments

Comments
 (0)