Matthias Radestock
d97c385b4e
make 'make lint' run gocyclo (again)
2016-01-13 17:02:52 +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
Tom Wilkie
b4682bbc8c
Fresh clones need git submodule update --init
2016-01-13 08:22:35 -08:00
Adam Harrison
d9a32e563c
Merge pull request #1861 from weaveworks/1657-1656-vendor-and-build-in-container
...
Build in a container by default, using go 1.5 and vendored dependencies.
2016-01-13 15:55:51 +00:00
Adam Harrison
b0e98f99d0
Merge pull request #1888 from weaveworks/refactor-overlay-init
...
refactor overlay creation
2016-01-13 15:35:11 +00:00
Tom Wilkie
6684ae8316
Do a git submodule update every time we enter the build container.
2016-01-13 05:58:41 -08: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
e5c256daa1
add Bridge.Interface()
2016-01-13 13:50:18 +00:00
Matthias Radestock
f12ec3b295
refactor(ish): make fastdp hold on to interface
...
rather than just the MTU
2016-01-13 13:50:18 +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
Tom Wilkie
c098aefed9
Build in a container by default, using go 1.5 and vendored dependancies.
...
- Use submodules for vendoring.
- Don't go clean, now that everything is in .pkg.
- sudo -E as we need the environment variables.
- Install -race version of std so the tests can run without sudo.
- Cache the build image on circle, use the rebuild-image script from tools.
2016-01-13 04:40:18 -08:00
Matthias Radestock
6a103aef27
cosmetic
2016-01-13 11:49:15 +00:00
Matthias Radestock
80df5a7906
cosmetic
2016-01-13 11:39:32 +00:00
Adam Harrison
28561237ab
Merge branch '1.4'
2016-01-13 11:10:30 +00:00
Adam Harrison
b3a29bec1b
Merge pull request #1886 from weaveworks/issues/1869-leave-plugin
...
Allow plugin to keep running on 'weave launch'
2016-01-13 11:08:54 +00:00
Bryan Boreham
b055c9a4a2
Fool-proofing
2016-01-13 10:33:49 +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
Bryan Boreham
3daceac668
Allow pre-existing plugin on 'weave launch-plugin'
2016-01-13 10:05:02 +00:00
Adam Harrison
29ebeeaff5
Merge pull request #1191 from weaveworks/1047-same-ip-on-restart
...
Don't delete record of IP allocation immediately after container death
2016-01-13 09:46:12 +00:00
Matthias Radestock
257d88f48e
Merge branch '1.4'
2016-01-13 09:26:13 +00:00
Matthias Radestock
4611e8825a
Merge branch 'latest_release_doc_updates' into 1.4
2016-01-13 09:25:34 +00:00
Matthias Radestock
00e4729533
Merge pull request #1872 from weaveworks/issues/1871-address-docs
...
Documentation on IP addresses, routes and networks
2016-01-13 09:24:31 +00:00
Bryan Boreham
517a2e0e0a
Fix nonzero exit code for a pre-existing plugin on launch;
...
do this purely for the 'plugin running' case, not 'restarting' etc.
2016-01-12 17:06:38 +00:00
Bryan Boreham
bb8c7c599c
Revert "don't launch anything when plugin is running"
...
This reverts commit 3ade796e8d .
2016-01-12 16:51:49 +00:00
Bryan Boreham
0d0fc39236
More review feedback
2016-01-12 15:35:34 +00:00
Bryan Boreham
e468399616
Extend the timeout for dead containers to 30 seconds,
...
but remove them if they are destroyed, to reduce starvation
when users are creating and destroying containers quickly.
2016-01-12 14:38:44 +00:00
Bryan Boreham
b2b293a8ee
Added 'ContainerDestroyed()' callback from docker client
2016-01-12 14:38:44 +00:00
Bryan Boreham
2f885a7906
Reclaim all addresses on restart
2016-01-12 14:38:44 +00:00
Bryan Boreham
7985e43e68
Add 'weave restart' command
2016-01-12 14:38:44 +00:00
Bryan Boreham
f84b933d7c
Leave container allocations for a time after death
...
so they will be reclaimed if the container is restarted.
Still cancel pending operations immediately a container dies
2016-01-12 14:38:44 +00:00
Bryan Boreham
4672e9ec1f
Generalise ticker so we can use it for more than paxos,
...
and call tryPendingOps() from it so we eventually re-try operations
2016-01-12 14:38:44 +00:00
Adam Harrison
a5ddba03f7
Merge branch '1.4'
2016-01-12 14:28:16 +00:00
Adam Harrison
302a5a4efc
Merge pull request #1884 from weaveworks/issues/1882-check-after-subscribe
...
Fix race condition in weavewait
2016-01-12 14:28:03 +00:00
Bryan Boreham
3b29e8e6f2
Check for existing interfaces and routes after subscribing to receive new ones
2016-01-12 12:27:55 +00:00
Bryan Boreham
a1dff70ba2
Review feedback
2016-01-11 11:55:11 +00:00
Matthias Radestock
9336cc4121
Merge branch '1.4'
2016-01-11 11:49:49 +00:00
Matthias Radestock
12671be260
Merge branch 'latest_release_doc_updates' into 1.4
2016-01-11 11:49:22 +00:00
Matthias Radestock
d2ad5ddb01
oops
2016-01-11 11:47:22 +00:00
Tom Wilkie
73df093e48
Merge pull request #1864 from weaveworks/shrink-travis-usage
...
Shrink travis usage
2016-01-11 11:27:02 +00:00
Bryan Boreham
9a4adccec6
Remove inconsistent information about restart policy
2016-01-11 11:20:40 +00:00
Matthias Radestock
abea21245d
rename Makefile target
...
since travis is no longer using it
2016-01-11 10:33:33 +00:00
Bryan Boreham
f90390974a
Add page explaining IP addresses, networks and routes
2016-01-11 10:30:37 +00:00
Matthias Radestock
0b4f1b5af0
cosmetic: whitespace
2016-01-11 00:42:14 +00:00
Matthias Radestock
9933a4a368
refactor: tweak overlay & bridge initialisation sequence
...
for clarity
2016-01-11 00:13:29 +00:00