Bryan Boreham
e4828ad30a
Remove 'nameserver' option
2016-01-29 14:03:04 +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
Bryan Boreham
0e9991f7d4
Make plugin create 'weave' network by default
2015-12-15 16:52:37 +00:00
Bryan Boreham
776ccac00a
Pin docker API version to 1.21
2015-12-15 16:52:30 +00:00
Bryan Boreham
b709cdeab5
Create local and global network from the same driver and create local-scope weave network by default on weave launch
2015-12-15 16:47:18 +00:00
Bryan Boreham
a4ca389f2e
Make the plugin scope (local or global) an option
2015-12-15 16:31:07 +00:00
Bryan Boreham
c973808b20
Merge pull request #1758 from weaveworks/issues/82-optional-encryption
...
Make encryption optional; fixes #82 , #1788 . LGTM.
2015-12-15 15:23:58 +00:00
Adam Harrison
e0cb9cf24d
Restore leading whitespace to weave status
2015-12-14 12:13:16 +00:00
Adam Harrison
4e41d4d451
Add trusted subnets to weave status
...
`weave status` now displays the list of specified trusted subnets, and
`weave staus connections` shows the encryption state of individual
connections.
2015-12-14 12:13:16 +00:00
Adam Harrison
059cc65b55
Fallback to encrypted sleeve on a per-connection basis
...
If overlay encryption is required between peers, the fast datapath
forwarder returns an error rather than aborting the process, allowing
the overlay switch to fall back gracefully to an encrypted sleeve
overlay connection.
2015-12-14 12:13:11 +00:00
Adam Harrison
ce25f58639
weave launch-proxy accepts --no-multicast-route
2015-12-14 11:53:06 +00:00
Adam Harrison
367b73e6e3
Introduce nomcast weavewait
2015-12-14 11:53:06 +00:00