Matthias Radestock
a2146ca5b0
add tests for launching DNS with various ways of obtaining an IP
...
As a side effect this also tests repopulation on restart, so we can
remove the separate test for that.
2015-06-12 13:50:22 +01:00
Matthias Radestock
727a213ba1
permit weavedns IP addresses to be choosen by IPAM
...
Same as for ordinary containers.
Closes #762 .
2015-06-12 13:50:22 +01:00
Matthias Radestock
38266f2918
fix layout
2015-06-12 13:35:12 +01:00
Matthias Radestock
fa00b9faf3
add ToC to ipam docs
...
also shorten some of the headings, and use H2 instead of H3
2015-06-12 12:24:32 +01:00
Matthias Radestock
685d7d2559
Merge pull request #893 from bboreham/743-default-iprange-in-script
...
Default value for -iprange
Closes #743 . Closes #870 .
2015-06-12 11:17:12 +01:00
Matthias Radestock
df918ab3c4
revamp ipam docs
2015-06-11 22:24:07 +01:00
Bryan Boreham
404ae010e4
Improve flow of IPAM doc
2015-06-11 18:35:18 +01:00
Bryan Boreham
43d42e6f15
Update docs for default -iprange
2015-06-11 18:01:28 +01:00
Bryan Boreham
328e63828e
Check whether netcheck exists before relying on it
2015-06-11 17:55:27 +01:00
Bryan Boreham
465b16e668
Give -iprange a default, and check if it is free
2015-06-11 17:34:43 +01:00
Bryan Boreham
0e6569d78c
New program netcheck to check if network overlaps routes
2015-06-11 17:27:20 +01:00
Bryan Boreham
8285046962
Function to check if a network overlaps with existing routes
2015-06-11 17:27:20 +01:00
Matthias Radestock
8e04b135bb
check that nsenter is present
...
for `weave --local ...`
Closes #895 .
2015-06-11 16:37:28 +01:00
Matthias Radestock
2b7c785386
don't output container id when we kill it
...
This was missed from #831 .
2015-06-11 16:34:46 +01:00
Paul Bellamy
09f491821b
making test executable
2015-06-11 13:51:41 +01:00
Adam Harrison
c0cfacdb28
Repatriate itinerant smoke test
2015-06-11 12:54:07 +01:00
Matthias Radestock
e96cde1872
Merge pull request #890 from awh/use_container_name_as_hostname
...
Use container name as hostname
Closes #750 .
2015-06-11 12:35:46 +01:00
Adam Harrison
12fc760e4a
Refocus documentation around --name
2015-06-11 12:17:05 +01:00
Paul Bellamy
d2b17690f9
use dnsutils image in one test instead of awk on all the tests.
2015-06-11 12:13:24 +01:00
Adam Harrison
8d7fe2b9e7
Renamed smoke test to avoid number clash
2015-06-11 11:55:21 +01:00
Adam Harrison
1fa7c24a2a
Prefer --name to -h in examples
2015-06-11 11:54:05 +01:00
Adam Harrison
6b80dc035a
Simplify smoke test
2015-06-11 11:53:24 +01:00
Adam Harrison
35cfafc319
Defer evaluation of $(dns_domain) until necessary
2015-06-11 11:52:33 +01:00
Matthias Radestock
e1c07dce3f
permit overriding of DOCKERHUB_USER
...
which in turn enables operation from private registries
Closes #887 .
2015-06-11 11:50:55 +01:00
Paul Bellamy
96bda1639e
define weavedns http port as a constant
2015-06-11 10:27:35 +01:00
Adam Harrison
a424bfe715
Correctly interpret long form arguments that lack an equals symbol
2015-06-11 10:27:34 +01:00
Adam Harrison
4f6ace8b10
Permit optional trailing dot on hostname
2015-06-11 10:27:34 +01:00
Adam Harrison
bccb5065db
Update docs with new weave run behaviour
2015-06-11 10:27:34 +01:00
Adam Harrison
bed6a130d6
Smoke test for new weave run behaviour
2015-06-11 10:27:34 +01:00
Adam Harrison
108eea8b79
Modify weave run to use container name as fqdn
...
When run is invoked with `--with-dns` and a container name but no
hostname, synthesise a fully qualified hostname from the container name
and the weaveDNS domain and supply that as a hostname for the container.
2015-06-11 10:27:34 +01:00
Paul Bellamy
678063efec
updating proxy docs on hostname/domainname dns
2015-06-11 10:27:34 +01:00
Paul Bellamy
99d9ad7042
[proxy] query weavedns for domain
2015-06-11 10:27:34 +01:00
Paul Bellamy
b9850ac200
[proxy] Set hostname and domainname based on container name, when dns
...
Had to make the assert_dns_record test helper more robust against
'getent hosts' returning duplicates
2015-06-11 10:27:29 +01:00
Adam Harrison
9fddad02ad
Add dns_domain helper to weave script
2015-06-11 10:26:07 +01:00
Adam Harrison
a1007411ad
Add /domain resource to DNS REST API
2015-06-11 10:26:07 +01:00
Matthias Radestock
9955de3e9b
cosmetic: shorten usage info
2015-06-11 09:23:58 +01:00
David Wragg
5ce4b25f38
Merge rade/746_simplify_frag_test (PR #888 ): simplify fragmentation test
...
Closes #746 .
2015-06-10 18:28:26 +01:00
Matthias Radestock
267716fed5
Merge pull request #827 from bboreham/675-ipam-subnets
...
multi-subnet ipam
Closes #675 . Fixes #861 . Closes #862 .
2015-06-10 17:44:17 +01:00
Bryan Boreham
a89b549c40
Change command-line syntax to net: prefix instead of --subnet
2015-06-10 17:28:06 +01:00
Bryan Boreham
91ad3ef684
Illustrate mix-and-match of ipam and non-ipam CIDRs on command-line
2015-06-10 17:27:07 +01:00
Bryan Boreham
36f793c1f4
Delete entry from addresses map when slice is empty
2015-06-10 17:27:07 +01:00
Bryan Boreham
c27cd5b4ab
Extract lookup function for owned addresses
2015-06-10 17:27:07 +01:00
Bryan Boreham
7d881a0f0c
Check that weave ps returns exactly the CIDRs we are looking for, and comment assumption
2015-06-10 17:27:07 +01:00
Bryan Boreham
487bd2eaf7
Use zero-cidr-args form of 'weave detach' to test #862
2015-06-10 17:24:36 +01:00
Bryan Boreham
e9d194327a
Reduce level of noise in debug logs from containers dying
2015-06-10 17:24:36 +01:00
Bryan Boreham
c301e6a380
Expand test to use IPAM and check addresses are freed
2015-06-10 17:24:36 +01:00
Bryan Boreham
a3d73be8b8
General tidying
...
tidy Address helper functions,
make ordering of members consistent in allocate and claim,
make linter happier,
remove some unused items, and
update some comments
2015-06-10 17:24:36 +01:00
Bryan Boreham
fa0b0042b2
Eradicate the last vestiges of CIDR in Allocator
2015-06-10 17:24:36 +01:00
Bryan Boreham
e21f66db0a
Use address.Range instead of (start,end) pairs
2015-06-10 17:24:36 +01:00
Bryan Boreham
1e71d2dacb
Introduce new '<address_spec>' type in usage text
2015-06-10 17:24:36 +01:00