Bryan Boreham
1d3c80ab49
Merge pull request #1944 from weaveworks/issues/1940-remove-proxy-weaveps-dep
...
Use netlink instead of shelling out to `weave ps`
2016-02-04 13:45:58 +00:00
Adam Harrison
65c48707f6
Use netlink instead of shelling out to weave ps
2016-02-04 12:51:18 +00:00
Matthias Radestock
ae725e333a
make plugin pay attention to WEAVE_HTTP_ADDR
2016-02-03 11:54:05 +00:00
Adam Harrison
1e01a31939
Support --host argument to weave launch
...
Allow the weave router bind to a specific host IP address instead of
INADDR_ANY.
2016-02-02 20:48:49 +00:00
Matthias Radestock
2e9c1ee046
Merge branch '1.4'
2016-01-29 16:07:20 +00:00
Matthias Radestock
be9d64b2cc
Merge pull request #1936 from weaveworks/issues/1934-rm-socket
...
Remove Unix domain sockets on shutdown
Fixes #1934 .
2016-01-29 15:46:24 +00:00
Matthias Radestock
b2c9802aa2
Merge branch '1.4'
2016-01-29 15:25:50 +00:00
Bryan Boreham
e4828ad30a
Remove 'nameserver' option
2016-01-29 14:03:04 +00:00
Bryan Boreham
3320a9e7d4
Re-organise code so we can clean up using defer and return error codes to top level
2016-01-29 11:41:24 +00:00
Bryan Boreham
9b90a938f5
Remove Unix domain sockets on shutdown
2016-01-28 18:26:34 +00:00
Bryan Boreham
598efe5d1a
Reduce docker volumes for weavewait to just one set.
...
- Create an auxilliary container 'weavevolumes' to hold the '/w/w'
files, and map into that instead of creating new volumes every time.
- Show "/bin/false" as its command in `docker ps` instead of
"/home/weave/sigproxy".
- Remove volumes when cleaning up smoketest containers.
2016-01-28 15:57:22 +00:00
Matthias Radestock
31f736b37e
fix errors spotted by usage analysis
2016-01-26 18:13:29 +00:00
Peter Bourgon
e27b320ede
Update import location for mesh
2016-01-15 15:57:01 +01:00
Matthias Radestock
d770532b08
improve error handling
2016-01-15 08:53:04 +00:00
Matthias Radestock
31b303a419
move plugin network creation into weaveutil
...
Note that we remove the ability to set the weavemesh network name, or
disabling it altogether. This was always poorly support, since the
removal operation only ever operated on the default name. The option
was also not listed in the usage, though it was in the docs.
2016-01-15 08:52:57 +00:00
Matthias Radestock
9578798ec0
move plugin network removal into weaveutil
...
This does require starting containerised weaveutil with docker.sock
volume mounts.
2016-01-15 07:58:21 +00:00
Matthias Radestock
8061ea4079
don't attempt to delete the mesh network on plugin termination
...
It's pointless and inconsistent. Firstly, deletion will fail if there
are any attached containers. Secondly, we run the plugin with
restart=always, so it will get restarted and the network re-created.
Removal of the network does still happen on `weave stop|reset`, if
possible.
2016-01-15 06:21:11 +00:00
Matthias Radestock
1d3ca061ad
tiny refactor: tweak init order for better grouping
2016-01-13 16:48:49 +00:00
Matthias Radestock
d50975a185
refactor: extract password determination
2016-01-13 16:23:00 +00:00
Matthias Radestock
6261ce0865
extract our peer name creation
2016-01-13 16:23:00 +00:00
Matthias Radestock
9b4a5d1cb4
tiny refactor: just move around some code
...
The router name derivation uses the result of createOverlay, so move
it closer to that.
2016-01-13 13:52:09 +00:00
Matthias Radestock
9f79e5be54
refactor: rename
...
Conceptually, an OverlaySwitch is just a single Overlay.
2016-01-13 13:52:09 +00:00
Matthias Radestock
aa44b66a31
refactor: extract overlay creation
2016-01-13 13:52:09 +00:00
Matthias Radestock
3a367595d7
derive routerName from networkConfig.Bridge.Interface()
2016-01-13 13:52:00 +00:00
Matthias Radestock
9f0399f27e
refactor: extract DNSServer creation
2016-01-13 13:48:38 +00:00
Matthias Radestock
cc72f7d3ee
cosmetic
2016-01-13 13:20:17 +00:00
Matthias Radestock
799160c5c2
remove "encryption -> pcap" cruft
...
As of e12dbb460 (#1758 ) we no longer force the usage of pcap when
encryption is enabled. Hence...
- we no longer need to figure out whether the router was started with
a password when re-attaching it from the proxy. We therefore remove
the code for that.
- there is no longer any mode in which we pass both `--datapath` and
`--iface` options to the router. Previously this would only happen
when encryption was enabled and the only overlay used for
connections was sleeve. It is not clear what the behaviour is when
these conditions do not hold, so, to be safe, we prevent the
specification of both flags.
2016-01-13 10:27:25 +00:00
Matthias Radestock
9933a4a368
refactor: tweak overlay & bridge initialisation sequence
...
for clarity
2016-01-11 00:13:29 +00:00
Bryan Boreham
987d89632d
Merge pull request #1847 from weaveworks/1613-weaveutil
...
extract script utilities into single binary; LGTM
2016-01-07 18:53:25 +00:00
Paul Bellamy
8ddbb3d8af
[proxy] Keep retrying container attaches until they succeed.
2016-01-07 17:09:34 +00:00
Matthias Radestock
419f2ff71b
move fastdp helpers into weaveutil
...
so the weave script can invoke them w/o having to run a container
2016-01-02 14:00:44 +00:00
Matthias Radestock
4ebcd355f6
move docker_tls_args into weaveutil
...
and also give users a clue what went wrong when docker isn't running
2016-01-02 14:00:44 +00:00
Matthias Radestock
ec872d7b45
move netcheck into weaveutil
2016-01-02 14:00:44 +00:00
Matthias Radestock
9801e00ba6
add weaveutil
...
just a placeholder for now
2016-01-02 14:00:44 +00:00
Matthias Radestock
0ee22af32d
refactor: further simplify fastdp initialisation
2016-01-02 13:17:40 +00:00
Matthias Radestock
13f37edb64
refactor: simplify fastdp initialisation
2016-01-02 13:17:28 +00:00
Matthias Radestock
75d9e95b15
appease linter
2016-01-02 12:35:10 +00:00
Matthias Radestock
d59594c6b0
Revert "refactor: pass procfs location to docker_tls_args on command line"
...
changed my mind
This reverts commit be8260ae79 .
2016-01-02 10:50:13 +00:00
Matthias Radestock
be8260ae79
refactor: pass procfs location to docker_tls_args on command line
...
...rather than via an env var. This is cleaner.
2016-01-01 23:52:46 +00:00
Matthias Radestock
4e22922256
refactor: rename netcheck.go -> main.go, for consistency
2015-12-30 23:17:48 +00:00
Bryan Boreham
8a517d5c7c
Issue a warning on --with-dns option to proxy, because it was removed
2015-12-22 10:00:06 +00:00
Bryan Boreham
ecf4a82b99
Warn user if weave network is in use on stop or reset
2015-12-17 10:05:36 +00:00
Bryan Boreham
357f67255e
Move logging of Docker API info to callers
2015-12-17 08:25:51 +00:00
Adam Harrison
ce18509aa7
Merge pull request #1781 from weaveworks/1754-no-with-dns
...
Remove --with-dns option from proxy
2015-12-16 14:02:30 +00:00
Bryan Boreham
afcb84d42c
Set up static route for multicast, with option to turn off
2015-12-16 12:17:25 +00:00
Paul Bellamy
a4ef96690e
support alternate DOCKER_HOST settings when launching the plugin
2015-12-15 18:12:31 +00:00
Paul Bellamy
f28ad350bd
make weave and the proxy work with tcp-only dockers via DOCKER_HOST
2015-12-15 18:02:59 +00:00
Paul Bellamy
0afc3db383
First pass at passing DOCKER_HOST=unix://* through to the weave and proxy
2015-12-15 18:02:27 +00:00
Adam Harrison
f9228eeb46
Merge pull request #1738 from weaveworks/1727-local-plugin
...
"mesh mode" plugin
2015-12-15 17:53:26 +00:00
Adam Harrison
0c077b8bb1
Merge pull request #1782 from weaveworks/1709-json-func
...
Add a 'json' function for 'weave report -f'
2015-12-15 17:09:02 +00:00