Commit Graph

2501 Commits

Author SHA1 Message Date
John Stephens
c8a3950d8b Delete stale HNS endpoints when creating a network
Signed-off-by: John Stephens <johnstep@docker.com>
2018-03-05 00:12:00 -08:00
Flavio Crisciani
9bade4d29c Merge pull request #2096 from fcrisciani/fix-transient-log
Fix crash if the len was < maxSetStringLen
2018-03-01 09:44:49 -08:00
Flavio Crisciani
1f55734d4c Fix crash if the len was < maxSetStringLen
If the len was less than the max length, there was a panic

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2018-03-01 09:24:36 -08:00
Flavio Crisciani
5bbc19d7fe Merge pull request #2094 from luzhipeng-zte/removelinkdel
fix for #1333, calling LinkDel to delete link device when the err is NULL
2018-02-27 17:44:08 -08:00
ZhiPeng Lu
83d1ce9fb5 fix for #1333, calling LinkDel to delete link device when the err of LinkByName is NULL
Signed-off-by: ZhiPeng Lu <lu.zhipeng@zte.com.cn>
2018-02-28 16:57:39 +08:00
Flavio Crisciani
a5a04fa72e Merge pull request #2088 from fcrisciani/transient-log
Limit max length transient log
2018-02-26 10:09:24 -08:00
Flavio Crisciani
85791fb3fd Limit max length transient log
Set a limit to the max size of the transient log to avoid
filling up logs in case of issues

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2018-02-26 08:54:22 -08:00
Flavio Crisciani
e49dea42c5 Merge pull request #2087 from fcrisciani/join-flag
Add an explicit flag to join network in diagnostic
2018-02-23 15:05:15 -08:00
Flavio Crisciani
d1e6cfa6a1 Add an explicit flag to join network in diagnostic
Usually a diagnostic session wants to check the local state
without this flag the network is joined and left every iteration
altering actually the daemon status.
Also if the diagnostic client is used against a live node, the
network leave has a very bad side effect of kicking the node
out of the network killing its internal status.
For the above reason introducing the flag -a to be explicit
so that the current state is always preserved

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2018-02-23 13:20:38 -08:00
Flavio Crisciani
f8a7f2e7be Merge pull request #2058 from selansen/master
Allow user to specify default address pools for docker networks
2018-02-22 17:59:20 -08:00
selansen
4484ea17c3 Allow user to specify default address pools for docker networks
This is new feature that allows  user to specify which subnetwork
 Docker contrainer should choose from when it creates bridge network.

 This libnetwork commit is to address moby PR 36054
Signed-off-by: selansen <elango.siva@docker.com>
2018-02-22 12:14:59 -05:00
Flavio Crisciani
9381f27388 Merge pull request #2075 from dani-docker/orca-6793
Make SSD portable and useable outside the default image & error check when network on a particular node has no services.
2018-02-21 15:39:19 -08:00
Flavio Crisciani
73cc26c278 Merge pull request #2039 from adamancini/improved_support_script
Improved support script
2018-02-20 19:46:16 -08:00
ada mancini
d5aab13c38 Various support script improvements
Previously, support script dumped the host iptables filter/nat tables,
and each overlay network's network inspect and 'bridge fdb show' and
'brctl showmacs'.  Now we collect much more information.  Support script
dumps iptables filter/nat/mangle, routes and interfaces from iproute2,
bridge fdb table, & ipvsadm table, for the host and containers/overlay
networks on the host.  We also dump a redacted copy of the container
health check status and other debugging information for each container,
in JSON format, and 'docker network inspect -v' for each overlay, if the
client/server support the -v flag.

Signed-off-by: ada mancini <ada@docker.com>
2018-02-20 18:26:33 -05:00
Flavio Crisciani
482def9c58 Merge pull request #2079 from thaJeztah/bump-toml
vendor: update BurntSushi/toml for MIT license
2018-02-16 14:24:02 -08:00
Sebastiaan van Stijn
ba5b3ee8d9 Bump BurntSushi/toml for MIT License
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2018-02-16 13:17:40 +01:00
Sebastiaan van Stijn
71c0bc0b89 Revendor dependencies
re-vendor using vndr a6e196d8b4b0cbbdc29aebdb20c59ac6926bb384

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2018-02-16 13:17:02 +01:00
Flavio Crisciani
46284f8372 Merge pull request #1825 from ishidawataru/sctp
Support SCTP port mapping
2018-02-15 18:06:56 -08:00
Wataru Ishida
2120ed2363 Support SCTP port mapping
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2018-02-13 16:01:03 +09:00
Dani Louca
f5c62864e9 Make ssd portable and usuable outside the default image.
Add error check when network on a particular node has no services

Signed-off-by: Dani Louca <dani.louca@docker.com>
2018-02-12 17:02:01 -05:00
Flavio Crisciani
92888febdb Merge pull request #2071 from fcrisciani/ssd
Import the ssd tool in libnetwork
2018-02-10 09:52:40 -08:00
Flavio Crisciani
1484a5c19b Merge pull request #2070 from nwoodmsft/master
Added OutboundNAT policy support for Windows
2018-02-07 10:43:35 -08:00
Flavio Crisciani
a16d469867 Import the ssd tool in libnetwork
Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2018-02-07 09:20:55 -08:00
Nick Wood
bbbfa21a94 libnetwork Windows driver support for outboundnat policy via generic options
Signed-off-by: Nick Wood <nwood@microsoft.com>
2018-02-05 17:07:26 -08:00
Flavio Crisciani
2459e6fbd3 Merge pull request #2032 from fcrisciani/debug-client
Diagnostic client
2018-01-29 11:06:21 -08:00
Flavio Crisciani
fd5cbfaaa4 Merge pull request #2065 from fcrisciani/ndots
Fix user specified ndots option
2018-01-29 11:03:44 -08:00
Flavio Crisciani
5a658d4cc1 Fix user specified ndots option
Setting ndots to 0 does not allow to resolve search domains
The default will remain ndots:0 that will directly resolve
services, but if the user specify a different ndots value
just propagate it into the container

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2018-01-26 10:07:08 -08:00
Flavio Crisciani
2f6921cbba Diagnostic client
- the client allows to talk to the diagnostic server and
decode the internal values of the overlay and service discovery

