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
Chris Telfer 6225d1f15c Get err type in removeNetworks() w/ errors.Cause()
Commit c0bc14e8 wrapped the return value of nw.Delete() with some extra
information.  However, this breaks the code in
containerAdaptor.removeNetworks() which ignores certain specific
libnetwork error return codes.  Said codes actually don't represent
errors, but just regular conditions to be expected in normal operation.
The removeNetworks() call checked for these errors by type assertions
which the errors.Wrap(err...) breaks.

This has a cascading effect, because controller.Remove() invokes
containerAdaptor.removeNetworks() and if the latter returns an error,
then Remove() fails to remove the container itself.  This is not
necessarily catastrophic since the container reaper apparently will
purge the container later, but it is clearly not the behavior we want.

Signed-off-by: Chris Telfer <ctelfer@docker.com>
2018-07-07 18:18:53 -04:00
..
controllers/plugin Fix typos: remove duplicated "the" 2018-05-17 21:49:51 +09:00
convert Update tests to use gotest.tools 👼 2018-06-13 09:04:30 +02:00
executor Get err type in removeNetworks() w/ errors.Cause() 2018-07-07 18:18:53 -04:00
provider Add canonical import comment 2018-02-05 16:51:57 -05:00
cluster.go Extract volume interaction to a volumes service 2018-05-25 14:21:07 -04:00
configs.go Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
errors.go Add canonical import comment 2018-02-05 16:51:57 -05:00
filters.go Add canonical import comment 2018-02-05 16:51:57 -05:00
filters_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
helpers.go Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
listen_addr.go Add canonical import comment 2018-02-05 16:51:57 -05:00
listen_addr_linux.go Add canonical import comment 2018-02-05 16:51:57 -05:00
listen_addr_others.go Add canonical import comment 2018-02-05 16:51:57 -05:00
networks.go Move network conversions out of API router 2018-06-27 17:11:29 -07:00
noderunner.go Extract volume interaction to a volumes service 2018-05-25 14:21:07 -04:00
nodes.go Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
secrets.go Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
services.go Output network attachment task information 2018-05-22 23:36:30 +02:00
swarm.go Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
tasks.go Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
utils.go Add canonical import comment 2018-02-05 16:51:57 -05:00