Commit graph

940 commits

Author SHA1 Message Date
aboch
df8c425c3d Merge pull request #704 from mavenugo/dgw
Default Gateway endpoints must be annonymous
2015-10-23 17:08:10 -07:00
Madhu Venugopal
a687e431c0 Default Gateway endpoints must be annonymous
Signed-off-by: Madhu Venugopal <madhu@docker.com>
2015-10-23 16:52:11 -07:00
Madhu Venugopal
0c9eeec760 Merge pull request #703 from sanimej/bfix
Fix Endpoint Unmarshal to retrieve the fields correctly
2015-10-24 01:23:29 +02:00
Madhu Venugopal
cd971b9db4 Merge pull request #697 from aboch/bq
Do not manipulate bitseq length to reserve broadcast address
2015-10-22 22:27:27 +02:00
Alessandro Boch
115d2ec7d8 Do not manipulate bitseq length to reserve broadcast address
Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-10-22 12:58:45 -07:00
Madhu Venugopal
baf622c0a5 Merge pull request #688 from aboch/uk
Do not refresh the bitmasks on all operations in IPAM
2015-10-22 21:53:05 +02:00
Jana Radhakrishnan
15871f32fc Merge pull request #695 from mavenugo/watch_retry
Add watch retrigger when store restarts
2015-10-22 11:44:33 -07:00
aboch
1c34914bd1 Merge pull request #694 from mrjana/bugs
Purge remote endpoints from watch if it is local
2015-10-22 10:55:11 -07:00
Santhosh Manohar
133ee32980 Fix Endpoint Unmarshal to retrieve the fields correctly
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
2015-10-22 08:41:52 -07:00
Madhu Venugopal
5ef8d0f038 Add watch retrigger when store restarts
Signed-off-by: Madhu Venugopal <madhu@docker.com>
2015-10-21 21:45:52 -07:00
Jana Radhakrishnan
c3c4825f80 Purge remote endpoints from watch if it is local
A local endpoint is known to the watch database only
during Join. But the same endpoint can be known to the
watch database as remote endpoint well before the Join
because a CreateEndpoint updates the endpoint to the store.
So on Join when you come to know that this is indeed a
local endpoint remove it from remote endpoint list and add it
to local endpoint list.

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
2015-10-21 21:20:12 -07:00
Madhu Venugopal
bd53638727 Merge pull request #689 from mrjana/bugs
Synchronize /etc/hosts updates at file level
2015-10-21 20:32:32 +02:00
Madhu Venugopal
cfece1b157 Merge pull request #690 from aboch/aa
Allow remote ipam driver to return nil address
2015-10-21 20:30:53 +02:00
Jana Radhakrishnan
f87ed62d10 Merge pull request #691 from aboch/kv
Update libkv godeps
2015-10-21 07:56:41 -07:00
Jana Radhakrishnan
cdb82dc22d Synchronize /etc/hosts updates at file level
Introduced a path level lock to synchronize updates
to /etc/hosts writes. A path level cache is maintained
to only synchronize only at the file level.

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
2015-10-21 07:45:29 -07:00
Alessandro Boch
3cc33dc491 Update libkv
- To commit id  c2aac5dbbaa5c872211edea7c0f32b3bd67e7410

Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-10-20 23:55:22 -07:00
Alessandro Boch
379609e362 Allow remote ipam driver to return nil address
- This brings the remote ipam driver in pair with the local one.
  As of now remote driver package is assuming a valid address in CIDR
  form is always present in a nil error AddressRequestResponse,
  which is no longer true as community has requested to remove this
  limitation.
- We are ok to remove it until we can provide a null ipam driver
  option in future releases.

Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-10-20 23:08:59 -07:00
Alessandro Boch
f1b2705d5e Do not refresh the bitmasks on all operations in IPAM
- Currently allocator pulls all the bitmasks from datastore
  before processing each public API. This is not needed as
  the APIs already selectively pull the interested bitmask
  when needed.

Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-10-20 18:34:12 -07:00
Jana Radhakrishnan
c14ab8592e Merge pull request #685 from aboch/ay
Allow anonymous endpoint
2015-10-20 18:14:13 -07:00
Jana Radhakrishnan
1b323aa7d5 Merge pull request #686 from mavenugo/dgw
Dont fail the Get functions if there is an error in one of the stores
2015-10-20 17:55:00 -07:00
Madhu Venugopal
07bb3dcdba Dont fail the Get functions if there is an error in one of the stores
Signed-off-by: Madhu Venugopal <madhu@docker.com>
2015-10-20 16:57:12 -07:00
Alessandro Boch
e41a9cf59d Allow anonymous endpoint
- Allow to create an endpoint as anonymous.
  An anonymous endpoint does not get added
  to the network service records.

Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-10-20 14:05:46 -07:00
Jana Radhakrishnan
a10c1e3460 Merge pull request #684 from sanimej/bfix
Fixes #680
2015-10-19 16:32:08 -07:00
Madhu Venugopal
e1e617a90b Merge pull request #683 from mrjana/epclean
Handle maskable error during endpoint delete
2015-10-20 01:17:10 +02:00
Jana Radhakrishnan
d686fbb9c4 Handle maskable error during endpoint delete
Do not log unncessary warning messages when you get
maskable error from driver during an endpoint delete.

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
2015-10-19 15:56:25 -07:00
Madhu Venugopal
d8e14c9efc Merge pull request #676 from sanimej/bfix
Fix the daemon panic on consul server restart
2015-10-20 00:18:42 +02:00
Madhu Venugopal
7008ac7948 Merge pull request #682 from mrjana/epclean
Cleanup dangling local endpoints
2015-10-19 23:58:14 +02:00
Jana Radhakrishnan
33d336ac72 Cleanup dangling local endpoints
When we bootup cleanup all dangling local
endpoints since they are not needed anymore.
The only reason it can happen is when the process
went down ungracefully after an endpoint is
created but before join is successfull.

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
2015-10-19 14:44:27 -07:00
Madhu Venugopal
9145f18132 Merge pull request #675 from mrjana/model
Make sandbox cleanup robust for ungraceful exits
2015-10-19 22:47:22 +02:00
Jana Radhakrishnan
773648507d TC for ungraceful restart of default network
Added an integration test to test the ungraceful
restart of the default bridge network.

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
2015-10-19 13:31:07 -07:00
Jana Radhakrishnan
96d819cb06 Make sandbox cleanup robust for ungraceful exits
When the daemon has a lot of containers and even when
the daemon tries to give 15 second to stop all containers
it is not enough. So the daemon forces a shut down at the end
of 15 seconds. And hence in a situation with a lot of
containers even gracefully bringing down the daemon will result
in a lot of containers fully not brought down.

