Bryan Boreham
4ad1c22ef6
Move initial DNS population into Go code
2017-04-17 19:41:47 +00:00
Bryan Boreham
3b54372eab
Let weaver create the bridge in net-plugin launch
2017-04-17 19:41:47 +00:00
Bryan Boreham
f05bb6c4e0
Don't assume we always run in in host pid space
...
Pass the path to the proc filesystem down
2017-04-17 19:41:47 +00:00
Bryan Boreham
c8e0c12d34
Move AWSVPC sysctls into Go code
2017-04-17 19:41:47 +00:00
Bryan Boreham
8297652204
Read our peerName from persistence file if necessary
...
Mount directories for machine ID files into weave container
2017-04-17 19:41:47 +00:00
Bryan Boreham
a26fc67ded
New way of initializing; remove --iface option
2017-04-17 19:41:47 +00:00
Bryan Boreham
e7e3608642
Move creation of bridge inside router
2017-04-17 19:41:47 +00:00
Bryan Boreham
dd232775e6
Move expect-npc setup from weave script to Go code
2017-04-17 19:41:47 +00:00
Bryan Boreham
a8eb7966b6
Wire up enforce_docker_bridge_addr_assign_type
2017-04-17 19:41:47 +00:00
Bryan Boreham
8051f51d46
Move bridge-creation code from weave script into Go code
...
via weaveutil create-bridge function
2017-04-17 19:41:47 +00:00
Bryan Boreham
de4ec23809
Remove unused check_docker_server_api_version()
...
The last code that called it was removed in 1f42a9d2f9
2017-04-17 19:29:28 +00:00
Marc Carré
1cc0794e75
Merge pull request #2897 from weaveworks/stop-old-plugin
...
More help for upgraders who use plugin commands
2017-04-13 17:47:22 +01:00
Bryan Boreham
c42400de4f
Remove warning about create-bridge not working with fastdp
...
This hasn't been true for a long time.
2017-04-13 10:15:08 +00:00
Bryan Boreham
9b5cef9167
Stop and reset old weaveplugin container
...
in case user has upgraded from <v2.0 and left it running
2017-04-13 09:14:04 +00:00
Bryan Boreham
6081c400fb
Print special 'removed' message on launch-plugin and stop-plugin
2017-04-13 09:13:50 +00:00
Bryan Boreham
cb339523de
Remove mentions of deleted commands
2017-04-13 09:03:26 +00:00
Marc Carré
8961041469
Merge pull request #2727 from weaveworks/issues/2397-v2-plugin
...
Create a V2 Docker plugin
2017-04-12 14:27:34 +01:00
Martynas Pumputis
2ba360f33a
Better plugin detection functions in weave script
...
Renamed to "is_plugin_v1_enabled" and "is_plugin_v2_enabled".
Improve weave status and weave launch* err message when plugin-v2 is running
```
$ weave launch
Docker plugin "weaveworks/net-plugin" is running; Aborting.
$ weave status
<..>
Service: plugin (v2)
DriverName: weaveworks/net-plugin
```
2017-04-12 13:05:40 +00:00
Martynas Pumputis
16062ea62d
Rename weaveworks/pluginv2 to weaveworks/net-plugin
2017-04-12 13:05:40 +00:00
Martynas Pumputis
e852ae99ca
Report correct plugin driver name in "weave status"
2017-04-12 13:05:40 +00:00
Martynas Pumputis
0ff37d3492
Do "docker plugin inspect" inside weaveutil
...
We cannot do it from weaveexec, because the latter is distributed
with an old version of Docker client which does not support
Plugins API.
2017-04-12 13:05:40 +00:00
Marc CARRE
3031372442
weave --local launch* with V2 plugin on exits with error.
...
For example:
```
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
$ docker plugin ls
ID NAME DESCRIPTION ENABLED
e80beb4367a6 weaveworks/pluginv2:latest Weave Net plugin for Docker true
$ weave --local launch
weaveworks/pluginv2 is already running.
$ weave --local launch-proxy
weaveworks/pluginv2 is already running.
$ weave --local launch-router
weaveworks/pluginv2 is already running.
$ weave --local launch-plugin
```
2017-04-12 13:05:40 +00:00
Martynas Pumputis
d7306c66f7
Get rid of deprecated --no-multicast-route
2017-04-12 13:05:40 +00:00
Martynas Pumputis
1f42a9d2f9
Merge plugin into weaver
...
This simplifies the following:
- plugin-v2 does not need to start "plugin" as a separate process, thus
Docker is able to properly restart plugin-v2 in a case of any child
process failing.
- No need for weaveplugin container.
plugin is enabled by default when running "weave launch". when starting
only the router, you should pass "--plugin" parameter to enable it.
The env var WEAVE_NO_PLUGIN is no more.
2017-04-12 13:05:40 +00:00
Marc CARRE
8c917eeb17
weave --local status now reports plugin.
...
Prints the following when running:
```
Service: plugin
DriverName: weave
```
See also:
- https://weaveworks.slack.com/archives/net/p1488563299009870
- https://weaveworks.slack.com/archives/net/p1488539841009756
2017-04-12 13:05:39 +00:00
Martynas Pumputis
4f42029228
Enable WEAVE_{MTU,PASSWORD} env vars, persistence and ARP settings in plugin-v2
...
The vars can be customized before enabling the plugin with e.g.:
docker plugin set $PLUGIN_NAME set WEAVE_MTU=8160
The ARP settings apply to "weave" bridge. In order to manipulate them,
we bind mount the host's /proc to /host/proc.
(The mount type of /proc changed to bind, Otherwise (when type =
"proc"), the kernel does not propagate pids of host processes as the
plugin runs in a separate PID ns.)
Persistence relies on weave.db which is stored under
/var/lib/weave/weave.db on the host.
NOTE: we do not persist peer list for plugin-v2, as it gets
restored from existing alive master nodes during the peer discovery.
2017-04-12 13:05:39 +00:00
Bryan Boreham
771f57029e
Document flags to 'weave attach'
2017-04-12 12:15:42 +01:00
Bryan Boreham
c223ff1c7d
Support --without-dns in 'weave attach'
2017-04-12 12:15:42 +01:00
Bryan Boreham
98e6571059
Remove 'weave run', 'start' and 'restart'
...
Replace with informative message.
Also fix up tests which were calling these commands.
2017-04-12 12:15:37 +01:00
Bryan Boreham
46762a40b0
Use 'allids' feature to populate DNS names
2017-04-12 09:36:21 +00:00
Bryan Boreham
c291324d14
Refactor: don't have three global variables called COMMAND
2017-04-12 09:36:21 +00:00
Bryan Boreham
b307b9872a
Fetch list of container IDs inside weaveutil, for 'weave ps'
2017-04-12 09:36:21 +00:00
Bryan Boreham
ca523fa335
Don't need --privileged when writing /etc/hosts
2017-03-10 11:55:22 +00:00
Bryan Boreham
5860332e49
Don't repeat '--privileged --net=host' docker options
2017-03-10 11:55:22 +00:00
Bryan Boreham
fde7dcdde9
Stop collecting addresses in weave script now we do it in Go
2017-02-13 11:30:34 +00:00
Bryan Boreham
39ac1a0037
Collect existing weave addresses at start-up, to avoid a race when
...
doing it from the script
Note we need to run weaver in the host pid namespace, so it can search
for existing container IPs. Also now we are firing off sub-processes
it's better to not be PID 1 so Linux doesn't expect us to reap zombies.
2017-02-10 15:10:02 +00:00
Bryan Boreham
418c256689
Allow traffic to forward off the weave bridge
2017-02-01 15:01:18 +00:00
Martynas Pumputis
07892bff7d
Reduce the default MTU
2017-01-31 17:21:01 +00:00
Bryan Boreham
6c251417d5
Update 'docker inspect weavedb' format for Docker 1.10
2017-01-24 17:27:53 +02:00
Lucas Käldström
29eee4e858
Fixing review feedback, adding checksums, etc
2017-01-24 17:24:04 +02:00
Robert Hensing
d881f47088
Add partial support for non-FHS host systems
...
Fixes weaveworks/weave#2733 partially, where <host>/etc/resolv.conf is not a
symlink
2017-01-18 23:28:49 +01:00
Bryan Boreham
7d308a4ac5
Wire weaveutil unique-id into weave script
...
Also ensure the right host directories are mounted when create-bridge
is called from either the weave script or weave-kube.
2017-01-11 13:14:35 +00:00
Bryan Boreham
e0b90e8f02
Inline single-line function docker_bridge_ip
2016-12-23 12:15:04 +00:00
Bryan Boreham
ea014d1362
Reimplement docker_bridge_ip shell pipeline in Go
2016-12-23 12:10:26 +00:00
Bryan Boreham
ec21afb426
Unify weave and launch.sh CNI setup
...
Test 830 has to run CNI plugin under sudo now
2016-12-06 11:52:09 +00:00
Adam Harrison
f3843a6b18
Merge branch '1.8'
2016-12-06 11:41:45 +00:00
Bryan Boreham
3674808244
Remove weave bridge and associated devices if something goes wrong when creating it
...
Otherwise it is left in a half-created state and the user has to run `weave reset` to continue.
2016-12-05 15:11:47 +00:00
Adam Harrison
6103595b9c
Merge branch '1.8'
2016-11-23 10:36:53 +00:00
Adam Harrison
01c436ae15
Merge pull request #2642 from weaveworks/fix-launch-version
...
Fix weave-kube launch.sh version usage
2016-11-23 10:36:16 +00:00
Bryan Boreham
937036aa64
Simplify default version string
2016-11-22 15:43:17 +00:00