Commit graph

2089 commits

Author SHA1 Message Date
Madhu Venugopal
22d136f7d5 Merge pull request #1633 from aboch/slk
Do not leak ipvs netlink socket
2017-02-04 07:03:53 -08:00
Alessandro Boch
6a2d86f0a9 Do not leak ipvs netlink socket
Signed-off-by: Alessandro Boch <aboch@docker.com>
2017-02-03 09:11:48 -08:00
Alessandro Boch
2a1d54d42d Merge pull request #1632 from mavenugo/ml
replace individual endpoint_cnt read from store with 1 bulk read
2017-02-02 15:05:50 -08:00
Madhu Venugopal
2a9be357f9 Trust the endpoint state if we have a valid sandbox-id
Signed-off-by: Madhu Venugopal <madhu@docker.com>
2017-02-02 14:46:59 -08:00
Madhu Venugopal
71fff44c0b replace individual endpoint_cnt read from store with 1 bulk read
getNetworksFromStore reads networks and endpoint_cnt from the kvstores.
endpoint_cnt especially is read in a for-loop for each network and that
causes a lot of stress in poorly performing KV-Stores.
This fix eases the load on the kvstore by fetching all the endpoint_cnt
in a single read and the operation is performed on it.

Signed-off-by: Madhu Venugopal <madhu@docker.com>
2017-02-02 14:45:38 -08:00
Madhu Venugopal
cda20bedba Merge pull request #1628 from aboch/red
Make virtual service programming more robust
2017-02-02 12:00:54 -08:00
Santhosh Manohar
9e630d61d5 Merge pull request #1631 from mavenugo/nstrict
Reverting the strict network name check
2017-02-01 22:31:20 -08:00
Santhosh Manohar
4e4787fa31 Merge pull request #1626 from mavenugo/nd
Generating node discovery events to the drivers from networkdb
2017-02-01 21:40:14 -08:00
Madhu Venugopal
8e2ca0471c Revert "validate network and endpoint name more strictly"
This reverts commit 761722395d.

Signed-off-by: Madhu Venugopal <madhu@docker.com>
2017-02-01 18:18:17 -08:00
Madhu Venugopal
4d1334c9ee Revert "Allow spaces in network names"
This reverts commit 85b22fabbe.

Signed-off-by: Madhu Venugopal <madhu@docker.com>
2017-02-01 18:18:11 -08:00
Madhu Venugopal
bb560a1f44 Generating node discovery events to the drivers from networkdb
With the introduction of networkdb, the node discovery events were not
sent to the drivers. This commit generates the node discovery events and
sents it to the drivers interested in it.

Signed-off-by: Madhu Venugopal <madhu@docker.com>
2017-02-01 17:54:51 -08:00
Alessandro Boch
a02b4ef4a4 Fix service logs
- do not error on duplicate service removal
- give some context to service logs,
  this would help debugging related issues

Signed-off-by: Alessandro Boch <aboch@docker.com>
2017-02-01 17:32:08 -08:00
Alessandro Boch
4e69afc4f3 Make virtual service programming more robust
- Do not relay on software flags to decide when to create the
   virtual service. Instead query the kernel for presence.
   So that it cannot happen that a real server creation
   fails because the virtual server is missing.

Signed-off-by: Alessandro Boch <aboch@docker.com>
2017-02-01 15:54:31 -08:00
Madhu Venugopal
f318ddacdb Merge pull request #1627 from aboch/red
Gracefully handle redundant ipvs service create failures
2017-01-31 20:35:00 -08:00
Alessandro Boch
4c2d7a2141 Merge pull request #1624 from aboch/cl
Remove stale files
2017-01-31 17:05:11 -08:00
Alessandro Boch
d565d5f2d2 Gracefully handle redundant ipvs service create failures
Signed-off-by: Alessandro Boch <aboch@docker.com>
2017-01-31 16:34:53 -08:00
Madhu Venugopal
58744967be Merge pull request #1623 from aboch/ns
Fix GetNameServerAsCIDR
2017-01-26 04:17:34 -08:00
Alessandro Boch
53c84ac767 Fix GetNameServerAsCIDR
- the function is broken as it does not strip the
  zone id from an IPv6 nameserver address, and it
  returns the IPv6 address with /32

Signed-off-by: Alessandro Boch <aboch@docker.com>
2017-01-26 01:34:07 -08:00
Alessandro Boch
5713ca4694 Remove stale files
Signed-off-by: Alessandro Boch <aboch@docker.com>
2017-01-25 23:10:14 -08:00
Santhosh Manohar
1795dc1bbe Merge pull request #1621 from aboch/errlog
Fix incorrect error log message
2017-01-25 10:08:15 -08:00
Alessandro Boch
66197b7787 Fix incorrect error log message
- Failed to _add_ firewall mark... should be _delete_

