Commit Graph

2331 Commits

Author SHA1 Message Date
R. Tyler Croy acb244744d
Add a stand-in ns/init for non-Linux platforms
Signed-off-by: R. Tyler Croy <tyler@monkeypox.org>
2017-08-14 19:40:28 -07:00
Hongjiang Zhang 027fc3483b
Add bridge and driver code for FreeBSD specifically 2017-08-14 19:32:21 -07:00
Hongjiang Zhang 3ed6a3a883
Minor changes to allow libnetwork to compile on FreeBSD 2017-08-14 19:32:10 -07:00
Tomoya Tabuchi bab4b7e1ff
Add support for FreeBSD in portallocator
Signed-off-by: Tomoya Tabuchi <t@tomoyat1.com>
2017-08-14 18:48:37 -07:00
Madhu Venugopal 2719c60fbd Merge pull request #1902 from fcrisciani/fix-peerdelete
PeerDbDelete was passing the wrong field
2017-08-11 16:47:58 -07:00
Flavio Crisciani de9a397ae2
PeerDbDelete was passing the wrong field
The peerDbDelete was passing the wrong field to the underlay
Delete operation causing the mac entry to not being deleted
from the bridge on the overlay. This caused connectivity issue
when a container that before was remote was now scheduled
on the local node. The entry was such:
bridge fdb show | grep -i 02:42:0a:01:00:02
02:42:0a:01:00:02 dev vxlan0 master br0
02:42:0a:01:00:02 dev vxlan0 dst 172.31.14.63 link-netnsid 0 self permanent
That was still pointing to a remove node

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-08-11 16:19:59 -07:00
Madhu Venugopal 24bb72a8dc Merge pull request #1877 from fcrisciani/viplo
Add service virtual IP to sandbox's loopback address
2017-08-09 08:50:26 -07:00
Flavio Crisciani ea2dcf7eb5
Add service virtual IP to sandbox's loopback address
Refreshed the PR: https://github.com/docker/libnetwork/pull/1585
Addressed comments suggesting to remove the IPAlias logic not anymore used

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-08-08 16:16:45 -07:00
Madhu Venugopal 19ac3ea7f5 Merge pull request #1856 from dmcgowan/update-logrus
Update logrus to v1.0.1
2017-08-08 14:01:10 -07:00
Derek McGowan 43f00b74d7 Update logrus to v1.0.1
Fix case sensitivity issue
Update docker and runc vendors

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
2017-08-07 11:20:47 -07:00
Santhosh Manohar da27c78d6f Merge pull request #1882 from thaJeztah/more-resolver-logging
Improve debugging for resolver
2017-08-06 17:31:30 -07:00
Madhu Venugopal f5ff00cba7 Merge pull request #1893 from fcrisciani/service-issue
Service connectivity issue
2017-08-05 13:03:20 -07:00
Flavio Crisciani 37502aca3c
PeerInit for the sandbox init
Move the sandbox init logic into the go routine that handles
peer operations.
This is to avoid deadlocks in the use of the pMap.Lock for the
network

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-08-05 12:07:31 -07:00
Flavio Crisciani 0a9aaf80ce
Funnel peerAdd and peerDelete in a channel
Remove the need for the wait group and avoid new
locks
Added utility to print the method name and the caller name

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-08-05 12:07:31 -07:00
Flavio Crisciani 8d6355b5c2
Revert "Avoid peerUpdate logic in swarm mode"
This reverts commit de61c2f25d.

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-08-05 12:07:16 -07:00
Madhu Venugopal 96e21f7c83 Merge pull request #1887 from yyb196/fix-ep-restore-bug
Fixes bug which makes restoring endpoint mess
2017-08-04 04:05:04 -07:00
Frank Yang 07fc13e604 Fixes bug which makes restoring endpoint mess
Signed-off-by: Frank Yang <yyb196@gmail.com>
2017-08-03 18:33:23 +08:00
Madhu Venugopal 4d23f49131 Merge pull request #1885 from fcrisciani/wait-grp-rev
Waitgroup crash fix
2017-08-02 16:53:08 -07:00
Flavio Crisciani de61c2f25d
Avoid peerUpdate logic in swarm mode
Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-08-02 15:29:12 -07:00
Flavio Crisciani df7b47ecc1
Revert "Funnel peerAdd and peerDelete in a channel"
This reverts commit 99290ab252.

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-08-02 15:29:05 -07:00
Madhu Venugopal 66b06bad43 Merge pull request #1881 from docker/revert-1868-fix-error-in-restore-ep
Revert "Fixes bug that mistook gw6 for gw."
2017-08-02 09:16:03 -07:00
Sebastiaan van Stijn b9be3f5781
Improve debugging for resolver
This patch improves debugging for the resolver;

- prefix debug messages with `[resolver]` for easier finding in the daemon logs
- use `A` / `AAAA` for query-types in the logs instead of their numeric code
- add debug messages if the external DNS did not return a result
- print sucessful results (t.b.d.)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-08-02 17:57:15 +02:00
Flavio Crisciani 815171dcf9
Revert "Fixes bug that mistook gw6 for gw."
Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-08-01 17:14:13 -07:00
Madhu Venugopal e85aeedbc6 Merge pull request #1860 from fcrisciani/network-db-stabilization
Network db stabilization
2017-08-01 14:28:33 -07:00
Flavio Crisciani 26db0b9fc9
optimize the rebroadcast for failure case
Before when a node was failing, all the nodes would bump the lamport time of all their
entries. This means that if a node flap, there will be a storm of update of all the entries.
This commit on the base of the previous logic guarantees that only the node that joins back
will readvertise its own entries, the other nodes won't need to advertise again.

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-08-01 14:08:54 -07:00
Flavio Crisciani 4cf74e8735
fix join/leave
join/leave fixes:
 - when a node leaves the network will deletes all the other nodes entries but will keep track of its
   to make sure that other nodes if they are tcp syncing will be aware of them being deleted. (a node that
   did not yet receive the network leave will potentially tcp/sync)

