Bryan Boreham
7c65b6e3bb
Merge pull request #1990 from weaveworks/issues/1743-restricted-electorate
...
Support non-electing peers via --observer
2016-03-03 10:46:58 -08:00
Bryan Boreham
824329d4c9
Fix up unit tests to look at CIDRs instead of addresses.
2016-03-02 17:21:52 -08:00
Bryan Boreham
604309fb53
Parse CIDR strings without separating into subnet and address
2016-03-02 17:21:52 -08:00
Bryan Boreham
73f1a04d5f
Deal in subnets, not ranges, when requesting address allocation
2016-03-02 17:21:51 -08:00
Bryan Boreham
b76e2a87cf
Store address+subnet prefix for 'owned' addresses
2016-03-02 17:21:24 -08:00
Bryan Boreham
b6eec08247
Return all applicable results from Lookup
...
and stop erroring on Lookup not found; just return a blank result
2016-03-02 17:01:12 -08:00
Bryan Boreham
03563e847e
Remember addresses outside of the allocation range
2016-03-02 17:01:12 -08:00
Bryan Boreham
4c159a9af6
Merge pull request #1973 from weaveworks/issues/678-persist-owned2
...
Persist 'owned' addresses in IPAM
2016-03-02 16:58:23 -08:00
Bryan Boreham
bc61838aaa
Merge pull request #2015 from weaveworks/1-5-edits2
...
Reorganization of docs for WordPress
2016-03-02 16:24:14 -08:00
Bryan Boreham
8c9937b0be
Fix up some wording and links
2016-03-02 15:39:06 -08:00
Bryan Boreham
95cbc8940e
Sync 'owned' data with existing containers at startup
2016-03-02 11:35:24 -08:00
Bryan Boreham
f29716387f
Persist the 'owned' address set
2016-03-02 11:35:24 -08:00
Bryan Boreham
532a6b69d9
Merge pull request #1672 from weaveworks/vagrant-pin-docker
...
Pin docker version in vagrant VM
2016-03-01 14:15:05 -08:00
Bryan Boreham
f2ef5e880a
Merge pull request #1982 from weaveworks/issues/578-pid-equals-host
...
Use --pid=host
2016-03-01 12:41:52 -08:00
Bryan Boreham
dd74bb1774
Simplify by using GetFromPid
2016-03-01 12:12:46 -08:00
Bryan Boreham
cb01e3f87b
Typo
2016-02-29 15:08:55 -08:00
Bryan Boreham
590c1dde1d
Merge branch '1.4'
2016-02-29 15:04:12 -08:00
Bryan Boreham
be3f88656b
Add release v1.4.5
2016-02-29 22:28:58 +00:00
Bryan Boreham
246f394731
Merge branch '1.4'
2016-02-29 14:07:02 -08:00
Bryan Boreham
7453c7a5dd
Merge branch '1.4'
2016-02-29 08:22:22 -08:00
Bryan Boreham
ce4857f5dc
Merge pull request #2001 from weaveworks/issues/1996-try-all-pending-allocations
...
Try all pending allocations - LGTM. Fixes #1996
2016-02-29 08:20:49 -08:00
Bryan Boreham
f17d50cc50
Check the exact version of the image, not the base
2016-02-26 23:44:04 +00:00
Bryan Boreham
436f8ef7c8
Compare the environment so we can detect a change in password
2016-02-26 23:41:57 +00:00
Bryan Boreham
65f435f042
Smoke-test for restarts
2016-02-26 23:41:57 +00:00
Bryan Boreham
561c8d012c
Treat a restarting container like a running one, for idempotency
2016-02-26 23:41:46 +00:00
Bryan Boreham
bb4c0f5247
Start existing container, if its image and arguments match
2016-02-26 23:40:02 +00:00
Bryan Boreham
b064bcce49
Log when command-line peer list overridden by persisted list
...
Reworked interface to router so we split setting up the initial list
from beginning to make connections - we shouldn't do that until
after router.Start().
2016-02-19 14:29:33 +00:00
Bryan Boreham
b442567406
Add two functions required by ipamapi "contract" but not actually used
2016-02-18 15:29:10 +00:00
Bryan Boreham
ba8926a6ea
Persist set of peers to connect to
2016-02-17 18:12:16 +00:00
Bryan Boreham
546f9592f9
Hard-fail on persistence errors, otherwise the network can get confused on a restart.
...
Create `Allocator.fatalf()`, for consistency
2016-02-12 18:12:26 +00:00
Bryan Boreham
06f3793f05
Remove persisted IPAM ring data on peerName change
2016-02-12 18:12:26 +00:00
Bryan Boreham
f396c60402
Persist the Ring
2016-02-12 18:12:26 +00:00
Bryan Boreham
ad036499eb
Add db infra to IPAM
2016-02-12 18:12:26 +00:00
Bryan Boreham
38c6eb28e8
Add basic infrastructure to use BoltDB for persistence
2016-02-12 18:12:26 +00:00
Bryan Boreham
7bbc9f1b82
Don't remove the weave network on shutdown because it bricks Docker 1.10
2016-02-09 10:02:06 +00:00
Bryan Boreham
9386c01845
Wait for multicast route on any interface, to match weave script
...
which only adds a route if there isn't one already
2016-02-08 14:04:25 +00:00
Bryan Boreham
ed3c50f43e
Merge pull request #1951 from weaveworks/issues/1940-remove-proxy-dockerbridgeip-dep
...
Use netlink instead of shelling out to `weave docker-bridge-ip`
2016-02-08 11:05:10 +00:00
Bryan Boreham
9ac62e8005
Extract common getenv-testing code
2016-02-08 10:46:18 +00:00
Bryan Boreham
034da376c4
Make error messages on ring merge clearer
2016-02-08 10:13:41 +00:00
Bryan Boreham
f9f6649f90
Check some ring entries via AllRangeInfo, to improve coverage
2016-02-04 15:12:13 +00:00
Bryan Boreham
a5c9898884
Checking for existing entries is pointless when the Ring starts empty
2016-02-04 15:12:13 +00:00
Bryan Boreham
839eb28310
Unit test for ring.ClaimForPeers
2016-02-04 15:11:46 +00:00
Bryan Boreham
07b79568dd
Resurrect apparently-dead containers on ContainerStarted event
2016-02-04 13:49:43 +00:00
Bryan Boreham
1d3c80ab49
Merge pull request #1944 from weaveworks/issues/1940-remove-proxy-weaveps-dep
...
Use netlink instead of shelling out to `weave ps`
2016-02-04 13:45:58 +00:00
Bryan Boreham
38013d2f41
Kill zombies
2016-02-04 12:52:16 +00:00
Bryan Boreham
71da517e88
Refactor to collect all code that touches alloc.owned
2016-02-02 13:57:12 +00:00
Bryan Boreham
0a4b3a04ba
Wait for plugin status via unix socket
2016-02-01 10:11:46 +00:00
Bryan Boreham
78f2d82984
Extract function to listen on Unix socket
2016-02-01 10:11:46 +00:00
Bryan Boreham
c2a869491f
Check State.Restarting as well as State.Running
2016-01-29 17:41:02 +00:00
Bryan Boreham
a750ef8033
Don't check if container is running when we only want its ID.
...
This avoids trying to decide if "restarting" is as good as "running".
In wait_for_status we now explitly check_running, and
in dns_add/remove we add an extra check_running test.
2016-01-29 17:41:02 +00:00
Bryan Boreham
3c6211f9f2
Don't rm old containers, in case we want the log
2016-01-29 15:07:14 +00:00
Bryan Boreham
b9502ee1cd
Check if container is running before using its image to ask for version
2016-01-29 14:43:02 +00:00
Bryan Boreham
e4828ad30a
Remove 'nameserver' option
2016-01-29 14:03:04 +00:00
Bryan Boreham
ea50b3d5cc
Create a different weavevolumes container for each Weave version.
...
They will be named 'weavevolumes-v1.4.3', 'weavevolumes-latest', etc.
Use a label to identify these containers so they can all be removed on `weave reset`.
2016-01-29 12:22:22 +00:00
Bryan Boreham
3297b93edb
Smoke-test 'weave ps' and restarting when using plugin
2016-01-29 12:13:00 +00:00
Bryan Boreham
6d0e867ad0
Capture addresses from veths with prefix 'ethwe'
...
This is to address the plugin case, where the veth will have a name like 'ethwe0'.
Previously we only looked at the device named exactly 'ethwe'.
Covers `weave ps` and reclaim of addresses for IPAM and WeaveDNS.
2016-01-29 12:13:00 +00:00
Bryan Boreham
1cea9c1c87
Extract function to detect container running in host namespace
2016-01-29 12:13:00 +00:00
Bryan Boreham
3320a9e7d4
Re-organise code so we can clean up using defer and return error codes to top level
2016-01-29 11:41:24 +00:00
Bryan Boreham
9b90a938f5
Remove Unix domain sockets on shutdown
2016-01-28 18:26:34 +00:00
Bryan Boreham
c0ece16881
Don't need to rm the network here because 'weave reset' does it
2016-01-28 17:55:27 +00:00
Bryan Boreham
598efe5d1a
Reduce docker volumes for weavewait to just one set.
...
- Create an auxilliary container 'weavevolumes' to hold the '/w/w'
files, and map into that instead of creating new volumes every time.
- Show "/bin/false" as its command in `docker ps` instead of
"/home/weave/sigproxy".
- Remove volumes when cleaning up smoketest containers.
2016-01-28 15:57:22 +00:00
Bryan Boreham
482045aed8
Send back an http error code with any plugin errors.
2016-01-27 14:53:26 +00:00
Bryan Boreham
610a90c727
Claim address requested by caller
2016-01-27 12:11:01 +00:00
Bryan Boreham
952e9de265
Remove superfluous line and fix comment typo
2016-01-25 18:05:43 +00:00
Bryan Boreham
ef1b8d6237
Merge pull request #1927 from weaveworks/revert-1808-1803-plugin-mac
...
Revert "Refactor plugin to create veths in CreateEndpoint"
2016-01-25 18:04:56 +00:00
Bryan Boreham
2970df4505
Revert "Refactor plugin to create veths in CreateEndpoint"
2016-01-25 17:57:53 +00:00
Bryan Boreham
1a59734cdb
Support subnet and iprange arguments on network create
2016-01-22 13:37:36 +00:00
Bryan Boreham
c2fba38c46
Merge pull request #1902 from weaveworks/vendored-dep-management-doc
...
Document vendored dependency management commands
2016-01-21 14:14:47 +00:00
Bryan Boreham
7455a699c4
Use more chars from endpointID to reduce clashes
2016-01-21 12:36:58 +00:00
Bryan Boreham
7ec17ab2ef
Merge branch '1.4'
2016-01-21 10:18:01 +00:00
Bryan Boreham
cda98a6375
Merge pull request #1917 from weaveworks/issues/1911-fix-unexpected-eof
...
Fix unexpected EOF with Docker 1.10-rc1 and proxy --rewrite-inspect
2016-01-21 10:15:20 +00:00
Bryan Boreham
5d598a1015
Refactor to make suffix part clearer
2016-01-20 16:50:42 +00:00
Bryan Boreham
adafb79e34
Move endpoint creation into CreateEndpoint so we can return the MAC address
2016-01-20 16:45:08 +00:00
Bryan Boreham
e47360f8dc
Warn, don't error, if unable to remove network in 'weave stop'
2016-01-20 16:18:09 +00:00
Bryan Boreham
6035b54277
Send back an http error code in case of error, so Docker is clear something went wrong
2016-01-20 15:36:42 +00:00
Bryan Boreham
a238130613
Give more explanation if we can't find weave to talk to
2016-01-20 15:36:34 +00:00
Bryan Boreham
998be42a52
Don't crash if no default subnet available
2016-01-20 15:36:25 +00:00
Bryan Boreham
6570b0ba1a
Merge branch '1.4'
2016-01-20 14:06:00 +00:00
Bryan Boreham
13ec517f94
Merge pull request #1910 from weaveworks/1909-forEachRoute-panic
...
cope with errors during route traversal
2016-01-20 14:05:10 +00:00
Bryan Boreham
dd7271aaa2
Merge pull request #1866 from weaveworks/901-peername-from-machine-id
...
Derive peer name from product_uuid; LGTM
2016-01-18 15:29:44 +00:00
Bryan Boreham
5e1e8ec543
Suggest user disables systemd timeout if using plugin
2016-01-18 11:45:17 +00:00
Bryan Boreham
efd4fc4704
Merge pull request #1901 from weaveworks/1897-weaveutil-plugin-network
...
move plugin network creation/removal into weaveutil
2016-01-15 11:07:38 +00:00
Bryan Boreham
8eeb6dd836
Only rebuild without coverage if we're going to publish
2016-01-14 15:33:46 +00:00
Bryan Boreham
bd7e5d6921
Do a build before the 'go test'; perversely this runs faster
2016-01-14 15:29:58 +00:00
Bryan Boreham
7c1e80ca89
Don't do coverage on vendored directories
2016-01-14 14:16:28 +00:00
Bryan Boreham
9aae1fa3c9
Save the ~/docker directory in cache because rebuild_image stores things there
2016-01-14 13:02:32 +00:00
Bryan Boreham
b055c9a4a2
Fool-proofing
2016-01-13 10:33:49 +00:00
Bryan Boreham
3daceac668
Allow pre-existing plugin on 'weave launch-plugin'
2016-01-13 10:05:02 +00:00
Bryan Boreham
517a2e0e0a
Fix nonzero exit code for a pre-existing plugin on launch;
...
do this purely for the 'plugin running' case, not 'restarting' etc.
2016-01-12 17:06:38 +00:00
Bryan Boreham
bb8c7c599c
Revert "don't launch anything when plugin is running"
...
This reverts commit 3ade796e8d .
2016-01-12 16:51:49 +00:00
Bryan Boreham
0d0fc39236
More review feedback
2016-01-12 15:35:34 +00:00
Bryan Boreham
e468399616
Extend the timeout for dead containers to 30 seconds,
...
but remove them if they are destroyed, to reduce starvation
when users are creating and destroying containers quickly.
2016-01-12 14:38:44 +00:00
Bryan Boreham
b2b293a8ee
Added 'ContainerDestroyed()' callback from docker client
2016-01-12 14:38:44 +00:00
Bryan Boreham
2f885a7906
Reclaim all addresses on restart
2016-01-12 14:38:44 +00:00
Bryan Boreham
7985e43e68
Add 'weave restart' command
2016-01-12 14:38:44 +00:00
Bryan Boreham
f84b933d7c
Leave container allocations for a time after death
...
so they will be reclaimed if the container is restarted.
Still cancel pending operations immediately a container dies
2016-01-12 14:38:44 +00:00
Bryan Boreham
4672e9ec1f
Generalise ticker so we can use it for more than paxos,
...
and call tryPendingOps() from it so we eventually re-try operations
2016-01-12 14:38:44 +00:00
Bryan Boreham
3b29e8e6f2
Check for existing interfaces and routes after subscribing to receive new ones
2016-01-12 12:27:55 +00:00
Bryan Boreham
a1dff70ba2
Review feedback
2016-01-11 11:55:11 +00:00
Bryan Boreham
9a4adccec6
Remove inconsistent information about restart policy
2016-01-11 11:20:40 +00:00