Bryan Boreham
c50968a0a4
Stop marshalling numbers as floats
2015-09-04 20:01:31 +01:00
Bryan Boreham
145a527626
Merge pull request #1379 from awh/issues/1369-weave-dns-add-remove-optional-ip
...
LGTM. Fixes #1369
2015-09-04 12:13:38 +01:00
Bryan Boreham
5b437d2199
Update docs for mixed manual and automatic IP allocation
2015-09-03 12:17:31 +01:00
Bryan Boreham
6a34995796
Merge pull request #1370 from weaveworks/docker-py-test-matcher
...
LGTM. Fixes #1367
2015-09-01 16:47:24 +01:00
Bryan Boreham
df25f84011
Merge pull request #1375 from weaveworks/1373-document-no-rewrite-hosts
...
LGTM. Fixes #1373
2015-09-01 15:01:51 +01:00
Bryan Boreham
176ee73efe
Ensure we have the busybox image
2015-08-28 20:34:43 +01:00
Bryan Boreham
54833195ed
Call to docker-py changed upstream
2015-08-28 20:34:43 +01:00
Bryan Boreham
a45e5ac152
Test calling 'start' with a HOST_CONFIG not supplied to 'create'
2015-08-28 16:20:31 +01:00
Bryan Boreham
7652b44c21
Ensure we have the busybox image
2015-08-27 15:14:06 +01:00
Bryan Boreham
6fce798164
Factor out deserializeRoute() func
2015-08-27 15:10:31 +01:00
Bryan Boreham
7801dcd849
Factor out common loop receiving from netlink
2015-08-27 15:10:31 +01:00
Bryan Boreham
2eed101a93
In weavewait, wait for the multicast route to be added before calling container entrypoint.
...
We have moved the 'route add' command to the end of 'attach', so this
indicates that all network interface set-up is complete.
2015-08-27 15:10:31 +01:00
Bryan Boreham
3d25620d13
In proxy, rewrite /etc/hosts from 'weave attach', via new utility weavehosts
2015-08-27 15:03:41 +01:00
Bryan Boreham
6e89b036e2
Wait for ethwe via netlink, not via polling or signals
...
('docker kill' breaks restart policy)
2015-08-27 15:03:41 +01:00
Bryan Boreham
548b4aea40
Call to docker-py changed upstream
2015-08-27 14:54:20 +01:00
Bryan Boreham
5289a380f2
Use $* instead of $@ to get the desired quoting
2015-08-26 12:31:38 +01:00
Bryan Boreham
760f419e8f
Merge pull request #1354 from weaveworks/1347-dns-tombstone-comment
...
Lgtm. Closes #1347
2015-08-24 17:05:54 +01:00
Bryan Boreham
26739463a4
Escape a minus character to stop it being taken as a bullet, and clarify which example we are talking about
2015-08-24 14:19:14 +01:00
Bryan Boreham
135c34a45a
Don't remove peer from table until after we've copied its entries out
2015-08-20 13:11:51 +01:00
Bryan Boreham
ca6e54890c
Fix Transfer() when removing a peer, so we actually target the other peer.
2015-08-20 13:11:51 +01:00
Bryan Boreham
df5426dd8b
Check if we have any peers with entries, to avoid crash
2015-08-20 11:57:56 +01:00
Bryan Boreham
4d49bf3ab9
Add comment to clarify the reason why there is no explicit 'assert' test at the end.
2015-08-19 16:54:24 +01:00
Bryan Boreham
db51b772b4
Merge pull request #1327 from weaveworks/1288_restore_env
...
Closes #1288
2015-08-19 10:54:43 +01:00
Bryan Boreham
0b4e8b8754
Merge pull request #1318 from weaveworks/1305_suppress_self_reconnection
...
lgtm. Fixes #1305 .
2015-08-18 11:14:15 +01:00
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