Skip to content

Commit

Permalink
Replace the machine if the host isn't accpepting inplace updates (#3732)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangra committed Jul 12, 2024
1 parent 532564c commit f04c9c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/command/deploy/machines_deploymachinesapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,8 @@ func (md *machineDeployment) updateMachine(ctx context.Context, e *machineUpdate
// Replacing a machine with a volume will cause the placement logic to pick wthe same host
// dismissing the value of replacing it in case of lack of host capacity
return err
case strings.Contains(err.Error(), "could not reserve resource for machine"):
case strings.Contains(err.Error(), "could not reserve resource for machine"),
strings.Contains(err.Error(), "deploys to this host are temporarily disabled"):
return replaceMachine()
default:
return err
Expand Down

0 comments on commit f04c9c1

Please sign in to comment.