Cli: Stack rollback on failure

Created on 3 Oct 2017  路  3Comments  路  Source: docker/cli

Stack updates should support rollback of the entire stack in cases where some of the service update fails.

Currently the docker stack deploy command offers the ability to automatically rollback failing service via the deploy -> update_config -> failure_action configuration but the rollback action is applied on a service by service basis.

If only some of the services fails during an update the above behaviour will rollback the failing services but update the healthy ones leaving the stack in an inconsistent state.

Furthermore the stack update is done non-interactively meaning that the only way to detect inconsistent state after an update is to actively monitor the state of all services in the stack and try to reconcile it with their respective desired state.

Moved from moby/moby#34712

arestack areswarm kinfeature

Most helpful comment

Hi @thaJeztah, @dnephin any updates on this or any suggestion to achieve this

All 3 comments

I think to properly support such a feature stacks would need to be a swarmkit resource. Trying to implement this on the client side would be a mess.

I think this would probably face similar difficulties as implementing https://github.com/moby/moby/issues/31333

Hi @thaJeztah, @dnephin any updates on this or any suggestion to achieve this

Was this page helpful?
0 / 5 - 0 ratings