moby--moby/daemon/cluster
Yong Tang 4d958e99c1 Fix missing IPAM options in swarm network mode
This fix tries to fix the issue raised in 29044 where
the IPAM options is missing in swarm network mode
after the service is deployed. Before the service
is deployed, the IPAM options is available.

The reason for the issue is that, before service is
deployed, `network inspect` is querying the swarm and
obtained the correct information.
However, after service is deployed, swarm executor
does not pass the IPAM options to the backend (daemon).
Also after service is deployed, `network inspect` is
actually querying the local daemon for information.
At this time the network information with missing IPAM
options is returned.

This fix fixes the issue by updating the swarm network
allocator and swarm executor.

A separate PR for swarmkit will be opened.

An integration test has been added to cover the change.

This fix fixes 29044.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-12-10 09:29:50 -08:00
..
convert Merge pull request #29041 from aaronlehmann/hide-updatestatus 2016-12-08 13:55:13 +01:00
executor Fix missing IPAM options in swarm network mode 2016-12-10 09:29:50 -08:00
provider Add engine-api types to docker 2016-09-07 11:05:58 -07:00
cluster.go not export errors and forbid leave when unlocked 2016-12-07 13:25:34 +08:00
filters.go secrets: secret management for swarm 2016-11-09 14:27:43 -05:00
helpers.go move func getNetwork into helper.go to keep consistent 2016-11-16 00:28:56 +08:00
listen_addr.go Reject unspecified advertise addr on swarm init 2016-11-28 15:44:06 -08:00
listen_addr_linux.go Add fallback to resolveSystemAddr() in linux 2016-09-09 13:27:57 -07:00
listen_addr_others.go Add functional support for Docker sub commands on Solaris 2016-11-07 09:06:34 -08:00
listen_addr_solaris.go Add functional support for Docker sub commands on Solaris 2016-11-07 09:06:34 -08:00
noderunner.go not export errors and forbid leave when unlocked 2016-12-07 13:25:34 +08:00
secrets.go Switch cluster locking strategy 2016-11-30 14:59:12 -08:00
utils.go Switch cluster locking strategy 2016-11-30 14:59:12 -08:00