1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/cluster
Jana Radhakrishnan 769c25c416 Retry creating dynamic networks if not found
In cases there are failures in task start, swarmkit might be trying to
restart the task again in the same node which might keep failing. This
creates a race where when a failed task is getting removed it might
remove the associated network while another task for the same service
or a different service but connected to the same network is proceeding
with starting the container knowing that the network is still
present. Fix this by reacting to `ErrNoSuchNetwork` error during
container start by trying to recreate the managed networks. If they
have been removed it will be recreated. If they are already present
nothing bad will happen.

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
(cherry picked from commit 117cef5e97)
Signed-off-by: Tibor Vass <tibor@docker.com>
2016-08-11 17:56:50 -07:00
..
convert Remove join-tokens from the /info API 2016-07-27 12:10:49 -07:00
executor Retry creating dynamic networks if not found 2016-08-11 17:56:50 -07:00
provider Fix misspell typos 2016-06-30 16:47:43 -07:00
cluster.go Add --force to node removal 2016-08-11 17:56:45 -07:00
filters.go Allow partial name match for node ls, and node tasks 2016-07-25 23:15:45 -07:00
helpers.go Fix spelling in comments, strings and documentation 2016-07-08 15:31:42 -07:00
listen_addr.go Better error messages when IP address autodetection fails 2016-08-11 17:56:44 -07:00