- the tool also allows to remediate in case of orphans entries

- added README

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2018-01-25 16:09:37 -08:00
Flavio Crisciani
a59ecd9537 Change diagnose module name to diagnostic
Align it to the moby/moby external api

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2018-01-25 16:09:29 -08:00
Flavio Crisciani
1eaa943f64 Merge pull request #2063 from thaJeztah/bump-go-1.9.3
Bump Go to 1.9.3
2018-01-24 11:00:45 -08:00
Flavio Crisciani
4bf50246d1 Merge pull request #2040 from fcrisciani/memberlist_revendor
Memberlist revendor and optimizations
2018-01-24 09:20:20 -08:00
Sebastiaan van Stijn
b6f640a9ff Bump Go to 1.9.3
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2018-01-24 00:30:38 -08:00
Flavio Crisciani
64da6b8889 Avoid delay on node rejoin, avoid useless witness
Avoid waiting for a double notification once a node rejoin, just
put it back to active state. Waiting for a further message does not
really add anything to the safety of the operation, the source of truth
for the node status resided inside memberlist.

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2018-01-23 16:21:18 -08:00
Flavio Crisciani
08f9dfeaf8 Merge pull request #2010 from madhanrm/hotaddfix
Fix to use ContainerID for windows instead of SanbdoxID
2018-01-23 15:08:46 -08:00
Flavio Crisciani
5f773281d2 Revendor memberlist
diff: https://github.com/hashicorp/memberlist/compare/v0.1.0...master

Relevant changes:
 - Calculates the timeout for dial using the deadline
 - Reduce LAN min suspicion multiplier
 - fix deadlock in shutdown process of memberlist

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2018-01-23 14:22:09 -08:00
Flavio Crisciani
e6df49bd21 Merge pull request #2053 from cpuguy83/reload_user_chain
Reload DOCKER-USER chain on firewalld reload.
2018-01-12 09:30:11 -08:00
Brian Goff
d5fef4ca1c Reload DOCKER-USER chain on frewalld reload.
Relates to moby/moby#35043

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2018-01-12 10:50:22 -05:00
Flavio Crisciani
f9a14ba9dc Merge pull request #2051 from fcrisciani/fix-watchMiss-ns
Fix watchMiss thread context
2018-01-10 16:18:35 -08:00
Flavio Crisciani
e975f3caa0 Fix watchMiss thread context
The netlink deserialize is fetching information from the link.
This require the go routine to be in the correct namespace to
succeed

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2018-01-10 13:50:49 -08:00
Flavio Crisciani
93f8337ec9 Merge pull request #1824 from abhi/rolling_update
Delete service info from cluster when service is disabled
2018-01-09 14:29:52 -08:00
abhi
5ab37a55a1 Delete service info from cluster when service is disabled
This PR contains a fix for moby/moby#30321. There was a moby/moby#31142
PR intending to fix the issue by adding a delay between disabling the
service in the cluster and the shutdown of the tasks. However
disabling the service was not deleting the service info in the cluster.
Added a fix to delete service info from cluster and verified using siege
to ensure there is zero downtime on rolling update of a service.

Signed-off-by: abhi <abhi@docker.com>
2018-01-09 13:53:00 -08:00
Flavio Crisciani
e8f62679a3 Merge pull request #1995 from fcrisciani/fix-ndots
Fix ndots configuration
2018-01-09 09:22:57 -08:00
Flavio Crisciani
c5a734c2eb Merge pull request #2047 from fcrisciani/remove_watchmiss
Remove watchMiss for swarm mode
2018-01-09 09:01:23 -08:00
Flavio Crisciani
af7fa2d7a2 Merge pull request #2041 from ddebroy/2026mx
Handle DNS queries of type MX
2018-01-09 08:57:00 -08:00
Deep Debroy
88df74659a Add unit tests for MX and A DNS queries
Signed-off-by: Deep Debroy <ddebroy@docker.com>
2018-01-08 17:08:48 -08:00
Flavio Crisciani
dd47466a4d Remove watchMiss for swarm mode
Swarm mode does not really have anymore a use for the watchMiss.
Peer entries are configured at configuration time.
If the gcthresh denies the insertion the peerAdd will fail.

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2018-01-05 14:51:43 -08:00
Flavio Crisciani
944540495b Merge pull request #2043 from selansen/master
Enable IPV6 config on Sandbox creation on live-restore case
2018-01-02 12:08:00 -08:00
selansen
d28d679080 Enable IPV6 config on Sandbaox creation on live-restore
In sandbox creation we disable IPV6 config. But this causes problem in live-restore case
where all IPV6 configs are wiped out on running container. Hence extra check has been added
take care of this issue.

Signed-off-by: selansen <elango.siva@docker.com>
2017-12-27 23:32:29 -05:00
selansen
e7646397b0 Merge branch 'master' of https://github.com/docker/libnetwork 2017-12-27 22:37:24 -05:00
Flavio Crisciani
d47da49ccb Merge pull request #2042 from jongwu/dockerfile.patch
enable unit test in arm64
2017-12-27 22:22:58 -05:00