In addition to this the daemon force killing itself can happen
in any arbitrary point in time which will result in inconsistent
checkpointed state for the sandbox. This makes the cleanup really
fail when we come back up and in many cases because of this
inability to cleanup properly on restart will result in daemon not
able to restart because we are not able to delete the default network.

This commit ensures that the sandbox state stored in the disk is
never inconsistent so that when we come back up we will always be
able to cleanup the sandbox state.

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
2015-10-19 13:30:47 -07:00
Madhu Venugopal
e2598f6f8d Merge pull request #672 from mrjana/bugs
Bridge driver should return maskable error
2015-10-19 22:15:06 +02:00
Santhosh Manohar
316a652e6e Fixes #680
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
2015-10-19 02:35:54 -07:00
Santhosh Manohar
4df4ba70ca Fix the daemon panic on consul server restart
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
2015-10-19 01:29:23 -07:00
Jana Radhakrishnan
afd6162240 Bridge driver should return maskable error
Bridge driver should return maskable error during Leave
or DeleteEndpoint since this can be an expected sceanrio
when libnetwork tries to leave and delete default bridge
endpoints and bridge driver does not persist with the default
bridge. This is only expected during an ungraceful exit of
the daemon but will cause confusion to the user if it shows
up as failures on a deamon restart after an ungraceful exit.

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
2015-10-16 16:11:55 -07:00
Madhu Venugopal
2509014be8 Merge pull request #667 from LK4D4/improve_name_gen
Improve name gen
2015-10-16 12:49:47 -07:00
Alexander Morozov
537ba03dd1 Use netlink.LinkByName instead of net.InterfaceByName
It's x350 time faster.

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-10-16 11:33:17 -07:00
Alexander Morozov
604753b43a Fix build image name
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-10-16 11:33:08 -07:00
Jana Radhakrishnan
91ddfd286f Merge pull request #661 from aboch/gr
Explicitly set namepsace for ipamutils.ElectInterface
2015-10-16 07:05:07 -07:00
Jana Radhakrishnan
5d3aee15cc Merge pull request #663 from mavenugo/dgw
Fixed Vagrantfile to use systemd script
2015-10-16 07:04:27 -07:00
Jana Radhakrishnan
d834cd42b2 Merge pull request #646 from coolljt0725/fix_cluster_store
Fix docker daemon failed to start with multiple cluster store address
2015-10-16 06:52:34 -07:00
Madhu Venugopal
04126b850a Fixed Vagrantfile to use systemd script
Signed-off-by: Madhu Venugopal <madhu@docker.com>
2015-10-16 05:03:47 -07:00
Alessandro Boch
79b37def48 Explicitly set namepsace for ipamutils.ElectInterface
Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-10-15 22:16:40 -07:00
Madhu Venugopal
4b5fff4eda Merge pull request #660 from aboch/br
Fix ipam state cleanup logic
2015-10-15 18:03:47 -07:00
Alessandro Boch
e0f1ac4b2e Fix ipam state cleanup logic
- Got accidentally broken by another commit

Signed-off-by: Alessandro Boch <aboch@docker.com>
2015-10-15 17:37:22 -07:00
Madhu Venugopal
bfa50bd1fc Merge pull request #657 from mrjana/integ
Add etcd integrations tests
2015-10-15 11:37:52 -07:00
Jana Radhakrishnan
33aa626bc9 Add etcd integrations tests
- Added etcd integration test for overlay
    - Added etcd integration test for multinode
      with mock test driver suitable for circleci
    - Added multinode tests for zookeeper
    - Made the script smart enough to only start
      data stores necessary for the requested suites

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
2015-10-14 23:07:30 -07:00
Jana Radhakrishnan
8c543556a3 Merge pull request #656 from mavenugo/dgw
Changed Labels to DriverOpts
2015-10-14 16:58:56 -07:00
Madhu Venugopal
e8370e78d0 Changed Labels to DriverOpts
Signed-off-by: Madhu Venugopal <madhu@docker.com>
2015-10-14 16:38:46 -07:00
Madhu Venugopal
6c104e114a Merge pull request #645 from mrjana/integ
Add support for selectively running a suite
2015-10-14 10:41:10 -07:00