Bryan Boreham
f0915221d1
Rename 'reclaim' to 'noErrorUnknown' which describes the behaviour better
2015-07-23 20:16:30 +01:00
Bryan Boreham
647b755b64
Check manually-assigned addresses with IPAM to see if they clash
2015-07-21 17:02:52 +01:00
Bryan Boreham
e34093c328
Merge pull request #1197 from weaveworks/1158-flaky
...
LGTM
2015-07-20 16:02:52 +01:00
Bryan Boreham
90b7c3625d
Merge pull request #1176 from weaveworks/1156-gossip-timestamp
...
LGTM
2015-07-20 14:28:01 +01:00
Bryan Boreham
2a1f090a88
Merge pull request #1183 from weaveworks/1181-data-race
...
Correctly stop the test gossip router to prevent complaints of data races in subsequent tests.
2015-07-17 17:14:46 +01:00
Bryan Boreham
68afbe31b0
Shrink image file size
2015-07-17 14:07:23 +01:00
Bryan Boreham
2dbf83889b
Remove unused error messages
2015-07-17 12:19:54 +01:00
Bryan Boreham
9b2c5b8466
Improve description of merge error
2015-07-17 12:19:33 +01:00
Bryan Boreham
1f4b943454
More helpful error message when --ip-alloc-range mismatched
2015-07-17 11:42:30 +01:00
Bryan Boreham
f4d6e028d4
Simplify
2015-07-17 11:33:29 +01:00
Bryan Boreham
61c7c034e7
Re-arrange weaveexec Dockerfile to improve download times
2015-07-16 17:02:00 +01:00
Bryan Boreham
4c5920a50a
Add fuzz-test for Claim
2015-07-16 16:12:23 +01:00
Bryan Boreham
c3c40b15f1
Avoid hanging the caller when we try to claim from a dead peer
2015-07-16 16:12:23 +01:00
Bryan Boreham
2fa65f0a22
Smoke-test for claim operation
2015-07-16 16:12:23 +01:00
Bryan Boreham
af7ca99dc4
Extend unit-tests for claim operation
2015-07-16 16:12:23 +01:00
Bryan Boreham
2d224d423d
Add SpaceRequestDenied message
2015-07-16 16:12:23 +01:00
Bryan Boreham
e7088e5daf
Extract decodeRange function
2015-07-16 16:12:23 +01:00
Bryan Boreham
d65409e97e
Improve comment & log for deferred claim
2015-07-16 16:12:23 +01:00
Bryan Boreham
b3979c9505
Respond to paxos message if we already have a ring
2015-07-15 13:05:25 +01:00
Bryan Boreham
273a0fba47
Add sender to mock broadcast messages
2015-07-15 13:05:25 +01:00
Bryan Boreham
acf13dc157
Add sender to OnGossipBroadcast()
2015-07-15 12:07:56 +01:00
Bryan Boreham
6d17fe5df5
Need to restart docker after systemd reconfigure
2015-07-14 12:12:35 +01:00
Bryan Boreham
907de67a40
Merge pull request #1125 from weaveworks/smoke-overlay
...
Upgrade smoke-tests to use 'overlay' storage and Ubuntu 15.04
2015-07-14 11:51:53 +01:00
Bryan Boreham
4853a1da05
Tell Docker to use 'overlay' storage driver
2015-07-13 18:28:29 +01:00
Bryan Boreham
db8016112e
Upgrade to Ubuntu 15.04
2015-07-13 18:28:11 +01:00
Bryan Boreham
80e56d67db
Remove Docker dangling images after copying new ones
2015-07-13 14:03:47 +01:00
Bryan Boreham
5e43f0fd4c
Merge pull request #1079 from weaveworks/68-rewrite-etc-hosts
...
LGTM. Closes #68 , with remainder to #1122
2015-07-13 11:03:20 +01:00
Bryan Boreham
75646d4786
Merge remote-tracking branch 'origin/1.0'
...
Conflicts:
router/connection.go
2015-07-09 12:56:37 +01:00
Bryan Boreham
b93070f91a
Fix log message on peer move
2015-07-09 12:51:52 +01:00
Bryan Boreham
cbcd5da680
Fix log message on peer move
2015-07-09 12:33:39 +01:00
Bryan Boreham
cf4ce0a07d
Don't cancel address claim when caller closes socket
2015-07-09 10:47:34 +01:00
Bryan Boreham
78c4b06492
Don't wait for certainty before responding to Claim
...
Conflicts:
ipam/claim.go
2015-07-09 10:47:27 +01:00
Bryan Boreham
0b032386c1
Merge pull request #1092 from weaveworks/1082_usage_to_stderr
...
Note I have rebased this and merged changes. Closes #1082 .
2015-07-07 15:43:23 +01:00
Bryan Boreham
6666fd14ac
Allow multiple --ignore-iface arguments
2015-07-07 12:52:29 +01:00
Bryan Boreham
e621aca77e
Added --ignore-iface option to netcheck and use it to ignore weave bridge route
2015-07-07 12:52:29 +01:00
Bryan Boreham
646cf84b4a
Merge pull request #1072 from weaveworks/1043_common_launch_args
...
LGTM
2015-07-06 17:15:51 +01:00
Bryan Boreham
f593c2fbf2
Change default IP allocation range from 10.128/10 to 10.32/12
2015-07-06 17:09:05 +01:00
Bryan Boreham
bd24307c2b
Merge pull request #1069 from 2opremio/fons/fix-tests-OSX
...
LGTM
2015-07-06 16:43:26 +01:00
Bryan Boreham
ff2d7451e2
Remove -debug option, superceded by --log-level
2015-07-04 03:27:07 +01:00
Bryan Boreham
8c6c692926
Seed the math/rand generator from the time
2015-07-03 13:39:47 +01:00
Bryan Boreham
84238a0262
Amend error message to reflect usage situation
2015-07-01 14:58:42 +01:00
Bryan Boreham
a5ddb63fca
Remove Info.Print in favour of Log.Info
2015-07-01 14:01:45 +01:00
Bryan Boreham
a938608cc8
Call weave reset before deleting containers, to improve clean-down
2015-07-01 13:19:43 +01:00
Bryan Boreham
013380c7e7
Update router code to use common logger
2015-07-01 12:26:23 +01:00
Bryan Boreham
13c0b62f96
When looking at proxy logs, use both stderr and stdout
2015-07-01 12:26:23 +01:00
Bryan Boreham
7276fc1d4b
Wire up selection of logging levels to match old behaviour
...
- note that all output is now going to stderr.
2015-07-01 12:26:23 +01:00
Bryan Boreham
67a6961b4b
Adjust logrus feature of padding all lines less than 44 chars with spaces at the end
2015-07-01 12:26:23 +01:00
Bryan Boreham
d82578d895
Replace logging calls with new style
2015-07-01 12:26:23 +01:00
Bryan Boreham
c786e7eb5a
Switch from basic logger to logrus
2015-07-01 12:26:23 +01:00
Bryan Boreham
91099694c9
Send error message to stderr
2015-07-01 12:17:02 +01:00
Bryan Boreham
c9a20ae10c
Warn user if they are trying to use a specific address that clashes with an existing route
2015-07-01 12:17:02 +01:00
Bryan Boreham
f05225da22
Check specific addresses differently to networks
...
For a network, as used by IPAM, we care if *any* address in the range
could possibly conflict with an existing address routed by the host.
When given a single address, we only care if *that specific address*
conflicts with an existing route.
2015-07-01 12:15:04 +01:00
Bryan Boreham
6403e7a11c
Add missing rule to rebuild netcheck when its source changes
2015-07-01 11:13:40 +01:00
Bryan Boreham
565454d3cb
fixed Logf format specifier
2015-06-26 17:22:35 +01:00
Bryan Boreham
c84c5dbcdf
Make TestGossipRouter goroutine easier to follow
2015-06-26 11:53:14 +01:00
Bryan Boreham
6725c8355f
Check the result of Allocate in TestFakeRouterSimple()
2015-06-26 11:53:03 +01:00
Bryan Boreham
c659e3448a
Add a flush() function to the mock gossip router, and call it where required
2015-06-26 11:40:58 +01:00
Bryan Boreham
959e5f0082
Use different object types for mock gossip messages
2015-06-26 11:38:25 +01:00
Bryan Boreham
6488b0d11c
More idiomatic exitChan
2015-06-26 11:38:07 +01:00
Bryan Boreham
7c741d6f7e
Extend 'go get' to tests
...
The `-t` flag asks Go to fetch anything required for tests, which is more necessary now we have added testify.
2015-06-25 16:42:53 +01:00
Bryan Boreham
8a4b0d536e
Updated after review feedback
2015-06-25 15:41:06 +01:00
Bryan Boreham
c76f640e2e
Simpler implementation of weighted-random order
2015-06-25 14:54:44 +01:00
Bryan Boreham
b472da18f0
Improve logging of unicast gossip errors
2015-06-25 14:04:37 +01:00
Bryan Boreham
c58cc449c0
More complex ChoosePeersToAskForSpace, with better complexity
2015-06-25 13:19:49 +01:00
Bryan Boreham
af9668f130
Keep trying peers to ask for space until we find one that doesn't error
2015-06-25 12:47:38 +01:00
Bryan Boreham
9f784b3c31
Report errors in unicasting gossip
2015-06-25 12:22:53 +01:00
Bryan Boreham
d1eb2917e8
Merge documentation from branch 1.0 into master
2015-06-22 14:32:12 +01:00
Bryan Boreham
9a631d0ecd
Merge documentation from branch 'latest_release_doc_updates' into 1.0
2015-06-22 14:25:56 +01:00
Bryan Boreham
c8032b6b25
Merge pull request #977 from bboreham/proxy-net-syntax
...
Change one IPAM proxy example to use a network
2015-06-22 14:24:24 +01:00
Bryan Boreham
68ca6ebe04
Change one IPAM proxy example to use the 'net:' syntax
2015-06-22 14:15:24 +01:00
Bryan Boreham
19fe808dff
Update links in changelog to point at latest_release
2015-06-18 11:59:44 +01:00
Bryan Boreham
b7281cc08d
Add release 1.0.0
2015-06-18 11:23:44 +01:00
Bryan Boreham
ff838a14d9
Fix terminology in error message.
...
Also removed hint on usage, because `-iprange` is on by default.
2015-06-17 13:16:53 +01:00
Bryan Boreham
34e0e3bb24
Merge pull request #935 from bboreham/weavedns-races
...
All unit and smoke tests passed.
2015-06-17 12:05:43 +01:00
Bryan Boreham
40efc347b6
Cosmetic
2015-06-17 11:41:46 +01:00
Bryan Boreham
9636675c2c
Split part of DNSServer.Start() to a separate ActivateAndServe()
...
Specifically, move the part that blocks, and call that as necessary.
This means Start() can run on the caller's goroutine and avoid race conditions.
2015-06-17 11:35:53 +01:00
Bryan Boreham
1b57a24789
Don't re-initialise log writers unless the type changed.
...
This avoids race-conditions in unit tests where the initialisation
is on a different goroutine to the logging.
2015-06-17 11:35:01 +01:00
Bryan Boreham
90fb201a51
Copy the DNS entry going into the cache, to avoid races.
...
The shuffleAnswers() call ends up acting on the same data,
so it seems simplest to resolve ownership arguments by copying.
2015-06-17 11:35:01 +01:00
Bryan Boreham
657133db50
Move the counting of results from DNS goroutine to test goroutine to avoid race-condition
2015-06-17 11:35:01 +01:00
Bryan Boreham
e68364cb3b
Don't overwrite recvChan; it just creates a race condition
2015-06-17 11:35:01 +01:00
Bryan Boreham
1f92ae6ba8
Swap the order in which two goroutines are started, since one relies on the other.
2015-06-17 11:35:01 +01:00
Bryan Boreham
a6bebd85ed
Remove 'running' member that triggers a race warning and isn't necessary.
2015-06-17 11:35:01 +01:00
Bryan Boreham
5960ecb3d1
Expand description of -initpeercount
2015-06-17 11:12:10 +01:00
Bryan Boreham
fd5ac633d3
Use weave attach --or-die in proxy instead of killing it in the proxy.
2015-06-16 16:05:41 +01:00
Bryan Boreham
ee4daf02b5
Introduce ipam_cidrs_or_die, and call it where we don't want the
...
container to survive an ipam failure.
2015-06-16 15:27:49 +01:00
Bryan Boreham
32d3909023
Make ipam_cidrs() return failure when call_weave fails
2015-06-16 14:47:47 +01:00
Bryan Boreham
9a99a51e14
Merge pull request #925 from bboreham/922-remove-dot
...
Remove trailing dot from hostnames. Fixes #922 .
2015-06-16 13:58:12 +01:00
Bryan Boreham
7a106aeb5f
Release lock before sending on a channel
2015-06-16 11:44:25 +01:00
Bryan Boreham
79db00a90e
Strip trailing period from hostname generated from weavedns domain.
...
We strip at the calling point rather than in the server, because DNS
servers do see the domain as ending with a '.' representing the root.
2015-06-16 10:26:11 +01:00
Bryan Boreham
dd9adf6a65
Don't add a trailing newline to the domain
2015-06-16 10:25:54 +01:00
Bryan Boreham
56e0636b14
Output error message if http call to weave or weavedns fails
2015-06-15 17:58:59 +01:00
Bryan Boreham
6534cc6ae3
Merge pull request #919 from bboreham/915-not-again-again
...
Fixes #915
2015-06-15 17:06:30 +01:00
Bryan Boreham
d25d0810af
Extend the 'block' flag to block allocateAgain()
...
otherwise we can re-insert the entry into the map after a parallel
allocateAgain() has cleared the flag. And it /that/ happens in
parallel with a free() then the data-structure can get out of sync.
2015-06-15 16:51:27 +01:00
Bryan Boreham
7e6a478283
Merge pull request #914 from rade/911_different_gossip_channels
...
LGTM. Fixes #911
2015-06-15 14:42:22 +01:00
Bryan Boreham
0ff311356d
Flush the background updater goroutines to make tests reliable
2015-06-15 13:48:54 +01:00
Bryan Boreham
e49a29197b
Add a Flush() routine to synchronize callers
2015-06-15 13:48:24 +01:00
Bryan Boreham
2b7fb699af
Clean up a couple of compilation errors
2015-06-15 13:47:01 +01:00
Bryan Boreham
f3ad8bd52f
Merge branch 'weave-fix-unittest' of https://github.com/inercia/weave into inercia-weave-fix-unittest
2015-06-15 11:51:14 +01:00
Bryan Boreham
4c01af4e1d
Check if container is still running right after allocating
2015-06-12 17:09:11 +01:00
Bryan Boreham
13944f3811
Refactor is-running check so we can re-use more of the code
2015-06-12 17:09:11 +01:00