Commit Graph
163 Commits
Author SHA1 Message Date
Bryan Boreham 752cfdcb67 Make message for UnknownPeersError more meaningful 2014-09-16 11:11:54 +01:00
Bryan Boreham 978d374820 Change iteration over connection decoding to abort after the first error, and let the UnknownPeersError know which peer was unknown 2014-09-16 09:32:53 +01:00
Bryan Boreham 1748b6e790 Merge remote-tracking branch 'upstream/master' 2014-09-15 15:42:44 +01:00
Bryan Boreham 976d36571a Add MAINTAINER line 2014-09-15 15:42:05 +01:00
Matthias Radestock d2bd78435e add 'weave reset'
Closes #20.
2014-09-15 12:43:58 +01:00
Matthias Radestock 8297fef53d remove WEAVE iptable chain on 'weave stop'
No point keeping it around.

Also, simplify idempotence of masquerading setup.

Follow-up to issue #48.
2014-09-15 12:03:29 +01:00
Matthias Radestock 2f1359ae9f remove masquerading rules on 'weave stop/launch'
Leaving iptable masquerading rules behind is a bad idea when weave is
re-launched with different ip subnet settings. So now we remove the
rules on 'weave stop' and also on 'weave launch' (in case weave had
been stopped in ways other than 'weave stop').

To make the rule removal easier, we create the rules in a user-defined
WEAVE chain.

Note that this will break old weave installations, since the rules
created by those are left behind. Easiest upgrade path is to restart
the machine. Or, for the brave, run `iptables -t nat -S POSTROUTING | grep weave | sed 's/^\-A/-D/g' | while read line; do iptables -t nat $line; done`.

Fixes #48
2014-09-15 11:34:57 +01:00
Matthias Radestock f10c460f48 leave networking alone on 'weave launch' unless we start container 2014-09-14 19:31:27 +01:00
Matthias Radestock 4c93991651 ignore conntrack result in 'weave stop'
so we exit with status 0, since not having any existing flows is
perfectly normal
2014-09-14 19:08:00 +01:00
Matthias Radestock 948312f03d refactor: extract container network configuration
and use more function parameters in preference to global vars
2014-09-13 21:45:42 +01:00
Matthias Radestock c845ba7872 remove detritus
we haven't depended on pipework for a while
2014-09-13 20:48:49 +01:00
Matthias Radestock 6eb7e1aa43 disable offloading on weave bridge
since w/o it the kernel just ignores the PMTU when the host talks to
weave via 'weave expose'

Fixes #52
2014-09-13 19:58:54 +01:00
Matthias Radestock b4791be4f4 refactor: extract command checking helper 2014-09-13 19:47:38 +01:00
Matthias Radestock a53c817b8d create bridge in 'weave expose/hide'
since they really need the bridge
2014-09-13 17:44:29 +01:00
Matthias Radestock 1fac995248 work around 'docker rm -f' weirdness
I've been seeing

~# docker rm -f weave
Error response from daemon: Cannot destroy container weave: Driver devicemapper failed to remove root filesystem 29e46c3e400ee3c8654f2b06a0f6d97bde98dfeb9bb61d25195dba38c04324fc: Device is Busy