add network reapTime, was not being set locally

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-08-01 14:08:45 -07:00
Flavio Crisciani bede7789f1
2x faster to converge
- Introduced back the Invalidate
- optimized the rebroadcast logic

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-08-01 13:47:18 -07:00
Madhu Venugopal b91938557e Merge pull request #1868 from yyb196/fix-error-in-restore-ep
Fixes bug that mistook gw6 for gw.
2017-07-31 17:09:22 -07:00
Madhu Venugopal 47f62b08f4 Merge pull request #1861 from fcrisciani/waitgrp_channel
Funnel peerAdd and peerDelete in a channel
2017-07-31 11:48:14 -07:00
Flavio Crisciani 99290ab252
Funnel peerAdd and peerDelete in a channel
Remove the need for the wait group and avoid new
locks
Added utility to print the method name and the caller name

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-07-31 09:15:55 -07:00
Frank Yang 2cd3a73be6 Fixes bug that mistook gw6 for gw.
Signed-off-by: Frank Yang <yyb196@gmail.com>
2017-07-31 22:24:44 +08:00
Madhu Venugopal a9bbd3b9ff Merge pull request #1834 from fcrisciani/network-db-infra
NetworkDB testing infra
2017-07-28 17:05:34 -07:00
Madhu Venugopal d3f7ac286d Merge pull request #1866 from sanimej/debug
Remove the error message on mac delete failure..
2017-07-28 16:04:17 -07:00
Santhosh Manohar 581993fd33 Remove the error message on mac delete failure..
Deletion of the dynamic mac is expected to work only if there was active
traffic with that endpoint and a dynamic entry exists. It can also age
out. Hence the mac removal failing is not error. Removing it to make the
debugging easier when parsing the logs.

Signed-off-by: Santhosh Manohar <santhosh@docker.com>
2017-07-28 15:40:21 -07:00
Madhu Venugopal 81f0d1bd13 Merge pull request #1799 from abhinandanpb/byte_offset
Fixing issue with bit allocation byteoffset calculation
2017-07-28 14:17:58 -07:00
Madhu Venugopal e23c06b291 Merge pull request #1865 from fcrisciani/fix-log
Fix warn log
2017-07-28 13:49:07 -07:00
Flavio Crisciani bce3d1ec88
Fix warn log
format wrong

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-07-28 13:30:53 -07:00
Madhu Venugopal 27c574aad0 Merge pull request #1864 from docker/revert-1841-use-buildtin-package-context
Revert "use builtin package context rather than vendored one"
2017-07-28 13:03:51 -07:00
Flavio Crisciani 9e54b8a8c7
Revert "use builtin package context rather than vendored one"
Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-07-28 11:23:40 -07:00
Madhu Venugopal 17a2d6d589 Merge pull request #1842 from sanimej/arp
Attempt neighbor entry reprogramming on L3 miss
2017-07-28 00:27:58 -07:00
Flavio Crisciani 856b6d4fc7
NetworkDB testing infra
- Diagnose framework that exposes REST API for db interaction
- Dockerfile to build the test image
- Periodic print of stats regarding queue size
- Client and server side for integration with testkit
- Added write-delete-leave-join
- Added test write-delete-wait-leave-join
- Added write-wait-leave-join

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-07-27 08:50:43 -07:00
Madhu Venugopal cbf31658ff Merge pull request #1839 from fcrisciani/datapath-mtu
NetworkDB to honor the Network Control Plane MTU
2017-07-26 21:50:16 -07:00
Flavio Crisciani ceb8146a90
NetworkDB allow setting PacketSize
- Introduce the possibility to specify the max buffer length
  in network DB. This will allow to use the whole MTU limit of
  the interface

- Add queue stats per network, it can be handy to identify the
  node's throughput per network and identify unbalance between
  nodes that can point to an MTU missconfiguration

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-07-26 13:44:33 -07:00
Santhosh Manohar c2d77b5fac Merge pull request #1845 from wenjianhn/bug-1827
iptables: jump to DOCKER-USER first
2017-07-25 22:20:43 -07:00
Onur Filiz 160eccb793 Fix the Gateway type in remote network plugin spec
Fixes #1745.

Signed-off-by: Onur Filiz <onur.filiz@microsoft.com>
2017-07-25 15:26:42 -07:00
Madhu Venugopal c3393f1d3e Merge pull request #1846 from fcrisciani/avoid-test-failure
Avoid flakiness of TestLinkContainers
2017-07-21 16:17:49 -07:00
Flavio Crisciani 73ebaefe9c
Avoid flakiness of TestLinkContainers
Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-07-21 13:54:19 -07:00
Jacob Wen 8c59922031 iptables: jump to DOCKER-USER first
Fixes #1827

Signed-off-by: Jacob Wen <jian.w.wen@oracle.com>
2017-07-20 16:38:14 +08:00
Madhu Venugopal f81e09a9a9 Merge pull request #1836 from fcrisciani/network-db-extra-nodes
NetworkDB incorrect number of entries in networkNodes
2017-07-18 17:42:35 -07:00
Flavio Crisciani 297c3d4ad2
NetworkDB incorrect number of entries in networkNodes
A rapid (within networkReapTime 30min) leave/join network
can corrupt the list of nodes per network with multiple copies
of the same nodes.
The fix makes sure that each node is present only once

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
2017-07-18 16:57:49 -07:00