Matthias Radestock
e0f4da4641
Merge pull request #792 from rade/720_auto_assigned_dns_http_test_port
...
use an automatically assigned port for http tests
Fixes #720 .
2015-05-29 15:51:38 +01:00
Matthias Radestock
08a17ec376
no need for sleeps to wait for http server
...
Since we start the tcp listener in the main thread now, connections
can be made immediately; they will just queue up until there is a
handler.
2015-05-29 14:17:03 +01:00
Matthias Radestock
3ad08c0f2a
don't print the test port
...
it's of no interest whatsoever
2015-05-29 14:05:24 +01:00
Matthias Radestock
fb721558af
auto-assign port in ipam tests
2015-05-29 12:35:23 +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
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
Matthias Radestock
ac8d7a5c55
cosmetic: this is somewhat gross, but the last barrier to linter bliss
2015-05-27 16:58:12 +01:00
Matthias Radestock
5920927a52
make the linter (almost) happy with ipam
2015-05-27 16:43:18 +01:00
Bryan Boreham
70b595c4a2
Clarify status message when allocator is awaiting consensus
2015-05-19 14:12:08 +01:00
Matthias Radestock
f59facf5a6
Merge pull request #701 from bboreham/684-improve-errors
...
Improve ipam error messages
Closes #684 .
2015-05-19 13:34:22 +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
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
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
David Wragg
72112d7aef
Implementation of Basic Paxos
2015-05-14 17:33:20 +01:00
Tom Wilkie
4f3dcf8dc9
Ring CRDT for IP Allocation Management
...
The basic data structure used to share information about
IP allocations between peers
2015-05-14 17:33:20 +01:00