Bryan Boreham
0ab2263a41
Merge pull request #793 from bboreham/ipam-avoid-unittest-races
...
[ipam] Fix race conditions in unit tests
2015-05-29 12:30:39 +01:00
Bryan Boreham
adeb0d3934
Don't bypass the actor mechanism in unit tests, to avoid race conditions
2015-05-29 10:43:19 +01:00
Bryan Boreham
0ee872def4
Lock round mockGossipComms to avoid race conditions
2015-05-29 10:27:17 +01:00
Bryan Boreham
2befd9d473
Merge remote-tracking branch 'origin/0.11'
2015-05-29 09:56:53 +01:00
Bryan Boreham
e37f7de0ad
Improve error reporting of too much free space
2015-05-29 09:44:24 +01:00
Bryan Boreham
72b30bc699
Fix incorrect calculation of free space
...
when granting a range that spans a token and inserting a new token, the
free space on the last token that we are handing over has to change.
Add unit test for this too.
2015-05-29 09:44:14 +01:00
Bryan Boreham
10c3f47bd1
Merge pull request #783 from bboreham/782-space-panic
...
Fixes #782
2015-05-29 09:42:44 +01:00
Bryan Boreham
915bf392e9
Improve error reporting of too much free space
2015-05-28 18:15:04 +01:00
Bryan Boreham
af5531cbf6
Fix incorrect calculation of free space
...
when granting a range that spans a token and inserting a new token, the
free space on the last token that we are handing over has to change.
Add unit test for this too.
2015-05-28 18:12:30 +01:00
Bryan Boreham
cb03d1d763
Merge pull request #772 from alexwlchan/master
...
Thanks!
2015-05-28 10:11:58 +01:00
Bryan Boreham
b10c2e554c
Remove redundant variable
2015-05-27 16:59:12 +01:00
Bryan Boreham
69ac0950fe
Add release 0.11 to CHANGELOG
2015-05-26 13:50:26 +01:00
Bryan Boreham
1e128c142e
Links to Docker docs
2015-05-26 11:42:48 +01:00
Bryan Boreham
aafc1a56f9
Reword weave proxy intro
2015-05-26 11:40:39 +01:00
Bryan Boreham
22b8f482ea
Fix a couple of mistakes in get_ipam_cidr calls
...
(first one only caused a slight slow-down; second one only mattered if
your 'weave' container had a non-standard name)
2015-05-21 12:05:48 +01:00
Bryan Boreham
b771528942
Check if Docker using weave bridge before inserting DROP rule
...
and comment the use of -I
2015-05-21 10:14:15 +01:00
Bryan Boreham
f727e56bad
Revert "consistency"
...
This reverts commit c5d5dd5fdc .
2015-05-21 09:54:46 +01:00
Bryan Boreham
9e79d7dcca
Don't talk to IPAM unless 0 addresses supplied to 'hide'
2015-05-20 12:59:04 +01:00
Bryan Boreham
906be31483
Regularise the ping tests across different subnets
2015-05-20 11:08:39 +01:00
Bryan Boreham
4ee32cc12d
Extend smoke test for new drop rule
...
Note that we have to wrap the '!' in 'sh -c' to get the negation to work as expected.
2015-05-20 10:45:18 +01:00
Bryan Boreham
6739e6c166
iptables rule to drop traffic from docker0 bridge to weave bridge
2015-05-20 10:27:38 +01:00
Bryan Boreham
70b595c4a2
Clarify status message when allocator is awaiting consensus
2015-05-19 14:12:08 +01:00
Bryan Boreham
0e55f75d86
Oops
2015-05-19 13:16:36 +01:00
Bryan Boreham
ee7dac9e28
Improve error messages
...
Make clear that they come from the IP allocator, and reduce repetition in the text.
Also include the nickname for other peer, if known.
2015-05-19 12:37:57 +01:00
Bryan Boreham
454bbdbc68
Make reference into a link
2015-05-19 11:48:11 +01:00
Bryan Boreham
9363193fe8
Review feedback
2015-05-19 11:43:59 +01:00
Bryan Boreham
4d3234aa36
Merge pull request #695 from rade/merge_ipam_tests_with_rest
...
LGTM
2015-05-19 11:25:50 +01:00
Bryan Boreham
bffe9f811a
Document 'weave status' section for IPAM
2015-05-19 10:41:45 +01:00
Bryan Boreham
b6a8c48097
Tidy up IPAM parts of 'weave status'
...
- removed detailed "free" and "owned" printout of 'space'
- removed "free" counts from ring lines - limited usefulness and often out of date.
- removed trailing newline
- changed "Ring" to "Owned Ranges"
- print subnet in CIDR format
2015-05-19 10:38:26 +01:00
Bryan Boreham
25c70cfad6
Illustrate the usage of 'weave rmpeer'
2015-05-18 17:26:24 +01:00
Bryan Boreham
4ea9cfca48
Expanded description of 'weave launch' parameters for IPAM
2015-05-18 16:49:45 +01:00
Bryan Boreham
0227f7e727
'&& true' was a typo - replaced with '|| true'
2015-05-18 16:06:38 +01:00
Bryan Boreham
bb4dd716c8
Document -iprange a bit more, and warn not to use its addresses elsewhere
2015-05-18 16:03:34 +01:00
Bryan Boreham
286c46653c
Add smoke tests for 'weave expose' and 'weave hide' when weave isn't running
2015-05-18 15:43:44 +01:00
Bryan Boreham
7cf8234d9f
Silence complaints from http_call when at end of 'weave hide'
2015-05-18 14:54:46 +01:00
Bryan Boreham
5cc3036498
Extend smoke test for 'weave run --local' to include IPAM
2015-05-18 14:38:12 +01:00
Bryan Boreham
48e9c53dda
Fetch an address from IPAM for 'weave --local run'
2015-05-18 12:06:06 +01:00
Bryan Boreham
0ec4417992
Rename per-packet debugging flag to -pktdebug
...
to allow `-debug` to mean "more verbose logging"
2015-05-18 11:52:50 +01:00
Bryan Boreham
14c690d9f5
Give 'weave ps' example with IPAM and link to docs
2015-05-18 11:37:38 +01:00
Bryan Boreham
f6ac069bc5
Remove some less-necessary test helper functions
2015-05-14 17:57:13 +01:00
Bryan Boreham
3cd1a17c23
IP Allocation Management
...
Using the Ring CRDT and Weave gossip, provides an interface
for the weave script to allocate IP addresses in `weave run`,
`weave start` and `weave expose`.
See docs/ipam.md for implementation details, and site/features.md
for user-visible changes.
2015-05-14 17:44:06 +01:00
Bryan Boreham
7c68525e93
Simplify address parsing for populate_dns()
2015-04-17 11:31:31 +01:00
Bryan Boreham
36b13b704d
Merge pull request #565 from rade/515_crypto_glitch_stall
...
Big improvement in observed behaviour. LGTM; closes #515
2015-04-16 12:08:02 +01:00
Bryan Boreham
8c6c14c6d3
Accumulate any errors from go test commands so we can report overall status
2015-04-14 18:03:10 +01:00
Bryan Boreham
d334b903e4
Merge pull request #556 from rade/do_not_duplicate_router_config
...
LGTM
2015-04-14 12:58:05 +01:00
Bryan Boreham
8ad244e0f9
Let ConnectionMaker report the reason the connection broke
2015-04-13 14:35:27 +01:00
Bryan Boreham
f8ec56ea79
Move connection shutdown logging into shutdown()
2015-04-13 14:21:11 +01:00
Bryan Boreham
d228a4450a
Make sure FieldValidator methods act on the object we pass in.
...
Added a unit test for FieldValidator
2015-04-10 22:42:40 +01:00
Bryan Boreham
10bd84a460
Document name-list option to weave ps
2015-04-10 15:08:35 +01:00
Bryan Boreham
d32f328c24
Simplify printing
2015-04-10 14:46:31 +01:00
Bryan Boreham
2ba8f34132
Merge pull request #521 from rade/517_lower_topology_periodic_gossip_complexity
...
LGTM. Closes #517
2015-04-10 10:08:23 +01:00
Bryan Boreham
642cc3f00e
Change release GitHub user name from zettio to weaveworks
2015-04-09 17:32:36 +01:00
Bryan Boreham
a4fd0b571d
Row back on Docker image names until we do a release under the weaveworks name
2015-04-09 11:46:08 +01:00
Bryan Boreham
067ba6d970
Fix all zettio.github.io links too
2015-04-09 11:39:55 +01:00
Bryan Boreham
cec1efbcef
Merge pull request #530 from rade/529_eliminate_connection_add_remove_race
...
Very subtle, but it looks ok to me. Fixes #529
2015-04-09 10:36:27 +01:00
Bryan Boreham
8a82f368d0
Update repository name from zettio to weaveworks
2015-04-08 16:35:52 +01:00
Bryan Boreham
13f3439a06
Allow container names to be supplied to 'weave ps'
2015-04-08 15:38:23 +01:00
Bryan Boreham
86abc6ac2b
Merge pull request #516 from rade/514_lower_topology_gossip_complexity
...
LGTM. Closes #514
2015-04-07 15:00:39 +01:00
Bryan Boreham
05b7162239
Use docker stop instead of docker kill
2015-04-01 16:58:16 +01:00
Bryan Boreham
68096b0437
Generalize updater.go
2015-04-01 16:48:11 +01:00
Bryan Boreham
bacaf41017
Wait for the 'status' http call to return something after 'weave launch'
2015-04-01 15:14:59 +01:00
Bryan Boreham
7a4a88aeb9
Remove unused unnamed second item in ranges
2015-03-26 18:04:57 +00:00
Bryan Boreham
0bcadb1e4e
Merge pull request #476 from rade/445-accumulate-gossip
...
LGTM. Fixes #445 .
2015-03-24 11:43:01 +00:00
Bryan Boreham
3fbb6eaa8d
Add peer nickname to JSON output
2015-03-19 11:34:01 +00:00
Bryan Boreham
8f139bcb52
Merge pull request #461 from rade/454_send_all_gossip_to_new_peers_only
...
LGTM. Fixes #454
2015-03-17 13:47:49 +00:00
Bryan Boreham
cce6175a5c
Merge pull request #453 from rade/452_only_broadcast_on_established
...
LGTM. Fixes #452 - those messages go away entirely in my tests.
2015-03-12 11:27:34 +00:00
Bryan Boreham
8e274328b6
Do try standard port on inbound connections
2015-03-11 14:01:43 +00:00
Bryan Boreham
d87e13b999
Re-order Connection fields more consistently
2015-03-11 14:01:07 +00:00
Bryan Boreham
89fce7f98a
Add an 'outbound' field on each connection,
...
and only attempt new connections to the remote side of outbound connections.
2015-03-11 11:56:47 +00:00
Bryan Boreham
e22b470c3e
Add the change from #395 , which got lost
...
`-t` flag creates a tty for the command, so we can interrupt it with Control-C
2015-02-27 16:39:53 +00:00
Bryan Boreham
fcb36458c8
Fix breakage from #387
2015-02-27 15:08:14 +00:00
Bryan Boreham
6437caddf2
Reworded comment
2015-02-27 15:02:30 +00:00
Bryan Boreham
139758256b
Make clear that tcp-send methods are not handlers and may be called outside of queryLoop
2015-02-27 14:52:47 +00:00
Bryan Boreham
846321afeb
Merge pull request #427 from fl0yd/patch-1
...
LGTM
2015-02-27 14:37:19 +00:00
Bryan Boreham
657125fd54
Send to tcpSender on the calling thread, so the Actor channel doesn't get clogged up
2015-02-27 14:12:32 +00:00
Bryan Boreham
607b528973
Copy connections before sending, to avoid a deadlock
2015-02-25 16:11:58 +00:00
Bryan Boreham
78d2a3e466
Add 'finished' chan to stop callers blocking on closed connection
2015-02-24 10:48:52 +00:00
Bryan Boreham
2817638ef9
Merge pull request #396 from achanda/patch-2
...
LGTM.
2015-02-17 12:39:16 +00:00
Bryan Boreham
410972906b
Add version and encryption status into the JSON output
2015-02-06 17:35:39 +00:00
Bryan Boreham
04a7aa1405
Use buffer size 4096 on advice from a DNS expert
2015-02-04 14:58:21 +00:00
Bryan Boreham
e325c35c10
Merge pull request #381 from rade/380_prevent_premature_peer_topology_gc
...
LGTM. Fixes #380
2015-02-03 10:39:08 +00:00
Bryan Boreham
e600816d5f
Add UID and version into JSON for each Peer
2015-02-02 14:41:49 +00:00
Bryan Boreham
42dfd5142e
Remove Access-Control hack
2015-02-02 14:36:56 +00:00
Bryan Boreham
458ef12da6
Use a larger buffer than the default, so that more queries will succeed
2015-02-02 13:26:44 +00:00
Bryan Boreham
e5a08a505d
Change DNS fallback test to use a locally-run server to generate long responses reliably
2015-02-02 13:24:37 +00:00
Bryan Boreham
9ae3f4c692
Only read /etc/resolv.conf once
2015-02-02 13:16:05 +00:00
Bryan Boreham
d354f4bea4
Merge pull request #376 from rade/372_udp_connectivity_check
...
LGTM. Fixes #372
2015-01-29 13:24:21 +00:00
Bryan Boreham
ae0e3306d7
Merge pull request #313 from bboreham/add_gossip
...
Gossip layer to communicate topology between peers
Note that I have squashed over 100 commits from @bboreham and @rade into the three for this PR; you can see the original history at https://github.com/bboreham/weave/compare/add_gossip_full
2015-01-27 15:37:35 +00:00
Bryan Boreham
4647c36a15
Unit tests for gossip-based topology communication
2015-01-27 12:45:40 +00:00
Bryan Boreham
5dc9b085a0
Replace previous topology communication with gossip-based mechanism
2015-01-27 12:45:40 +00:00
Bryan Boreham
18df01a4bf
Basic gossip implementation
2015-01-27 12:45:40 +00:00
Bryan Boreham
c80bff473f
Simplify DeleteTestConnection along the same lines as AddTestConnection
2015-01-26 14:03:32 +00:00
Bryan Boreham
c7af02776f
Obtain status info in JSON format
2015-01-21 21:03:16 +00:00
Bryan Boreham
b7b5fd3dd2
Merge pull request #356 from rade/forgive_protocol_decoding_errors
...
LGTM.
2015-01-21 17:54:07 +00:00
Bryan Boreham
bdb8b4625b
Merge pull request #355 from rade/protocol_sender
...
LGTM.
2015-01-21 11:48:54 +00:00
Bryan Boreham
404c7a1ad4
When printing call-stacks from SIGQUIT, trim the buffer to remove garbage at the end
2015-01-19 16:54:40 +00:00
Bryan Boreham
89ea4f9f80
Changed Twitter handle to @weaveworks
2015-01-17 17:57:18 +00:00
Bryan Boreham
18184017ec
Minor re-wording after review comments
2015-01-16 15:00:46 +00:00
Bryan Boreham
bddd0b5ea4
Update FetchAll description to reflect changes in #349
2015-01-16 13:25:03 +00:00
Bryan Boreham
65fd2450ae
Added description of topology communication
2015-01-16 12:24:05 +00:00