whereas the corresponding two-step 'docker kill' + 'docker rm' works
fine.
2014-09-13 07:51:06 +01:00
Matthias Radestock 51afd5e9c6 make 'weave launch' cope gracefully with existing 'weave' containers
Fixed #31
2014-09-11 07:56:26 +01:00
Matthias Radestock 710cf7ea8a nicer error on 'weave stop' and make it idempotent 2014-09-11 07:33:02 +01:00
Matthias Radestock b6351acb66 simplify error message 2014-09-11 07:19:14 +01:00
Matthias Radestock dbbb8c690a nicer error message on 'weave status' when there is no weave container. 2014-09-11 07:15:15 +01:00
Matthias Radestock 96766db5f0 consistency 2014-09-11 07:12:49 +01:00
Matthias Radestock 42b7abba10 no need to expose ports
since 'weave launch' publishes them anyway
2014-09-10 12:13:15 +01:00
Matthias Radestock 8a42f7529b HN link 2014-09-09 14:00:31 +01:00
Matthias Radestock a7ef0ea2fc cosmetic 2014-09-09 09:53:30 +01:00
Matthias Radestock c81ccc8492 twitter link 2014-09-09 09:51:34 +01:00
Matthias Radestock 6f3de33318 gm fmt 2014-09-08 17:37:34 +01:00
Matthias Radestock 9bd702a7e3 go fmt 2014-09-08 16:58:33 +01:00
Matthias Radestock 86fc869551 simplify 'weave run' examples
we don't need to specify /bin/bash, since that is the default
entrypoint
2014-09-08 08:59:05 +01:00
Matthias Radestock b9190e9be0 make app isolation example easier to read 2014-09-06 18:23:23 +01:00
Matthias Radestock 64df1c3ca3 update diagrams 2014-09-05 17:10:26 +01:00
Matthias Radestock 8e6a9fb9b8 explain the 'iptables -w' check 2014-09-05 14:35:43 +01:00
rade 550aa3045d Merge pull request #25 from dpw/24_iptables_w
Check that 'iptables -w' is supported before using it

Fixes #24
2014-09-05 14:33:29 +01:00
David Wragg 91268fa0ba Check that 'iptables -w' is supported before using it
'-w' was only introduced in a recent version of iptables.  It means
"Wait for the xtables lock", so it seems reasonable to proceed without
it for older versions.
2014-09-05 12:51:41 +01:00
Matthias Radestock fb2f0f7f23 apparently more docker versions work 2014-09-05 10:39:23 +01:00
Matthias Radestock e156715210 add another diagram 2014-09-05 10:21:22 +01:00
Matthias Radestock 71691f42f2 move diagram 2014-09-05 10:12:38 +01:00
Matthias Radestock d0ca3fad34 a diagram 2014-09-05 10:09:17 +01:00
Matthias Radestock a303b358e8 s/AMZN/EC2/g 2014-09-04 21:43:04 +01:00
Matthias Radestock 1b2a7d66c5 Merge branch 'master' of github.com:zettio/weave 2014-09-04 20:21:02 +01:00
Matthias Radestock e848c6737b explain inner workings 2014-09-04 20:20:03 +01:00
rade acfefed142 Merge pull request #17 from bboreham/11_http_interface
add 'weave status'

closes issue #11
2014-09-04 15:33:10 +01:00
Bryan Boreham f8ae0cd3f6 Add ‘weave status’ to the README 2014-09-04 15:27:38 +01:00
Bryan Boreham 733af3f108 Swap round 'status' and 'stop' in usage 2014-09-04 15:24:18 +01:00
Bryan Boreham c930ef38dc Improved error message on http ListenAndServe 2014-09-04 14:59:48 +01:00
Bryan Boreham 04ca3d2469 Addressed various points raised in review: error-handling, simplified Fprint call 2014-09-04 14:44:42 +01:00
Bryan Boreham 67d8220bdf Convert one further use of 'command -v' into the function command_exists 2014-09-04 13:04:19 +01:00
Bryan Boreham 43d8781fdd Merge remote-tracking branch 'upstream/master' into 11_http_interface
Conflicts:
	consts.go
	weaver/weave
2014-09-04 13:02:14 +01:00
Matthias Radestock 8b8fc06fcf cosmetic 2014-09-04 07:36:10 +01:00
Matthias Radestock 679e9b52b2 add some error logging that was missing 2014-09-04 07:32:11 +01:00
Matthias Radestock e72803e564 remove duplicate code 2014-09-04 07:29:11 +01:00
Matthias Radestock b19abe4eab move logging out of peer_cache 2014-09-04 00:02:08 +01:00