Open dlipovetsky opened 6 years ago
If we don't update state after delete, another invocation of machine upgrade
will fail unless delete is idempotent. It isn't yet (e.g. drain/delete fail if the node isn't found).
@puneetguptanitj FYI
Thanks Daniel, once we start persisting kubeconfig into cctl-state we might be able to make drain and delete idempotent as well. (As we would be able to execute it directly from the machine where we run cctl). Will update the ticket with findings soon.
This can be better addressed through in place upgrade, that might allow us to not do drain and/or delete
Let's suppose the user runs
cctl machine upgrade
, anddeleteMachine
succeeds, butcreateMachine
fails. That means the machine has been removed from the on-disk state, andcctl machine upgrade
cannot be invoked again;cctl create machine
must be invoked.