Signed-off-by: Alessandro Boch <aboch@docker.com>
2017-01-23 16:29:03 -08:00
Madhu Venugopal
dc9966db82 Merge pull request #1620 from sanimej/extdns
Fix the data model inconsistency that breaks upgrade to 1.14-dev
2017-01-23 13:04:51 -08:00
Santhosh Manohar
538bea2896 Merge pull request #1617 from AkihiroSuda/cleanup
proxy: clean up code (addendum to #1598)
2017-01-19 16:03:49 -08:00
Santhosh Manohar
6f507f53e3 Fix the data model inconsistency that breaks daemon upgrade to 1.14-dev
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
2017-01-19 14:25:26 -08:00
Madhu Venugopal
b7d91af92e Merge pull request #1615 from sanimej/godep
Use vndr for managing libnetwork dependencies
2017-01-12 06:23:13 -08:00
Akihiro Suda
d3e7ca726d proxy: clean up code (addendum to #1598)
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-01-12 04:46:23 +00:00
Santhosh Manohar
bfd1683e74 Use vndr for managing libnetwork dependencies
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
2017-01-11 17:22:05 -08:00
Alessandro Boch
da6c6baa92 Merge pull request #1614 from sanimej/godep
Carry libnetwork change from docker/docker #29564
2017-01-10 13:38:54 -08:00
Santhosh Manohar
6ea22f2f50 carry docker/docker #29564
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
2017-01-10 13:17:15 -08:00
Santhosh Manohar
3178e13246 Godep update for docker plugingetter pkg
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
2017-01-10 13:11:48 -08:00
Santhosh Manohar
56aa6f94b3 Merge pull request #1598 from AkihiroSuda/tcp-halfclose-docker-27539
proxy: fix an issue about half-closing net.TCPConn after io.Copy()
2017-01-05 20:36:57 -08:00
Santhosh Manohar
5c4fcff5bc Merge pull request #1609 from aboch/gw46
Prioritize nw endpoint which can provide both v4 and v6 connectivity
2017-01-05 13:00:01 -08:00
Alessandro Boch
6dc6fb703b Merge pull request #1595 from sanimej/host
Add support in embedded DNS server for host loopback resolver
2017-01-05 12:18:48 -08:00
Alessandro Boch
d2e040529a Merge pull request #1589 from thaJeztah/fix-fqdn-as-hostname
Fix fqdn as hostname not being added to /etc/hosts
2017-01-05 12:18:02 -08:00
Alessandro Boch
b448d56c48 Merge pull request #1518 from realab/add-log-for-overlap
Add log when check is overlap with host nameservers or route table
2017-01-05 11:32:17 -08:00
Alessandro Boch
b72225a005 Merge pull request #1471 from datastream/patch-1
doc update
2017-01-05 11:23:19 -08:00
realityone
d94be29ec5 return an error on overlay subnet is overlapped with hosts
Signed-off-by: realityone <realityone@me.com>
2017-01-05 11:22:00 +08:00
Santhosh Manohar
f2f0212cab Merge pull request #1599 from mavenugo/v0.9
Make use of GetAllManagedPluginsForCap to avoid loading v1-plugins
2017-01-04 15:02:06 -08:00
Madhu Venugopal
c6dfc70b33 Make use of GetAllManagedPluginsForCap to avoid loading v1-plugins
Read this for more details : https://github.com/docker/docker/pull/29665

Signed-off-by: Madhu Venugopal <madhu@docker.com>
2017-01-04 14:35:42 -08:00
Madhu Venugopal
69cf4bc83e Updating Godeps to pull in plugingetter dependancy
Signed-off-by: Madhu Venugopal <madhu@docker.com>
2017-01-04 14:35:41 -08:00
Xianjie
32e713eca6 fix json
Signed-off-by: user.name <datastream@datastream-laptop.local>
Signed-off-by: datastream <guxianjie@gmail.com>
2017-01-05 01:52:37 +08:00
Alessandro Boch
cdd56ba07e Prioritize nw endpoint which can provide both v4 and v6 connectivity
- when selecting sandbox's default gw

Signed-off-by: Alessandro Boch <aboch@docker.com>
2017-01-04 09:40:28 -08:00
Alessandro Boch
ac7deb041b Merge pull request #1605 from sanimej/slice
ResolveName should return copy of IPs
2016-12-29 12:26:07 -08:00
Alessandro Boch
64002895a5 Merge pull request #1604 from allencloud/fix-nits-in-comments
fix nits in error and log
2016-12-29 12:20:04 -08:00
Alessandro Boch
6019863004 Merge pull request #1602 from allencloud/make-network-connect-error-message-readable
make network connect error message readable
2016-12-29 12:19:26 -08:00
Alessandro Boch
83ba440de9 Merge pull request #1603 from YuPengZTE/devFirst
fix typos
2016-12-29 12:18:47 -08:00
Alessandro Boch
595246bdfb Merge pull request #1568 from likel/refactor
Remove unnecessary string formats
2016-12-29 12:18:06 -08:00
Alessandro Boch
311dfbb49e Merge pull request #1383 from npcode/patch-2
docs/remote.md: Remove unnecessary backquote
2016-12-29 12:07:04 -08:00
Santhosh Manohar
16af9918c0 ResolveName should return copy of IPs
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
2016-12-29 11:35:24 -08:00
Yi EungJun
11be70cf5e docs/remote.md: Remove unnecessary backquote
Signed-off-by: Yi EungJun <eungjun.yi@navercorp.com>
2016-12-30 04:26:17 +09:00