Matthias Radestock
ec85da914a
simplify dns-add/remove arg checking
2015-06-15 10:34:59 +01:00
Matthias Radestock
72640f1828
refactor: extract helpers for http calls into weave and weavedns
2015-06-14 17:46:56 +01:00
Matthias Radestock
bf4c75b1cd
don't validate -iprange value
...
We generally don't validate arguments in the script unless we process
them there.
2015-06-14 16:12:53 +01:00
Matthias Radestock
313a95a467
let -iprange "" start the router w/o IPAM
2015-06-14 16:06:20 +01:00
Matthias Radestock
926c85c6ba
more idiomatic 'boolean' in shell
2015-06-14 15:48:08 +01:00
Matthias Radestock
eae9928e98
don't complain when weave --local run is invoked without args
...
leave that to docker, same as we do for `weave run`
Fixes #910 .
2015-06-13 00:48:01 +01:00
Adam Harrison
b6889ec8c3
DNS HTTP API listens on eth0 only
2015-06-12 16:55:27 +01:00
Bryan Boreham
12de13c678
Use /10 instead of /9 for default iprange, so it doesn't clash with CircleCI address
2015-06-12 15:15:36 +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
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
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
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
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
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
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
Adam Harrison
9fddad02ad
Add dns_domain helper to weave script
2015-06-11 10:26:07 +01:00
Matthias Radestock
9955de3e9b
cosmetic: shorten usage info
2015-06-11 09:23:58 +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
1e71d2dacb
Introduce new '<address_spec>' type in usage text
2015-06-10 17:24:36 +01:00
Bryan Boreham
3cdc3522be
Don't overwrite CIDR_ARGS; write new variables ALL_CIDRS and IPAM_CIDRS
...
Handle manual CIDRs and IPAM CIDRs separately, to avoid inconsistencies and misleading messages
2015-06-10 17:24:35 +01:00
Bryan Boreham
2b4eec39cf
Support '--subnet default'
2015-06-10 17:21:16 +01:00
Bryan Boreham
3a9af4413d
Rationalize ipam arguments
...
- rename -defaultsubnet to -ipsubnet
- default subnet defaults to whole -iprange
- parse and check inside ipam package
- removes some error cases
2015-06-10 17:21:16 +01:00
Bryan Boreham
f956a76455
Tighten error checking in weave script
...
- --subnet is used but IPAM is off
- arg that comes after --subnet is not a cidr
2015-06-10 17:21:16 +01:00
Bryan Boreham
d18ccac43b
Free IPAM addresses individually in 'weave hide', because the user now has the ability to free some subnets and not others
2015-06-10 17:21:16 +01:00
Bryan Boreham
0613a06653
IPAM: handle multiple CIDRs in weave script
2015-06-10 17:21:16 +01:00
Bryan Boreham
2553850ed4
Initial implementation of multi-subnet IPAM
2015-06-10 17:21:16 +01:00
Bryan Boreham
ae8985deb5
Merge pull request #884 from rade/881_get_container_id_on_start
...
LGTM. Fixes #881
2015-06-10 17:20:25 +01:00
Paul Bellamy
2d5e362115
[proxy] use logs for getting proxy-env and proxy-config
...
It's ugly, but beats arg-parsing, inspecting the container and piecing
the address together from exposed ports.
We could just use the host from DOCKER_HOST, but that will fail in the
case of a host with multiple IPs, where the proxy only listens on one.
2015-06-10 15:24:53 +01:00
Matthias Radestock
7a2b5c43e7
feed full container id on weave start to DNS/IPAM
...
We erroneously assumed that `docker start` returned the full container
id. It doesn't and as a result we populated DNS with records with ids
other than full container ids. And that's also what we told IPAM. As a
result, DNS and IPAM didn't clean up after the container's death,
resulting in stale DNS entries and leaked IPs.
Fixes #881 .
2015-06-10 14:53:43 +01:00
Paul Bellamy
6bb087cecd
[proxy] Renaming flags: -H -> -D, -L -> -H
...
As per discussion in issue 875
2015-06-10 12:13:52 +01:00
Paul Bellamy
447a00ba7e
[proxy] Add support for tcp:// prefix on listen addresses
2015-06-10 12:13:52 +01:00
Paul Bellamy
0da9669e5c
[proxy] removing unneeded port expose
2015-06-10 12:13:51 +01:00
Paul Bellamy
4a7d4d3555
[proxy] documenting -L option
2015-06-10 12:13:51 +01:00
Matthias Radestock
fee2898c05
remove detailed proxy status
...
There are two problems with obtaining the proxy status via the normal
proxy endpoint...
1. when TLS is enabled, this requires using TLS at the client end
2. the status URL is mixed in with the docker remote API, which is
rather unclean
There is limited value to having some status output from the proxy,
since all the output is constant.
So instead we log the version and command line args, and in `weave
status` only report whether the proxy is running.
We still want a way to wait for the proxy to start up, and log a nice
error if it dies. We do this by polling the docker logs for a startup
message.
Fixes #877 . Fixes #876 .
Undoes most of #756 , #800 , #854 .
2015-06-09 14:03:52 +01:00
Matthias Radestock
2d70197221
cosmetic: more formal command grammar
2015-06-08 23:57:53 +01:00
Matthias Radestock
3f274d02ce
make weave launch args insensitive to order
...
Fixes #816 .
2015-06-08 12:41:26 +01:00
Matthias Radestock
8f85a07ecc
introduce '-nodiscovery' option to disable automatic peer discovery
...
Closes #847 .
2015-06-05 15:13:48 +01:00
Matthias Radestock
87e30d8382
Merge pull request #815 from paulbellamy/proxy-ssl
...
Proxy TLS Support
Closes #506 .
2015-06-05 14:48:54 +01:00
Paul Bellamy
14cc33c512
reordering args to launch-proxy docker command
2015-06-05 14:10:38 +01:00
Paul Bellamy
bddf79855d
[proxy] refactor tls arg parsing
2015-06-05 13:59:30 +01:00
Matthias Radestock
3e8813e559
Merge pull request #858 from weaveworks/0.11
...
Respect `DOCKER_CLIENT_ARGS` in `weave run`
2015-06-05 13:36:27 +01:00
Ilya Dmitrichenko
e1537000c2
Respect DOCKER_CLIENT_ARGS in weave run ( close #855 )
2015-06-05 13:24:05 +01:00
Paul Bellamy
c31358259f
[proxy] Add tls support
...
Caveats:
* TLS files must be present on the target server (and readable)
* TLS file paths cannot contain spaces
* TLS file paths must be absolute (i.e. cannot be relative)
* Bash argument parsing is terrible
2015-06-05 13:23:14 +01:00
Matthias Radestock
dc8a82e913
cosmetic: consistency in launchers
2015-06-03 14:22:20 +01:00
Paul Bellamy
c91e699a27
Merge pull request #831 from rade/192_kill_container_on_network_config_error
...
kill container on network config error
2015-06-03 12:45:23 +01:00
Matthias Radestock
4e68bde7b5
don't time out waiting for weave infrastructure containers to start
...
instead keep trying, until we succeed or the container dies
Fixes #666 .
2015-06-03 11:19:51 +01:00