Adam Harrison
ebfaf11f4a
Add release v1.7.2
2016-10-11 11:07:18 +01:00
Matthias Radestock
1abce148a3
Merge pull request #2543 from weaveworks/issues/2527-remote-addr
...
Update Weave Mesh to bring in two fixes
Fixes #2481 via weaveworks/mesh#57
Fixes #2527 via weaveworks/mesh#60
2016-10-07 12:45:51 +01:00
Adam Harrison
264e5c9979
Merge pull request #2541 from weaveworks/issues/2540-withnetns
...
Change namespace via nsenter, for plugin arp-config step
2016-10-07 12:20:47 +01:00
Bryan Boreham
a6a1ce5c9e
Update Weave Mesh to bring in fix of panic
2016-10-07 12:13:49 +01:00
Bryan Boreham
5e660311d2
Merge pull request #2538 from weaveworks/2506-uts-release-bytes
...
inline (u)int8 array to string conversion
2016-10-06 16:41:26 +01:00
Martynas Pumputis
4a49ff3083
Replace usage of WithNetNSUnsafe in plugin/net/watcher.go with safer version
...
Unsafe version was in ConfigureARPforVeths; replacement is via `weaveutil configure-arp`
2016-10-06 15:25:05 +01:00
Martynas Pumputis
7f92c8c4c6
Add a safer version of WithNetNS*
...
The introduced functions are executing the work function via
a process which executes "nsenter --net=path weaveutil ...".
2016-10-06 15:25:05 +01:00
Matthias Radestock
85ac8177ad
inline (u)int8 array to string conversion
...
so that the code compiles regardless of the uts.Release array type,
which varies across platforms.
Fixes #2506
2016-10-06 08:57:12 +01:00
Adam Harrison
eb5b16614c
Add release v1.7.1
2016-10-05 15:23:25 +01:00
Adam Harrison
e48ca80dee
Disable golint as it no longer builds with 1.5.x
2016-10-05 15:16:23 +01:00
Bryan Boreham
e7c9e22350
Merge pull request #2274 from weaveworks/issues/2273-improve-doc-ci
...
Improve doc CI
2016-10-03 15:34:39 +01:00
Adam Harrison
b8e7d83f19
Rename SKIP_TESTS
2016-10-03 14:07:57 +01:00
Adam Harrison
4c304c0013
Extract install-wordepress
2016-10-03 14:01:15 +01:00
Adam Harrison
7249350757
Merge pull request #2531 from weaveworks/process-addrs
...
Add weaveutil process-addrs
2016-09-30 10:28:59 +01:00
Bryan Boreham
50a8dc1383
Add weaveutil process-addrs
...
Fetches addresses for every veth that is in a network namespace and
attached to the specified bridge. Works by iterating over every process.
2016-09-29 14:16:05 +01:00
Bryan Boreham
71491138aa
Extract function to return all current process ids
...
This implementation should be more efficient because it only uses the
names under /proc, whereas the previous implementation fetched the
full directory entry for each one, and sorted them too.
2016-09-29 14:12:02 +01:00
Bryan Boreham
ca87f8ada3
Improve comments
2016-09-29 14:06:43 +01:00
Adam Harrison
835b3f3d67
Improve script names
2016-09-29 13:01:18 +01:00
Adam Harrison
263dffeedc
Extract shared function
2016-09-29 11:45:28 +01:00
Adam Harrison
e1063944f6
Comment on GitHub PR with site changes
2016-09-29 11:45:28 +01:00
Adam Harrison
2380018457
Skip tests if PR contains only site changes
2016-09-29 11:45:28 +01:00
Adam Harrison
a9db631836
Add toggle for skipping tests
2016-09-29 11:35:01 +01:00
Adam Harrison
b45f138ff1
Propagate state between scripts
2016-09-29 11:25:34 +01:00
Adam Harrison
b239694d34
Move circle commands into shell scripts
2016-09-29 11:25:34 +01:00
Adam Harrison
0c2774f367
Add release v1.7.0
2016-09-27 14:46:35 +01:00
Bryan Boreham
ea4647bc74
Merge pull request #2524 from weaveworks/expect-npc
...
Implement `--expect-npc` flag to `create-bridge`
2016-09-27 13:41:22 +01:00
Adam Harrison
6ec21d3a58
Implement --expect-npc flag to create-bridge
...
Add a private flag for weave-kube to steer overlay traffic via the
network policy engine chain.
2016-09-27 09:23:19 +01:00
Adam Harrison
44a4a56024
Merge branch '1.6'
2016-09-21 17:14:07 +01:00
Adam Harrison
0aac614c08
Add release v1.6.2
2016-09-21 16:18:03 +01:00
Adam Harrison
2ea027d3a8
Merge branch '1.6'
2016-09-21 11:15:49 +01:00
Adam Harrison
cd4cbed5a0
Merge pull request #2501 from weaveworks/issues/2495-filter-empty-peers
...
Reject empty peers
2016-09-21 11:12:10 +01:00
Adam Harrison
69b688b357
Merge pull request #2509 from weaveworks/issues/2503-persist-peers-fix
...
Create restart.sentinel after storing the peer list
2016-09-21 10:09:05 +01:00
Adam Harrison
7a81bc2ddc
Merge pull request #2510 from weaveworks/issues/2329-fix-830-flakiness
...
Enable unsolicited ARPs in 830 test suite
2016-09-20 17:17:19 +01:00
Martynas Pumputis
cdeae04238
Create restart.sentinel after storing peer list
...
Otherwise, we risk to lose peer list when any failure happens after
the creation but before storing the list and as a consequence,
the weave container gets restarted.
2016-09-20 17:07:48 +01:00
Martynas Pumputis
6df2782d73
Update weaveworks/mesh submodule
2016-09-20 17:03:38 +01:00
Adam Harrison
3fc7efa536
Merge pull request #2498 from weaveworks/broken-link
...
fixed broken link to command line args
2016-09-20 16:40:06 +01:00
Adam Harrison
a556deec78
Merge branch '1.6'
2016-09-20 16:26:48 +01:00
Adam Harrison
71e43c2023
Merge pull request #2511 from weaveworks/issues/2340-make-640-less-flaky
...
Filter out netns of non-existing containers
2016-09-20 15:52:54 +01:00
Bryan Boreham
370f258c3a
Fix outdated option ipam-seed
2016-09-16 15:53:43 -07:00
Martynas Pumputis
9b32bc2ab3
Close opened netns
2016-09-14 16:47:40 +01:00
Martynas Pumputis
fd5e1970e1
Return nil netdev if netns of container cannot be found
...
The change applies to GetNetDevsWithPredicate. The function calls
FindNetDevs which already does the same filtering.
The change prevents from "container-addrs" (weaveutil) returning
"unable to open X process namespace" error which happens when
a container dies while the cmd is being executed.
2016-09-14 16:47:16 +01:00
Martynas Pumputis
a1de7f3eef
Enable unsolicited ARPs in 830 test case
...
Otherwise, ping (c1->c3) after the address reuse might time out.
2016-09-14 11:05:00 +01:00
Matthias Radestock
06a63db4cf
Merge branch '1.6'
2016-09-08 12:55:05 +01:00
Matthias Radestock
c720ebec02
Merge pull request #2502 from weaveworks/issues/2469-supply-subnet
...
Pass in default subnet when creating 'weave' plugin network.
Fixes #2469 .
2016-09-08 12:49:01 +01:00
Matthias Radestock
6a528409ab
Merge pull request #2504 from weaveworks/check-tx-off
...
Check current tx value before trying to set it
2016-09-08 12:32:15 +01:00
Bryan Boreham
c69e140e9e
Check current tx value before trying to set it
2016-09-08 10:20:35 +01:00
Anita Buehrle
8ed0c13645
removed broken link
2016-09-06 14:36:25 +01:00
Anita Buehrle
b635f9a994
fixed broken link to command line args
2016-09-06 14:36:25 +01:00
Bryan Boreham
ac4246e1f5
Pass in default subnet when creating 'weave' plugin network.
...
New behaviour in Docker 1.12 means it disregards a plugin-supplied
address pool that overlaps an existing route, which causes a hang as
noted in #2469 . When we pass in the subnet, Docker believes we really
do want that address range and avoids the hang.
2016-09-06 12:05:51 +01:00
Martynas Pumputis
06a325a05f
Use weaveworks/docker/pkg/mflag everywhere
2016-09-05 17:22:28 +03:00
Martynas Pumputis
68e9bbe350
Add github.com/weaveworks/docker submodule
2016-09-05 16:16:06 +03:00
Matthias Radestock
3bd9e369cd
Merge branch '1.6'
2016-09-05 12:51:30 +01:00
Matthias Radestock
3d12e8088e
Merge pull request #2491 from weaveworks/switch-ci-14.04
...
Switch CircleCI build VM to 14.04
2016-09-05 12:49:25 +01:00
Martynas Pumputis
aee35b34fe
Pin joffrey/docker-py image to 1.8.1 vsn
...
The latest image requires 1.12.x dockerd.
2016-09-05 14:30:49 +03:00
Martynas Pumputis
c06ccb3b0d
Change owner of /usr/local/go on build VM
...
Otherwise "go get -tags netgo" fails with the permission denied error.
2016-09-05 14:30:49 +03:00
Martynas Pumputis
268bb656fc
Do not fetch Google Cloud SDK
...
As it is already installed on CircleCI 14.04 build VMs
2016-09-05 14:30:49 +03:00
Martynas Pumputis
57357a728c
Merge branch '1.6'
2016-09-05 13:48:30 +03:00
Martynas Pumputis
a335c419ec
Fix typo
2016-09-05 13:27:49 +03:00
Martynas Pumputis
e263295720
Revert "Do not fetch Google Cloud SDK"
...
This reverts commit f557835ad0 .
2016-08-26 14:42:50 +01:00
Martynas Pumputis
0c854f2144
Merge pull request #2489 from weaveworks/fix-mflag-missing
...
Use mflag package from weaveworks fork until we find a better solution
2016-08-26 12:19:59 +01:00
Alfonso Acosta
bdf4debdfd
Use mflag package from weaveworks fork until we find a better solution
2016-08-26 11:07:21 +00:00
Martynas Pumputis
f557835ad0
Do not fetch Google Cloud SDK
...
As it is already installed on CircleCI 14.04 build VMs
2016-08-26 11:38:37 +01:00
Martynas Pumputis
17a7391086
Remove unused functions
2016-08-26 10:15:27 +01:00
Martynas Pumputis
e65293eb50
Merge branch '1.6'
2016-08-19 14:12:26 +01:00
Martynas Pumputis
48c9547943
Update CHANGELOG.md
2016-08-19 14:11:57 +01:00
Martynas Pumputis
caa6c6c931
Merge branch '1.6'
2016-08-19 11:22:07 +01:00
Martynas Pumputis
11f56031f1
Add release v1.6.1
2016-08-18 17:39:46 +01:00
Adam Harrison
2e825242cd
Merge branch '1.6'
2016-08-18 11:32:43 +01:00
Adam Harrison
ebe4c5b8b7
Merge pull request #2478 from weaveworks/bridge-veth-setup
...
Refactor: move bridge veth creation into 'init_bridge'
2016-08-18 11:31:16 +01:00
Adam Harrison
027064cbdb
Merge branch '1.6'
2016-08-18 10:56:03 +01:00
Adam Harrison
9fddb827f9
Merge pull request #2442 from weaveworks/cni-setup-fixes
...
CNI setup fixes
2016-08-18 10:55:46 +01:00
Bryan Boreham
3162009325
Refactor: move bridge veth creation into 'init_bridge'
2016-08-17 17:33:34 +01:00
Martynas Pumputis
060f6392c7
Merge branch '1.6'
2016-08-16 18:03:00 +01:00
Martynas Pumputis
8c8c6db7dd
Increase sleep time in 830_cni_plugin_test
...
Fix #2329
2016-08-16 18:00:46 +01:00
Matthias Radestock
cd94dd0088
setup CNI on weave launch[-router]
...
not just `setup[-cni]`
Fixes #2435
2016-08-16 14:18:55 +01:00
Matthias Radestock
afc6f49e80
mount CNI_NETNS dir, in case it is some exotic location
...
Fixes #2394
2016-08-16 14:18:28 +01:00
Martynas Pumputis
c509b6e5bb
Revert "Derive the bridge MAC from concatenated multiple sources"
...
This reverts commit c2083cbce0 .
2016-08-15 09:48:55 +01:00
Bryan Boreham
a466f55d59
Merge pull request #2462 from weaveworks/note-proxy-file
...
added note about net flag
2016-08-12 16:55:57 +01:00
Bryan Boreham
c79b6a8bd7
Merge pull request #2460 from weaveworks/issues/2427-detect-peerid-clashes
...
Detect and report peer name collisions
2016-08-12 16:52:56 +01:00
Martynas Pumputis
c2083cbce0
Derive the bridge MAC from concatenated multiple sources
...
The sources include:
- /etc/machine-id (generated by "systemd-machine-id-setup") or
/var/lib/dbus/machine-id (generated by "dbus-uuidgen").
- /sys/class/dmi/id/product_uuid.
- /sys/hypervisor/uuid.
The product of the concatenation should produce an unique identifier
which is stable across reboots.
2016-08-11 12:01:35 +01:00
Martynas Pumputis
4157d9298d
Update vendored weaveworks/mesh
2016-08-11 12:01:20 +01:00
Adam Harrison
f686408808
Merge branch '1.6'
2016-08-10 14:44:25 +01:00
Adam Harrison
432e10e19f
Merge pull request #2474 from weaveworks/issues/2375-check-vxlan-udp-port
...
Check if a vxlan vport netdev is UP after its creation
2016-08-10 14:44:11 +01:00
Adam Harrison
b8c57ef10f
Merge branch '1.6'
2016-08-10 13:58:53 +01:00
Adam Harrison
601bda3176
Merge pull request #2457 from weaveworks/issues/2424-weaken-tls-check
...
Do not fail launching the proxy if unable to detect a running instance of docker daemon
2016-08-10 13:58:42 +01:00
Martynas Pumputis
d9bde790c6
Check if a vxlan vport netdev is up after its creation
...
This bypasses a kernel bug when the creation of vxlan vport
completes successfully regardless whether an vxlan UDP port has been
bind (http://marc.info/?l=linux-netdev&m=147075637009483&w=2 ).
2016-08-10 13:34:44 +01:00
Adam Harrison
5cc0826ca0
Merge branch '1.6'
2016-08-10 13:16:24 +01:00
Adam Harrison
96f2eb3ecf
Merge pull request #2471 from weaveworks/cni-bridge-ip
...
CNI plugin assigns an IP to the bridge by itself
2016-08-10 11:49:25 +01:00
Adam Harrison
e703f2f3f2
Merge branch '1.6'
2016-08-10 11:48:31 +01:00
Adam Harrison
1c0ffbc177
Stop publishing historic versions
2016-08-10 11:12:23 +01:00
Adam Harrison
f544da9e19
Merge branch '1.6'
2016-08-10 10:18:01 +01:00
Adam Harrison
c0592ba1b3
Merge pull request #2470 from weaveworks/no-force-tag
...
Remove -f flag from 'docker tag' commands
2016-08-10 10:17:06 +01:00
Bryan Boreham
0cbf5ca130
Allow 'weave create-bridge', if the user insists.
...
For example this is used when setting up CNI for Kubernetes, in
an environment where we know none of the bad consequences apply.
2016-08-10 10:00:17 +01:00
Adam Harrison
472eab2acd
Merge pull request #2466 from weaveworks/issues/2464-enable-create-bridge
...
Re-enable 'weave create-bridge' in fastdp mode.
2016-08-10 09:57:40 +01:00
Bryan Boreham
7a5d7fca6c
Allow 'weave create-bridge', if the user insists.
...
For example this is used when setting up CNI for Kubernetes, in
an environment where we know none of the bad consequences apply.
2016-08-08 17:20:25 +01:00
Bryan Boreham
081b95dfd0
CNI plugin assigns an IP to the bridge by itself
...
No need to call `weave expose` before use.
2016-08-08 15:28:26 +01:00
Matthias Radestock
faf5b14d8b
make CNI setup work on recent Docker-for-Macs
...
Docker for Mac 1.12.0-rc3 (as of beta18) looks for mounted paths on VM
first, and when it doesn't find them there, it assumes they refer to
paths on the Mac OS host. At which point it will complain that the
paths don't exit.
So instead we mount / since that will always exist on the VM. It's
also what we used to do already when launching the router.
Fixes #2434 .
2016-08-04 22:03:39 +01:00
Bryan Boreham
38958049f4
Remove -f flag from 'docker tag' commands
...
This flag was deprecated in Docker 1.10 and removed in Docker 1.12.
2016-08-04 17:03:35 +01:00
Bryan Boreham
589b45dace
Merge branch '1.6'
2016-08-03 14:34:49 +01:00
Bryan Boreham
7ebf3d7a88
Don't crash when dockerCli is nil
2016-08-03 14:28:05 +01:00
Anita Buehrle
3273d13666
gave points numbers for clarity
2016-08-02 16:40:16 -05:00
abuehrle
5fdbbf3722
wording formatting
2016-08-02 16:38:41 -05:00
abuehrle
14350ff463
added anchor to attaching containers
2016-08-02 16:35:52 -05:00
abuehrle
0b49c961a7
reconfigured note to include additional method
2016-08-02 16:30:32 -05:00
abuehrle
39b80f26ed
made terminology consistent
2016-08-02 13:15:17 -05:00
abuehrle
74b20265e4
fixed links and some titles
2016-08-02 12:59:27 -05:00
abuehrle
358fddb958
fixed broken link and title
2016-08-02 12:52:36 -05:00
abuehrle
5c8f6175b5
added note about net flag
2016-08-02 12:34:52 -05:00
Martynas Pumputis
e8d823d66b
Do not fail launching the proxy if unable to detect dockerd
2016-07-28 12:53:44 +01:00
Adam Harrison
83ce5875ee
Merge branch '1.6'
2016-07-28 12:52:53 +01:00
Adam Harrison
ed83efbceb
Merge pull request #2450 from weaveworks/eval-considered-harmless
...
remove dire warnings about 'eval' when using plugin
2016-07-28 12:49:55 +01:00
Adam Harrison
223116c4bf
Merge pull request #2393 from weaveworks/intro-ops-guide
...
intro to ops guide (#2387 )
2016-07-28 12:32:34 +01:00
Matthias Radestock
8056a098a8
remove dire warnings about 'eval' when using plugin
...
since as of #2330 the proxy ignores containers started with specified
user networks.
2016-07-28 11:49:54 +01:00
abuehrle
15a2cba7f8
added anchors to concepts
2016-07-28 11:49:06 +01:00
Anita Buehrle
b37bb02a8b
intro to ops guide ( #2387 )
2016-07-28 11:49:06 +01:00
Adam Harrison
0c14e5135a
Delint (spelling error)
2016-07-28 11:48:14 +01:00
Adam Harrison
f5a30c790e
Merge branch '1.6'
2016-07-28 11:30:47 +01:00
Adam Harrison
b06ddeb962
Merge pull request #2445 from weaveworks/fix-weave-ps
...
Fix "weave ps" output when weave is not running
2016-07-28 11:30:31 +01:00
Martynas Pumputis
34415c3c17
Merge pull request #2422 from weaveworks/log-resolvconf-errors
...
Log errors arising from reading resolv.conf
2016-07-26 18:01:33 +01:00
Matthias Radestock
6387fa8bc9
Merge branch '1.6'
2016-07-20 07:30:56 +01:00
Matthias Radestock
f6e6926171
cosmetic: fix wrapped quote
...
apparently our wp md renderer does not handle this correctly
2016-07-20 07:09:09 +01:00
Matthias Radestock
25e7868cd5
fix some indentation in docs block quote
2016-07-20 07:03:17 +01:00
Matthias Radestock
385e6ff9b8
Merge pull request #2446 from weaveworks/explicit-sudo-s
...
Make use of `sudo -s` more explicit
2016-07-20 06:45:50 +01:00
Matthias Radestock
3755906689
blockquote sudo-ing
2016-07-20 06:26:23 +01:00
Matthias Radestock
63cbb34dec
Make use of sudo -s more explicit
...
since people keep tripping over that.
Also
- add new error message spat out by recent dockers correct the socket
- URLs - they had fallen victim to a 'docker'->'Docker' replacement
- shorten the note on using the plugin
2016-07-20 06:26:03 +01:00
Adam Harrison
8ec6b699b1
Merge branch '1.6'
2016-07-18 11:48:08 +01:00
Adam Harrison
369852a3a7
Merge pull request #2430 from weaveworks/remove-duplicate-no-dns
...
remove duplication of `--no-dns`
2016-07-18 11:47:48 +01:00
Matthias Radestock
c82be57639
Merge pull request #2423 from philwinder/docs/cni-mesos
...
Refactor CNI documentation.
2016-07-18 09:58:00 +01:00
Phil Winder
092c3a17d1
Change title.
2016-07-18 09:22:24 +01:00
Martynas Pumputis
fd0a7efa23
Fix "weave ps" output when weave is not running
...
The #2418 has changed a behaviour of "weave ps" which outputs
"Link not found" in the case of weave not running. The previous
behaviour was to output an empty line.
2016-07-14 15:15:14 +01:00
Matthias Radestock
551f164ec3
Merge branch '1.6'
2016-07-12 20:47:23 +01:00
Matthias Radestock
acdd739deb
Merge branch 'fix-broken-link' into 1.6
2016-07-12 20:46:52 +01:00
Paul Bellamy
45e3016c6a
Fixing a broken link in docs
2016-07-12 20:44:57 +01:00
Bryan Boreham
88bf64722f
Merge branch '1.6'
2016-07-12 10:33:38 +00:00
Bryan Boreham
c1483dbf1f
Merge pull request #2418 from weaveworks/issues/2388-weave-ps
...
Fix "weave ps"; fixes #2388
2016-07-12 11:04:00 +01:00
Matthias Radestock
d9c998b5c4
Merge pull request #2386 from weaveworks/issues/354-multicast-isolation
...
Provide multicast isolation with in-container-netns iptables rules
Fixes #354 .
2016-07-12 09:46:14 +01:00
Adam Harrison
170e19c283
Merge branch '1.6'
2016-07-12 09:39:45 +01:00
Adam Harrison
bce07b7491
Merge pull request #2439 from weaveworks/restore-script-function-grouping
...
refactor: restore grouping of functions in script
2016-07-12 09:39:15 +01:00
Matthias Radestock
8b5741506d
refactor: restore grouping of functions in script
...
Recent(ish) changes placed functions in the wrong sections. Fix that
and label the sections more clearly.
2016-07-11 21:38:07 +01:00
Bryan Boreham
7c47a8ffb7
Log errors arising from reading resolv.conf
2016-07-11 12:08:04 +01:00
Matthias Radestock
791ab55875
Merge branch '1.6'
2016-07-09 05:42:02 +01:00
Matthias Radestock
e642f366f5
cosmetic
2016-07-09 05:41:37 +01:00
Bryan Boreham
bd1a9d020c
Merge branch '1.6'
2016-07-07 11:20:50 +00:00
pidster
d794b203f7
Adds ipam option to help.
...
Fixes https://github.com/weaveworks/weave/issues/2425
2016-07-07 11:20:00 +00:00
Matthias Radestock
7ec68119a6
remove duplication of --no-dns
...
This was harmless, but annoying.
2016-07-06 23:21:42 +01:00
Martynas Pumputis
71fd3b6b2b
Merge remote-tracking branch 'origin/1.6'
2016-07-05 17:37:50 +01:00
Martynas Pumputis
93c60395f6
Merge pull request #2417 from weaveworks/issues/1852-less-logging
...
Move 'ODP miss' log from every miss to specific places
Fixes #1852
2016-07-05 17:34:57 +01:00
Phil Winder
af27aa04f2
Add Mesos instructions. Edit old links.
2016-07-05 16:01:01 +01:00
Martynas Pumputis
0861d05522
Address PR comments
...
- Do not re-enter the root netns when querying weave bridge.
- Enter the root netns when constructing the predicate.
2016-07-05 15:12:39 +01:00
Martynas Pumputis
89221f117b
Denote WithNetNS* functions with unsafe
...
Please see https://github.com/weaveworks/weave/issues/2388#issuecomment-228365069
for more details.
2016-07-05 15:12:39 +01:00
Martynas Pumputis
7f5c37ef1e
Fix "weave ps"
...
Make sure that any network namespace changes happens at the end of
the cmd invocation. Otherwise, we are risking to end up in a situation
in which OS scheduling threads are in a "wrong" namespace.
See WithNetNS for more details.
2016-07-05 15:12:39 +01:00
Martynas Pumputis
05baa566c6
Refactor common.GetBridgeNetDev
...
- Optimize. Use LinkByName instead of iterating over list of available
links. Linux does not support interfaces with the same names.
- Remove unnecessary indirection in utility functions which return
common.NetDev.
2016-07-05 15:12:39 +01:00
Bryan Boreham
f8ac27a6cc
Merge branch '1.6'
2016-07-05 13:22:25 +01:00
Bryan Boreham
e5c23bf9f5
Don't crash if docker API is disabled by params
2016-07-05 13:02:59 +01:00
Matthias Radestock
954cd0b86a
Merge branch '1.6'
2016-07-04 16:27:59 +01:00
Matthias Radestock
0635ed1854
highlight the need for weave expose in CNI/k8s ( #2411 )
...
* highlight the need for `weave expose` in CNI/k8s
Fixes #2405
* Extend error message
* rearranged the sentences
weave launch <peer hosts> seems a bit orphaned here maybe include the weave connect command as well, since it's being mentioned.
2016-07-04 16:27:11 +01:00
Matthias Radestock
9dedeadf15
Merge branch '1.6'
2016-07-04 16:22:42 +01:00
Matthias Radestock
4424e877f0
Merge branch '1710-lb-clarification' into 1.6
2016-07-04 16:21:54 +01:00
Matthias Radestock
6561272f8d
Merge branch '1.6'
2016-07-04 16:20:37 +01:00
Matthias Radestock
aa54d332c2
correct RFC3484 address selection caveat ( #2407 )
...
and move it to a more prominent location
Fixes #1710
2016-07-04 16:20:19 +01:00
Matthias Radestock
881e795db5
correct RFC3484 address selection caveat ( #2407 )
...
and move it to a more prominent location
Fixes #1710
2016-07-04 16:19:20 +01:00
Matthias Radestock
4216231ec7
Merge branch '1.6'
2016-07-04 14:30:03 +01:00
Matthias Radestock
e5aeb4bd05
improve --trusted-subnets docs ( #2415 )
...
improve --trusted-subnets docs
Fixes #2211
2016-07-04 14:28:11 +01:00
Matthias Radestock
333d5f7511
Merge pull request #2412 from weaveworks/1803-plugin-create
...
Refactor plugin to create veths in CreateEndpoint
Fixes #1803 .
2016-07-04 12:19:01 +01:00
Matthias Radestock
7be7945b29
Merge branch '1.6'
2016-07-04 10:08:43 +01:00
Matthias Radestock
566ed64607
Merge pull request #2413 from weaveworks/2347-document-host
...
document --host
Fixes #2347 .
2016-07-04 10:07:48 +01:00
Anita Buehrle
83c358c8d2
edited sentence
2016-07-03 09:51:52 -05:00
Bryan Boreham
afe882cd94
Use more chars from endpointID to reduce clashes in veth names
...
Import library to get max name length IFNAMSIZ
2016-07-01 16:05:02 +01:00
Matthias Radestock
5b8a359475
Merge branch '1.6'
2016-07-01 10:31:39 +01:00
Matthias Radestock
ae95248499
Merge remote-tracking branch 'upstream/issues/2293-warn-router-down' into 1.6
2016-07-01 10:31:12 +01:00
Matthias Radestock
df0af203f8
Merge pull request #2416 from weaveworks/issues/2293-warn-router-down
...
Check that weave router is running before launching plugin
Fixes #2293 .
2016-07-01 10:24:15 +01:00
Bryan Boreham
53b8c804f2
Launch the whole of weave to avoid tripping over plugin-only test
2016-07-01 10:17:05 +01:00
Bryan Boreham
7d0aaea6e8
Move 'ODP miss' log from every miss to specific places
...
Added log lines for packets that we will broadcast;
Added log lines for flows we don't know how to handle;
Moved the line for when we expect to insert a flow down to the miss-handler;
Packets handled by the bridge already have their own logging via --pktdebug
2016-07-01 10:12:53 +01:00
Bryan Boreham
45a66ac517
Extend 'mac associated with other peer' error info
2016-06-30 18:02:39 +01:00
Bryan Boreham
087d948941
Check that weave router is running before launching plugin
2016-06-30 12:02:52 +01:00
Matthias Radestock
5b2a4ff614
Merge branch '1.6'
2016-06-29 20:12:58 +01:00
Matthias Radestock
72e92db96e
document --host
...
and add some broader points about access control early on, since some
users will wonder about that right from the start.
Fixes #2347
2016-06-29 20:09:02 +01:00
Matthias Radestock
768414534f
cosmetic: more logical order of args in usage
2016-06-29 20:00:47 +01:00
Bryan Boreham
ceb5f8c714
Move endpoint creation into CreateEndpoint so we can return the MAC address
2016-06-29 17:38:07 +01:00
Bryan Boreham
cc3359dfe5
Merge branch '1.6'
2016-06-29 14:42:17 +01:00
Bryan Boreham
f1ca4854b8
Merge pull request #2409 from weaveworks/issues/2381-awsvpc-fix-attach-router
...
Fix re-attaching of weave router in awsvpc mode
2016-06-29 14:41:14 +01:00
Martynas Pumputis
6319860230
Change the order of awsvpc initialization
...
We want to setup the necessary arp settings as soon as possible
and before we re-insert DNS entries. Otherwise, the announced
containers might not be reachable.
Also, do not try to reclaim for weave:expose inside populate_router,
because we do expose before calling it.
2016-06-29 11:15:56 +01:00
Martynas Pumputis
58caf38f07
Fix re-attaching of weave router in awsvpc mode
...
In order to re-attach the router and make it work in awsvpc mode,
the following has to be done:
- expose_ip on the router
- adjusting arp settings
- restoring host routes
To detect that we run in awsvpc mode, we inspect cmd parameters
of the weave router instead of GET'ing /ipinfo/tracker. This is so,
because the HTTP server started by the router might not be running
at the time of restoration.
2016-06-29 11:15:49 +01:00
Matthias Radestock
cb4b5fd143
correct RFC3484 address selection caveat
...
and move it to a more prominent location
Fixes #1710
2016-06-29 06:57:17 +01:00
Matthias Radestock
cda6785f1d
Merge remote-tracking branch 'upstream/master'
2016-06-29 05:58:29 +01:00
Matthias Radestock
cb030be4ad
Merge branch '1.6'
2016-06-29 05:57:01 +01:00
Matthias Radestock
7165414fc3
improve clock skew error message
...
Fixes #2174
2016-06-29 05:48:10 +01:00
Bryan Boreham
b464ce86f7
Merge branch '1.6'
2016-06-28 13:36:10 +00:00
Bryan Boreham
d72d3af36e
Remove deprecated -awsvpc option
2016-06-28 13:35:47 +00:00
Adam Harrison
80b3514e24
Merge branch '1.6'
2016-06-20 16:29:29 +01:00
Adam Harrison
f07ed7153b
Remove link to non-existent blog post
2016-06-20 15:32:00 +01:00
Adam Harrison
e33f56f9b0
Merge branch '1.6'
2016-06-20 14:53:03 +01:00
Adam Harrison
6c46af25cc
Fix typo
2016-06-20 14:47:52 +01:00
Adam Harrison
5ad227a8b3
Add release v1.6.0
2016-06-20 13:50:19 +01:00
Matthias Radestock
67fe1e5daf
clarify init-peer-count deprecation warning
...
Fixes #2355
2016-06-20 03:54:16 +01:00
Matthias Radestock
99b475056a
Merge branch '1.5'
2016-06-20 03:25:10 +01:00
Martynas Pumputis
804f4ad971
Add check-datapath to weaveutil
...
The utility is used to check whether a datapath can be created.
2016-06-20 03:24:30 +01:00
Martynas Pumputis
24d9a00f47
Add check-datapath to weaveutil
...
The utility is used to check whether a datapath can be created.
2016-06-20 03:20:46 +01:00
Matthias Radestock
b00e7d088e
Merge pull request #2372 from weaveworks/issues/2310-more-checkpoint
...
Add kernel version, Docker version and awsvpc setting to checkpoint info
Fixes #2310
2016-06-20 03:15:25 +01:00
Bryan Boreham
c12e909882
Document what is sent in checkpoint request
2016-06-20 03:13:10 +01:00
Anita Buehrle
6356fbc882
Ops edits ( #2371 )
2016-06-20 03:04:53 +01:00
Matthias Radestock
ca7220b775
Merge branch '1.5'
2016-06-19 02:51:52 +01:00
Matthias Radestock
619a02eefb
fix a couple of typos
2016-06-19 02:51:11 +01:00
Martynas Pumputis
85c1a31e5c
Merge pull request #2383 from weaveworks/proxy-buffer
...
Use buffered writer for http headers
2016-06-17 17:29:39 +01:00
Adam Harrison
f386548890
Maintain per-subnet ACCEPT rule for multicast ingress
2016-06-17 17:19:52 +01:00
Bryan Boreham
f86ade6568
Squash up the code via 'defer'
2016-06-17 16:52:17 +01:00
Bryan Boreham
81fa4059df
Use buffered writer for http headers
2016-06-17 16:52:17 +01:00
Adam Harrison
c80d87554a
Maintain per-interface DROP rule for multicast ingress
2016-06-17 16:10:13 +01:00
Matthias Radestock
e77bf60d34
Merge branch '1.5'
2016-06-17 15:48:33 +01:00
Matthias Radestock
61cb5535db
Merge pull request #2385 from weaveworks/2286-fix-check
...
Fix check before removing plugin sockets
Fixes the fix in #2292 .
2016-06-17 15:47:48 +01:00
Bryan Boreham
63314beb2a
Remove plugin sockets in 'weave reset'
2016-06-17 15:17:13 +01:00
Bryan Boreham
2d0be34a93
Fix check to see if plugin is running
2016-06-17 15:17:13 +01:00
Matthias Radestock
0abfdf4efb
Merge branch '1.5'
2016-06-17 15:07:34 +01:00
Matthias Radestock
b014de3f08
Merge pull request #2382 from weaveworks/issues/2379
...
Fix Docker 1.12 incompatibilities
Fixes #2379 .
2016-06-17 15:06:55 +01:00
Bryan Boreham
56c275a9bf
Copy Docker's response code through for raw stream.
...
This means when Docker says "101 UPGRADED" the proxy will say the
same, instead of "200 OK". Docker 1.12 barfs if you do that.
2016-06-17 13:07:04 +01:00
Bryan Boreham
ddd039761d
Handle Docker daemon named 'dockerd'
2016-06-17 13:05:35 +01:00
Adam Harrison
f4798fadf8
Merge pull request #2374 from weaveworks/issues/1726-plugin-arp
...
Perform arp configuration for plugin-connected containers
2016-06-17 10:19:53 +01:00
Bryan Boreham
adda1c459c
Fix plugin filter - truncate Docker ID to 12 chars
2016-06-16 18:03:45 +01:00
Matthias Radestock
979df93bff
Merge pull request #2378 from weaveworks/issues/2364-observe-resolv-conf
...
Observe resolv.conf changes
Fixes #2364 .
2016-06-16 17:13:10 +01:00
Adam Harrison
27e7ec08d4
Observe resolv.conf changes
2016-06-16 16:55:40 +01:00
Adam Harrison
c6a777c4b0
Merge pull request #2366 from weaveworks/issues/2189-publish-weavedb
...
Publish weavedb container from release script
2016-06-16 11:03:27 +01:00
Bryan Boreham
7182ec0463
Merge pull request #2338 from weaveworks/awsvpc-docs
...
awsvpc docs
2016-06-15 16:59:54 +01:00
Bryan Boreham
425f17aab1
Mention that 'weave launch' now waits
2016-06-15 16:58:05 +01:00
Bryan Boreham
3494cc39c1
Expand description surrounding link to awsvpc mode
2016-06-15 16:58:05 +01:00
Bryan Boreham
2face0f318
Publish weavedb container from release script
2016-06-15 15:50:37 +01:00
Bryan Boreham
bb203a2d18
Merge branch '1.5'
2016-06-15 13:50:47 +01:00
Bryan Boreham
95b42a532a
Merge pull request #2367 from weaveworks/issues/2290-own-image
...
Use our own ubuntu image
2016-06-15 13:50:26 +01:00
Bryan Boreham
08e2c5c14e
Fix link for 'docker run' docs
2016-06-15 13:48:25 +01:00
Bryan Boreham
a4f3e763bb
Use our own ubuntu image
2016-06-15 13:47:20 +01:00
Bryan Boreham
06feefe80f
Merge branch '1.5'
2016-06-15 11:12:12 +01:00
Bryan Boreham
3dd7e13cc0
Merge pull request #2369 from weaveworks/issues/2335
...
Describe creating multiple networks using the plugin
2016-06-15 11:11:25 +01:00
Bryan Boreham
fdf3afa935
Review feedback
2016-06-15 11:10:13 +01:00
Bryan Boreham
8bb8f70bb6
Perform arp configuration for plugin-connected containers
2016-06-14 17:53:34 +01:00
Bryan Boreham
c71c630cf6
Use driver name to detect 'our' endpoints
...
so we don't have to remember all the endpoint IDs, or load them up
after a restart.
2016-06-14 17:52:45 +01:00
Matthias Radestock
179b6f7cf9
Merge pull request #2368 from weaveworks/small-doc-fixes
...
Small doc fixes
2016-06-14 16:26:17 +01:00
Bryan Boreham
1fe5c65fd4
Add kernel version, Docker version and awsvpc setting to checkpoint info
2016-06-14 12:24:37 +01:00
Bryan Boreham
e1edce84d9
Extract checkForUpdates to its own file
2016-06-14 10:33:46 +01:00
Martynas Pumputis
73a393823a
Merge pull request #2370 from weaveworks/awsvpc-clashes
...
Report a couple of options that are incompatible with --awsvpc
2016-06-14 10:12:37 +01:00
Bryan Boreham
b32da8d69f
Report a couple of options that are incompatible with --awsvpc
2016-06-13 16:53:27 +01:00
Bryan Boreham
b993fd67ab
Describe creating multiple networks using the plugin
2016-06-13 16:49:55 +01:00
Bryan Boreham
e9770740d8
Use short name rather than long hex ID
2016-06-13 16:20:32 +01:00
Bryan Boreham
7abed164eb
Clean up reference to 'above'
2016-06-13 16:11:01 +01:00
Matthias Radestock
7a1bd27a58
Merge branch '1.5'
2016-06-13 15:24:49 +01:00
Matthias Radestock
aca34191da
Merge pull request #2365 from weaveworks/issues/2283-validate-cidrs
...
Validate CIDRs in proxy before attaching a container
Fixes #2283
2016-06-13 15:15:48 +01:00
Martynas Pumputis
df5508c0f3
Check CIDRs before attaching a container in proxy
...
If any cidr is invalid, a user will get the following error:
"docker: Error response from daemon: invalid WEAVE_CIDR: $CIDR".
2016-06-13 14:54:16 +01:00
Bryan Boreham
e63fd0b38f
Merge branch '1.5'
2016-06-13 12:00:46 +01:00
Bryan Boreham
47878cf5b6
Merge pull request #2362 from weaveworks/checkpoint-doc
...
Re-instate mention of checkpoint on install page
2016-06-13 11:13:16 +01:00
Anita Buehrle
f0ea18171b
tweaked the sentence a little
2016-06-13 10:57:35 +01:00
Bryan Boreham
aa3f40ec8d
Re-instate mention of checkpoint on install page lost in d1e004dedc
2016-06-13 10:57:19 +01:00
Bryan Boreham
bf8c8833e5
Merge pull request #2356 from weaveworks/issues/2322-awsvpc-enhance
...
Transfer IPAM ranges to UnknownPeer if no peer is found during Shutdown
2016-06-10 14:00:36 +01:00
Martynas Pumputis
8569cbd4a3
Force transferring of IPAM ranges in a case of Shutdown
...
If no peer for transfer is found, we transfer them to
mesh.UnknownPeerName to notify the ring update tracker.
Makes the awsvpc tracker to remove local entries from
the VPC route table when the last peer calls "weave reset".
2016-06-10 11:51:31 +01:00
Adam Harrison
adcb1018df
Merge pull request #2345 from weaveworks/issues/2344-persist-more
...
Fix ring persistence after free space update
2016-06-09 16:37:57 +01:00
Adam Harrison
f4b9a9b66c
Merge pull request #2352 from weaveworks/issues/2318-moar-help
...
Print usage on --help argument to any command
2016-06-09 16:02:35 +01:00
Bryan Boreham
52d911c8c1
Merge branch '1.5'
2016-06-09 13:06:41 +00:00
Bryan Boreham
d1314dd248
Fix broken link
2016-06-09 13:05:39 +00:00
Bryan Boreham
5db7a2bae1
Print usage on --help argument to any command
2016-06-09 12:44:37 +00:00
Bryan Boreham
71540e6c6d
Clarify IAM role and policy
2016-06-09 10:41:34 +00:00
Anita Buehrle
3c45ba09f9
A few edits to improve awsvpc docs.
...
Fixed up the notes with spaces and bolding
Fixed some awkwardness in first paragraph
Fixed a couple of other sentences
2016-06-09 10:40:46 +00:00
Bryan Boreham
cf87a84bd9
Merge pull request #2341 from weaveworks/issues/2017-awsvpc
...
Add AWSVPC. Fixes #2017
2016-06-08 17:24:55 +01:00
Bryan Boreham
c77b2e8fb3
Tell the proxy that multicast is off in awsvpc mode.
...
Otherwise it will use the regular weavewait program which wait for the
multicast route to be added.
2016-06-08 16:44:54 +01:00
Bryan Boreham
37fd54f20b
Perform AWSVPC checks for attach in script rather than in weaveutil
2016-06-08 16:44:54 +01:00
Martynas Pumputis
fb9b4ddec0
Enable AWSVPC
...
This requires the following additional steps:
- Setting proxy_arp on on the bridge, because that's how we do
the routing (check the comment at the place where we set it on).
- Disable ARP requests queueing, because it introduces unnecessary
delay for the first ARP request resulting in a high latency of
the first packet (on t2.micro machines I've encountered ~700ms
latency). Also, the queue is bounded, so we might risking to drop
the requests.
2016-06-08 16:44:54 +01:00
Martynas Pumputis
7670fed72c
Add AWSVPC setup routines to the attach script
...
When running in the AWSVPC mode, we need to do the following:
- Keep the HW TX offloading on.
- Check that the allocated address belongs to the default subnet,
because only one subnet is allowed and it should be the default one.
If it is not possible to determine whether AWSVPC is on, we ignore
all the steps, because the attachment routines have to work
regardless whether the router is running and the AWSVPC detection
is done by querying the /ipinfo/tracker endpoint served by
the router.
2016-06-08 16:44:54 +01:00
Martynas Pumputis
de2a70861c
Add GET /ipinfo/tracker
...
The endpoint returns the name of tracker. It is used to determine
whether the router is running a tracker.
2016-06-08 16:44:54 +01:00
Martynas Pumputis
9fc7be83c8
Create a Tracker when starting the router
...
The tracker's HandleUpdate method is called by the ring update routines.
In addition, we add a dummy overlay for AWSVPC to make `weave (status|
report)` to produce reasonable reports which includes AWS hosts
connection state.
2016-06-08 16:44:54 +01:00
Martynas Pumputis
c260536429
Add AWSVPC Tracker
...
The tracker is responsible for managing the AWSVPC route tables
which is used to implement the underlay routing based on VPC.
2016-06-08 16:44:54 +01:00
Martynas Pumputis
59b3a3c8c5
Add the Tracker interface
...
An instance of the interface must implement the HandleUpdate method
which (in the future) will be called when any change to the IPAM ring
occurs.
2016-06-08 16:44:54 +01:00
Martynas Pumputis
49f2e208c3
Make ClaimForPeers to claim CIDR-aligned ranges
2016-06-08 16:44:54 +01:00
Martynas Pumputis
2266868648
Add the range.CIDRs functions
2016-06-08 16:44:54 +01:00
Bryan Boreham
d1bba977f3
Don't stop reporting free space at the first unchanged range
2016-06-08 11:53:35 +01:00
Bryan Boreham
e2bee6e8c6
Persist ring after updates caused by reportFreeSpace()
2016-06-08 11:52:38 +01:00
Bryan Boreham
6062627582
Merge branch '1.5'
2016-06-08 11:00:57 +01:00
Anita Buehrle
efee8e73c6
minor edits also added link to guide
2016-06-08 11:00:33 +01:00
Bryan Boreham
37f820a168
Fail the script if any of the background tasks fails
2016-06-07 14:37:43 +01:00
Bryan Boreham
c41ca708f3
Add AWS-VPC diagram
2016-06-07 13:58:22 +01:00
Bryan Boreham
73d7812dc5
Check that latest version of weave image exists
...
The smoke-tests are meant to be run in a context where you have just
uploaded a build. If that upload failed and we don't do this check
then we will download the 'latest' images from DockerHub.
2016-06-07 13:29:44 +01:00
Bryan Boreham
6a410a7749
Minor improvements
2016-06-07 13:01:42 +01:00
Adam Harrison
843a993600
Merge pull request #2332 from weaveworks/issues/2326-warn-rmpeer
...
Warn on 'weave reset' if DELETE fails
2016-06-06 16:56:38 +01:00
Bryan Boreham
0fc59a831c
Initial awsvpc docs
2016-06-06 16:47:23 +01:00
Matthias Radestock
7ffbeead8d
Merge pull request #2327 from weaveworks/issues/1960-mcast-option
...
Add an option to disable multicast route per-network
Fixes #1960 .
2016-06-06 15:49:09 +01:00
Bryan Boreham
9a17439e2f
Warn on 'weave reset' if weave container is not running
2016-06-06 15:46:30 +01:00
Bryan Boreham
ab74d7b438
Improve plugin multicast docs
2016-06-06 15:41:21 +01:00
Adam Harrison
d4de48aeee
Merge branch '1.5'
...
Closes #2302
2016-06-06 15:21:54 +01:00
Adam Harrison
eaa4bd1a6c
Merge pull request #2333 from weaveworks/issues/2302-symlink-loop
...
Check if socket is identical to weave socket after trimming prefix.
2016-06-06 15:20:23 +01:00
Bryan Boreham
c380a6f4ee
Improve handling of build container
...
- Only mention the need for it on the one rule where it gets used.
- Don't delete it in `make clean-bin`.
2016-06-06 14:04:33 +01:00
Matthias Radestock
faef371a8c
Merge branch '1.5'
2016-06-06 11:51:19 +01:00
Bryan Boreham
39ba706a9b
Run just one container to build all exes
2016-06-06 11:43:08 +01:00
Matthias Radestock
aa4980bbda
remove plugin cluster store section
...
it served no purpose and was misleading
2016-06-06 11:36:18 +01:00
Matthias Radestock
7f5bf67d33
cosmetic: fix some styling in plugin docs
2016-06-06 11:33:38 +01:00
Matthias Radestock
e7e27796e4
eliminate some duplication in the plugin docs
2016-06-06 11:32:57 +01:00
Matthias Radestock
2491f49243
tweak plugin config docs
2016-06-06 11:32:15 +01:00
Matthias Radestock
c25281e827
remove dead link
2016-06-06 11:30:10 +01:00
Matthias Radestock
a4cd4d5a2f
tweak plugin pitch
2016-06-06 11:22:07 +01:00
Bryan Boreham
c6d1adf220
Revert "Do a build before the 'go test'"; it doesn't look like this goes faster after all
...
This reverts commit bd7e5d6921 .
2016-06-05 14:56:05 +01:00
Bryan Boreham
5dd7590e5c
Merge pull request #1978 from weaveworks/weave-1.5-doc-updates
...
Operational guide. Fixes #726 , fixes #1102
2016-06-03 17:30:06 +01:00
Adam Harrison
e092a517aa
Operational guide
2016-06-03 17:12:29 +01:00
Adam Harrison
9b6154cf63
Merge pull request #2331 from weaveworks/issues/2320-plugin-warning
...
Augment warning on active plugin endpoints
2016-06-03 16:17:31 +01:00
Adam Harrison
1e4d86775f
Merge pull request #2330 from weaveworks/issues/1988-proxy-plugin
...
Proxy shouldn't weave-attach containers which are using a network plugin
2016-06-03 15:48:35 +01:00
Bryan Boreham
2728bc0f9d
Merge pull request #2305 from weaveworks/issues/2186-peer-list-persistence
...
Peer list persistence; Fixes #2186 .
2016-06-03 14:31:01 +01:00
Bryan Boreham
dac2124cd1
Don't weave-attach containers which are using a network plugin
...
Particularly intended for cases where the user has configured the
proxy and also said --net=weave, but will catch any other plugin
similarly
2016-06-03 14:11:15 +01:00
Anita Buehrle
37f5a17953
Update docs
2016-06-03 13:53:07 +01:00
Adam Harrison
f9dd763774
Peer list persistence smoke test
2016-06-03 13:53:07 +01:00
Adam Harrison
4b758dd130
Implement weave launch --resume
2016-06-03 13:53:07 +01:00
Adam Harrison
5e03c0fe25
Revert #1967 (container reuse)
2016-06-03 13:53:07 +01:00
Adam Harrison
166d4afad8
Use persisted peer list on Docker restart
2016-06-03 13:53:07 +01:00
Bryan Boreham
153ed601be
Check if socket is identical to weave socket after trimming prefix.
...
This allows us to run 'weave proxy -H /var/run/weave/weave.sock'
2016-06-03 13:34:43 +01:00
Bryan Boreham
cbf4a0facd
Move warning on plugin active into Go code
2016-06-02 17:19:51 +01:00
Bryan Boreham
a1c3cba363
Invert multicast option in plugin
...
Now it's off by default, and there is an option to enable the
multicast route per-network.
We turn it on for the `weave` network created when we start the plugin.
2016-06-02 12:52:30 +01:00
Bryan Boreham
1d91c1a23b
Cleanup: change ring test from 255 to 256 in length, which is more realistic
2016-06-01 17:51:21 +01:00
Martynas Pumputis
f50fbc002e
Change ipam Universe from Range to CIDR
...
There was no code to initialize it as anything else, and this lets us
bake in an assumption that it will always be a CIDR.
2016-06-01 17:06:31 +01:00
Adam Harrison
dbc8b4fe1a
Updated badges
2016-06-01 14:43:23 +01:00
Matthias Radestock
b1fa417381
Merge branch '1.5'
2016-05-27 19:34:51 +01:00
Matthias Radestock
912e8fe119
Merge pull request #2323 from weaveworks/name-tests-properly
...
Name tests so they are picked up by runner
2016-05-27 19:33:34 +01:00
Bryan Boreham
e2294482a6
Refactor: extract functional parts of weave export so they can be called from elsewhere
2016-05-27 16:52:53 +01:00
Adam Harrison
b4fda4c98e
Name tests so they are picked up by runner
2016-05-27 16:47:47 +01:00
Bryan Boreham
d9da08792f
Merge branch '1.5'
2016-05-27 13:40:29 +01:00
Bryan Boreham
bf040105da
Speed up smoke-tests by reducing timeout on 'docker stop'
2016-05-27 13:15:32 +01:00
Bryan Boreham
e8ca085758
Merge branch '1.5'
2016-05-26 16:30:26 +00:00
Bryan Boreham
7300c33793
Add release v1.5.2
2016-05-26 16:10:07 +00:00
Bryan Boreham
f5cd7b5073
Remove 'make update' from release process now we vendor dependencies
2016-05-26 16:10:07 +00:00
Adam Harrison
f02b78ed73
Merge branch '1.5'
...
Closes #2282
2016-05-26 16:16:54 +01:00
Adam Harrison
b3379df53d
Merge pull request #2321 from weaveworks/issues/2282-check-subnets
...
Check validity of IP subnets
2016-05-26 16:16:39 +01:00
Adam Harrison
c9525532ea
Merge branch '1.5'
...
Closes #2300
2016-05-26 16:08:14 +01:00
Adam Harrison
654a811ef0
Merge pull request #2319 from weaveworks/issues/2300-spot-gateway
...
Don't release fake gateway address in plugin
2016-05-26 16:07:39 +01:00
Bryan Boreham
cda1084777
Check validity of IP subnets
...
Be more consistent about this - check in the same way whether at startup
or during allocation.
2016-05-26 14:31:17 +00:00
Bryan Boreham
fd257f43d1
Don't release fake gateway address
...
Watch out for Docker releasing the fake gateway address we create when
the network is set up, and don't pass it on to Weave IPAM.
2016-05-26 12:30:03 +00:00
Bryan Boreham
8ff814d976
Plugin and weaveutil depend on networking code
2016-05-26 11:35:10 +00:00
Bryan Boreham
7c819e7f5c
Merge branch 'issues/1940-remove-proxy-attach-dep'
2016-05-26 11:33:37 +00:00
Bryan Boreham
b417696c66
Wait 1ms before sending gratuitous arp
2016-05-26 11:17:04 +00:00
Martynas Pumputis
f0109c1920
Merge pull request #2307 from weaveworks/issues/1940-remove-proxy-attach-dep
...
Move container attachment from sh to Go
2016-05-26 10:11:02 +01:00
Bryan Boreham
6dd109a5bb
Only do ethtool tx off in bridged (pcap) mode.
...
Detect the bridge type in the same way the weave script does.
2016-05-25 17:34:13 +01:00
Bryan Boreham
2702b85ee5
Improve veth name construction; use a constant instead of "ethwe"
2016-05-25 17:34:13 +01:00
Bryan Boreham
8717fd15ed
Use 'peer' and 'veth' instead of 'guest' and 'local', after review comments
2016-05-25 17:34:13 +01:00
Bryan Boreham
161446d55d
Move error detection for attach() into Go
2016-05-25 17:34:13 +01:00
Bryan Boreham
ac14b19db8
Move attach() and detach() from shell script to Go
2016-05-25 17:34:13 +01:00
Adam Harrison
e3ef473cd3
Utility function to disable tx checksum offload
2016-05-25 17:29:45 +01:00
Bryan Boreham
4fc2835d92
Extract AddRoute function
2016-05-25 17:29:45 +01:00
Bryan Boreham
85023e0a76
Extract AttachContainer() function
...
Also move netlink and netns code from common to net
Creates interface if not already there
Adds addresses
Move the set link 'up' to after addresses are added
2016-05-25 17:29:45 +01:00
Bryan Boreham
0257274aa8
Extract basic veth setup
2016-05-25 17:23:49 +01:00
Bryan Boreham
9aaa7f19fd
initialize via sub-function
2016-05-25 17:17:19 +01:00
Bryan Boreham
9f8b94645d
Obtain IP address before setting up veth
2016-05-25 17:17:19 +01:00
Bryan Boreham
c458deaf80
Slight cleanup
2016-05-25 17:17:19 +01:00
Bryan Boreham
d59c170cd5
Remove veth on error
2016-05-25 17:17:19 +01:00
Bryan Boreham
f11d91badf
Extract veth creation and LinkSetUp to net package
2016-05-25 17:17:19 +01:00
Martynas Pumputis
c63619bf7d
Merge remote-tracking branch 'origin/1.5'
2016-05-25 17:09:48 +01:00
Martynas Pumputis
d9d1956e0c
Merge pull request #2313 from weaveworks/cni-gratuitous-arp
...
Send out arp update from CNI plugin
2016-05-25 17:06:10 +01:00
Bryan Boreham
f695b3fd17
Smoke-test CNI arp update
2016-05-25 12:05:20 +01:00
Bryan Boreham
ede00047db
Send out arp update from CNI plugin
2016-05-25 12:05:20 +01:00
Adam Harrison
52377df340
Merge branch '1.5'
2016-05-24 17:10:52 +01:00
Adam Harrison
424d331a32
Merge pull request #2314 from weaveworks/disable-doc-previews
...
Temporarily disable doc previews
2016-05-24 17:10:28 +01:00
Adam Harrison
fbbbb924a3
Temporarily disable doc previews
2016-05-24 16:46:41 +01:00
Matthias Radestock
caeff127c9
Merge branch '1.5'
2016-05-24 11:27:42 +01:00
Bryan Boreham
56145ba518
Merge pull request #2311 from weaveworks/issues/2306-proxy-swarm-pending
...
Flush chunked response header immediately; fixes #2306 .
2016-05-24 10:36:09 +01:00
Adam Harrison
885b6195f6
Flush chunked response header immediately
2016-05-24 08:28:24 +01:00
Bryan Boreham
df3ccd362a
Merge branch '1.5'
2016-05-19 15:58:55 +01:00
Bryan Boreham
5ed18994cd
Send error messages about incompatible bridge settings to stderr
2016-05-19 15:58:15 +01:00
Adam Harrison
4dca07c9ff
Merge pull request #2296 from weaveworks/issues/2284-die-another-way
...
Move kill-on-failure responsibility to caller of weave script
2016-05-18 12:19:44 +01:00
Adam Harrison
b16de0c71e
Merge pull request #2299 from weaveworks/issues/fix-offset-abuse
...
Change the type of entry.Free to address.Count
2016-05-18 12:04:54 +01:00
Adam Harrison
a131703b2d
Merge remote-tracking branch 'origin/1.5'
2016-05-18 10:29:55 +01:00
Adam Harrison
78672db440
Merge pull request #2292 from weaveworks/issues/2286-hang-torpedoes
...
Protect against Docker hanging trying to talk to a non-existent plugin
2016-05-18 10:27:13 +01:00
Adam Harrison
5b4906f822
Merge branch '1.5'
2016-05-18 09:46:01 +01:00
Adam Harrison
ee9f8eec1c
Merge pull request #2291 from weaveworks/issues/refactor-check-attached
...
Refactor wait_for_{proxy,attached}
2016-05-18 09:44:15 +01:00
Adam Harrison
dc0e25a420
Add .ackrc which excludes vendor/ and .pkg/
2016-05-17 10:37:56 +01:00
Martynas Pumputis
85cea672d3
Change the type of entry.Free to address.Count
...
This change is backward compatible, because the underlying types of
address.Offset (the previous type) and address.Count are the same
and the Gob encoder does not require types to exactly correspond.
2016-05-16 15:03:05 +01:00
Bryan Boreham
ff81ecfd41
Move kill-on-failure responsibility to caller of weave script
2016-05-16 13:38:22 +01:00
Martynas Pumputis
ef5f80a05a
Merge pull request #2287 from weaveworks/donate-cidr-aligned
...
Donate CIDR-aligned ranges instead of just slicing at the mid-point.
2016-05-16 12:40:17 +01:00
Bryan Boreham
d551b6b0a8
Review feedback
2016-05-13 16:27:28 +01:00
Bryan Boreham
1ec2c0fb3f
Use a CIDR-aligned CIDR in unit tests
2016-05-13 16:27:28 +01:00
Bryan Boreham
d1e2aa6d36
Use quick.Check instead of many specific tests
2016-05-13 16:27:28 +01:00
Bryan Boreham
64dc7a1f69
Donate power-of-2-aligned ranges instead of just slicing at the mid-point.
...
Also fix up space tests to match.
2016-05-13 16:27:28 +01:00
Bryan Boreham
bc79a9187f
Protect against Docker hanging trying to talk to a non-existent plugin
...
Remove the Unix socket from the filesystem before doing volume
operations, if the plugin is not running.
2016-05-12 15:40:04 +00:00
Martynas Pumputis
02d9c090ed
Add wait_for_attached
2016-05-12 12:25:59 +01:00
Martynas Pumputis
671ed724d5
Move wait_for_proxy to config.sh
2016-05-12 12:15:20 +01:00
Bryan Boreham
f37e742536
Merge branch '1.5'
2016-05-12 11:00:14 +00:00
Bryan Boreham
6c7f860418
Merge pull request #2278 from weaveworks/issues/fix-320-claim-test
...
Fix 320_claim_3_test.sh
2016-05-12 11:59:14 +01:00
Bryan Boreham
79d78ae97b
Merge branch '1.5'
2016-05-12 09:57:48 +00:00
Bryan Boreham
4ff574744e
Use ubuntu:trusty to ensure 'nc' is available
2016-05-12 09:53:29 +00:00
Martynas Pumputis
7c3e937ae8
Fix 320_claim_3_test
2016-05-11 12:18:39 +01:00
Martynas Pumputis
178438c470
Merge branch '1.5'
2016-05-10 17:36:56 +01:00
Martynas Pumputis
632694472c
Merge pull request #2281 from weaveworks/issues/2275-request-order
...
Ignore IPAM requests for space until we have a ring
Fixes #2275
2016-05-10 17:36:26 +01:00
Martynas Pumputis
14e1145972
Merge branch '1.5'
2016-05-10 17:34:08 +01:00
Martynas Pumputis
8df1aa48a5
Merge pull request #2280 from weaveworks/sleep-perchance
...
Move sleep on reset from IPAM Allocator to weave script
2016-05-10 17:33:30 +01:00
Bryan Boreham
16b75f899e
Move sleep on reset from IPAM Allocator to weave script
2016-05-10 16:03:08 +01:00
Bryan Boreham
c3abe4f7b2
If we don't have a ring, just ignore a request for space.
2016-05-10 15:33:13 +01:00
Bryan Boreham
f800813031
Test claim as first operation
2016-05-10 15:32:15 +01:00
Martynas Pumputis
f7bddab4cb
Merge branch '1.5'
2016-05-10 15:27:15 +01:00
Martynas Pumputis
c434345960
Fix typo
2016-05-10 15:24:38 +01:00
Martynas Pumputis
f9157acced
Fix logging
2016-05-10 15:18:10 +01:00
Bryan Boreham
e49bbe176d
Make clear that we want the same universe throughout the test
2016-05-10 13:32:56 +01:00
Adam Harrison
0e694ed6b4
Merge branch '1.5'
2016-05-09 16:37:05 +01:00
Adam Harrison
9dfd7004cc
Document adding new version to checkpoint API
2016-05-09 16:36:32 +01:00
Bryan Boreham
cf6d0c8126
Merge branch '1.5'
2016-05-09 15:48:20 +01:00
Bryan Boreham
3963d4453a
Remove mention of obsolete branch latest_release_doc_updates
2016-05-09 15:48:05 +01:00
Bryan Boreham
99b0b949e8
Merge branch '1.5'
2016-05-09 15:40:12 +01:00
Bryan Boreham
ce5d2a6dd0
Add release v1.5.1
2016-05-09 15:16:21 +01:00
Adam Harrison
801283267a
Merge branch '1.5'
...
Closes #1876 .
2016-05-09 14:58:28 +01:00
Bryan Boreham
a2e301c648
Merge pull request #2263 from weaveworks/issues/1876-weave-status-ipam-docs
...
Document `weave status ipam`. Fixes #1876 .
2016-05-09 14:56:59 +01:00
Bryan Boreham
2249c7c648
Merge branch '1.5'
2016-05-09 14:46:06 +01:00
Bryan Boreham
0425d5bf6a
Removed duplicated 'name'
2016-05-09 14:45:43 +01:00
Bryan Boreham
de9597b6fa
Merge branch '1.5'
2016-05-09 14:38:00 +01:00
Bryan Boreham
2fa576f3c0
Merge pull request #2265 from weaveworks/issues/2232-block-claim
...
Make claim block if the IPAM ring is not established. Fixes #2232
2016-05-09 14:37:37 +01:00
Adam Harrison
fa29a4b4af
Document weave status ipam
2016-05-09 13:41:42 +01:00
Martynas Pumputis
d698aefbfc
Make Claim to block if the IPAM ring is not established
2016-05-09 12:48:41 +01:00
Matthias Radestock
db1ac2a343
Merge branch '1.5'
2016-05-09 11:50:09 +01:00
Matthias Radestock
a3b6380296
Merge pull request #2264 from weaveworks/issues/2123-die-another-way
...
Kill process instead of container, on container restart.
Fixes #2123
2016-05-09 11:47:58 +01:00
Bryan Boreham
469d456c8b
Smoke-test for container restart with proxy attach failure
2016-05-09 11:19:19 +01:00
Matthias Radestock
438efcccda
Merge branch '1.5'
2016-05-07 20:19:18 +01:00
Matthias Radestock
daa369b86c
refactor: extract a couple of helpers in allocator tests
...
to reduce repetition
2016-05-07 20:18:21 +01:00
Matthias Radestock
c3a2ea3dd8
Merge branch '1.5'
2016-05-07 17:57:10 +01:00
Matthias Radestock
c54f2959ad
Merge pull request #2266 from weaveworks/issues/2233-peer-name-docs
...
Document peer name
Fixes #2233 .
2016-05-07 17:56:39 +01:00
Matthias Radestock
ac0f284c5f
Merge branch '1.5'
2016-05-07 14:43:04 +01:00
Matthias Radestock
bd06553ce0
Merge pull request #2262 from weaveworks/issues/2194-reclaim-plugin-addrs
...
Reclaim plugin addresses without warning
Fixes #2194
2016-05-07 14:41:03 +01:00
Adam Harrison
158fa9d8e5
Reclaim plugin addresses using container ID of '_'
2016-05-07 14:35:15 +01:00
Anita Buehrle
d234ca6ab8
clarified sentence, cosmetic
2016-05-06 12:41:59 -05:00
Bryan Boreham
8d71467802
Kill process instead of container, on container restart.
...
When Docker restarts a container and something goes wrong attaching
the network, kill the process inside the container instead of killing
the container, so that Docker will restart it again
2016-05-06 18:02:11 +01:00
Adam Harrison
8c5cbc738a
Document peer name
2016-05-06 17:47:34 +01:00
Bryan Boreham
01e3d1d81b
Refactor: extract kill_container function
2016-05-06 15:45:54 +01:00
Matthias Radestock
5e297c366e
Merge branch '1.5'
2016-05-06 15:13:19 +01:00
Matthias Radestock
39b0d2a0cb
Merge pull request #2261 from weaveworks/readme-update
...
remove duplicate content in README
Fixes #2217
2016-05-06 15:10:59 +01:00
Adam Harrison
260b416cd7
Include interface name in container-addrs output
2016-05-06 14:12:50 +01:00
Adam Harrison
ad5845b67f
Fix echo_ips
2016-05-06 14:12:19 +01:00
Bryan Boreham
b426973679
Merge branch '1.5'
2016-05-06 12:46:21 +01:00
Bryan Boreham
7fcd837277
Cosmetic
2016-05-06 12:45:54 +01:00
Bryan Boreham
5993b3e846
Refactor: extract function to look up waiting channel for container
2016-05-06 12:45:03 +01:00
Matthias Radestock
cf7ea357de
Merge branch '1.5'
2016-05-06 11:21:57 +01:00
Matthias Radestock
4e48b956d9
Merge pull request #2250 from weaveworks/issues/2245-document-log-level
...
Document --log-level
Fixes #2245
2016-05-06 11:21:20 +01:00
Matthias Radestock
5b5d9d833a
Merge pull request #2219 from weaveworks/export-wider
...
Document adding a route on non-Weave hosts
2016-05-06 11:20:27 +01:00
Bryan Boreham
e16a4aa97a
Document adding a route on non-Weave hosts
2016-05-06 11:13:15 +01:00
Bryan Boreham
12fa345d10
Punctuation
2016-05-06 11:10:34 +01:00
Matthias Radestock
d2ea7e046d
make clear that this repo is for Weave Net
...
...and make the links more relevant and 'active'
2016-05-06 10:55:29 +01:00
Matthias Radestock
1b50285609
add link to Weave Net product when first mentioning it
...
just as we do for scope and flux
2016-05-06 10:55:29 +01:00
Matthias Radestock
658c910862
fix typo
2016-05-06 10:55:29 +01:00
Anita Buehrle
e1ab6a9035
removed installing heading
2016-05-06 10:55:29 +01:00
abuehrle
8c8709e527
added overview links to install
2016-05-06 10:55:29 +01:00
abuehrle
d1e004dedc
removed duplicate content added links to website
2016-05-06 10:55:29 +01:00
Matthias Radestock
8a827bebc8
Merge branch '1.5'
2016-05-05 17:56:57 +01:00
Matthias Radestock
4fc232be61
Merge pull request #2259 from weaveworks/issues/2214-fix-plugin-readme-links
...
Plugin README links refer to latest release docs
Fixes #2214 .
2016-05-05 17:56:28 +01:00
Adam Harrison
df2868fcdd
Plugin README links refer to latest release docs
2016-05-05 16:32:53 +01:00
Matthias Radestock
32ba82efaf
Merge branch '1.5'
2016-05-05 14:50:00 +01:00
Matthias Radestock
b1aa52b3ed
Merge pull request #2238 from weaveworks/missing-persist
...
Persist the IPAM ring on `weave reset` and `weave rmpeer`
2016-05-05 14:41:53 +01:00
Bryan Boreham
11c368531a
Add --log-level to weave usage message, and document it and a couple of
...
other options on the proxy.
2016-05-05 12:44:40 +00:00
Matthias Radestock
e389c8bb06
Merge branch '1.5'
2016-05-05 13:33:54 +01:00
Adam Harrison
608da90dc7
Publish doc previews for all branches, not just those named issues/* ( #2258 )
2016-05-05 13:33:28 +01:00
Matthias Radestock
d3ddb71557
Merge branch '1.5'
2016-05-05 12:07:12 +01:00
Bryan Boreham
fbb6e58b4f
Add a section explaining WEAVE_MTU for fastdp ( #2253 )
...
Add a section explaining WEAVE_MTU for fastdp
Fixes #2198
2016-05-05 12:06:13 +01:00
Adam Harrison
34b95ee36f
Merge branch '1.5'
2016-05-05 10:11:50 +01:00
Adam Harrison
1283ba4f61
Merge pull request #2249 from weaveworks/issues/2209-depersist-on-range-change
...
Better deleting of persisted IPAM data
2016-05-05 10:11:22 +01:00
Tom Wilkie
a0982cb5e5
Merge pull request #2005 from weaveworks/sudo
...
Autodetect if we talk to docker via tcp in the Makefile
2016-05-05 10:05:56 +01:00
Tom Wilkie
0314a86e03
Autodetect if we talk to docker via tcp in the Makefile
2016-05-04 16:28:28 +01:00
Bryan Boreham
d9d038ae35
Merge branch '1.5'
2016-05-04 15:38:33 +01:00
Bryan Boreham
87b61419f3
Move plugin arguments from separate doc into main plugin doc and add table of contents with sub-heading anchors
2016-05-04 14:44:10 +01:00
Adam Harrison
5fb6df5219
Merge branch '1.5'
2016-05-04 13:34:06 +01:00
Matthias Radestock
b6647741b5
Merge pull request #2162 from weaveworks/issues/2034-log-rest-api
...
Add LogHandler for logging REST API calls at server side
Fixes #2034
2016-05-04 12:39:11 +01:00
Adam Harrison
0b4f9dbcf9
Merge pull request #2255 from weaveworks/issues/wordepress-stable-urls
...
Upgrade release branch doc publishing to wordepress 1.0.0
2016-05-04 11:59:22 +01:00
Martynas Pumputis
9644ed3f29
Merge pull request #2196 from weaveworks/issues/2194-claim-addr
...
Improve handling of `claim _`
2016-05-04 11:22:04 +01:00
Adam Harrison
1d52615452
Pin all branches to Wordepress 1.0.0
2016-05-04 11:07:12 +01:00
Adam Harrison
327a6f6d61
Upgrade to Wordepress 1.0.0
...
Release docs will now also be available with a stable 'latest' URL.
2016-05-04 11:01:07 +01:00
Adam Harrison
7aee9ebf84
Merge pull request #2254 from weaveworks/issues/wordepress-stable-urls
...
Upgrade to Wordepress 1.0.0
2016-05-04 10:56:34 +01:00
Adam Harrison
8f6087cfec
Upgrade to Wordepress 1.0.0
...
Release docs will now also be available with a stable 'latest' URL.
2016-05-04 10:30:18 +01:00
Matthias Radestock
6022ad467a
Merge branch '1.5'
2016-05-03 17:56:46 +01:00
Matthias Radestock
05652c0a3c
Merge pull request #2252 from weaveworks/issues/2244-dns-noerror
...
Blank DNS response to AAAA queries where we have an A record
Fixes #2244 .
2016-05-03 17:55:37 +01:00
Bryan Boreham
503546d2a9
Return DNS no-error with empty answer if we have a matching name
...
but the query is for a record type we don't support.
2016-05-03 17:33:51 +01:00
Bryan Boreham
3252a25e00
Broadcast initial ring after persisting it, in case we die between those operations
2016-05-03 17:23:00 +01:00
Bryan Boreham
6847a3551d
Persist the ring in Shutdown() and AdminTakeoverRanges().
...
Also make AdminTakeoverRanges cause pending ops to be retried.
2016-05-03 17:23:00 +01:00
Bryan Boreham
70bd0ade45
Identifier "_" is address, not cidr
2016-05-03 15:47:45 +01:00
Martynas Pumputis
9dd1fbba39
Add LoggingHTTPHandler for logging REST requests at the server-side
2016-05-03 15:40:37 +01:00
Bryan Boreham
8405e0759a
Clarify the function of the periodic ticker.
...
- it either retries for consensus or retries operations we would have tried previously.
There is no point retrying pending operations if we are waiting for consensus.
2016-05-03 15:13:20 +01:00
Adam Harrison
bcc9a85e29
Merge remote-tracking branch 'origin/1.5'
2016-05-03 14:27:51 +01:00
Adam Harrison
be3b0aa976
Merge pull request #2247 from weaveworks/pin-wordepress-version
...
Pin wordepress version used to publish site
2016-05-03 14:13:03 +01:00
Bryan Boreham
5ac8cc74d3
Refactor nested if-statements as switch
2016-05-03 13:52:36 +01:00
Adam Harrison
68e5ed575f
Pin wordepress version
...
Use specific versions of wordepress for live and dev publishing
2016-05-03 13:47:37 +01:00
Bryan Boreham
f6966548eb
Delete persisted data when IPAM range changes
2016-05-03 13:20:04 +01:00
Bryan Boreham
fb3ed9c1a6
Re-organise checking of persisted data so the failure paths bail out
...
of the function first.
Also bail out if there is no persisted ring, since persisted 'owned'
data isn't meaningful in that state.
2016-05-03 13:20:04 +01:00
Bryan Boreham
61fc5d56fb
Refactor: move initialisation in the case that we don't use persisted data
...
out from loadPersistedData().
2016-05-03 13:20:04 +01:00
Bryan Boreham
e96b68f0aa
Don't use persisted data until we are sure it matches
2016-05-03 13:20:04 +01:00
Bryan Boreham
bd23c79823
Merge branch '1.5'
2016-04-29 21:11:12 +01:00
Bryan Boreham
393fa3a333
Remove obsolete option and add --no-restart option
2016-04-29 19:49:21 +00:00
Bryan Boreham
27bdd3b4ad
Revert "Log the error when something goes wrong requesting a claimed address"
...
This reverts commit 14bc1c987e .
2016-04-29 16:03:41 +01:00
Bryan Boreham
14bc1c987e
Log the error when something goes wrong requesting a claimed address
2016-04-29 16:01:21 +01:00
Bryan Boreham
fd7fcc762e
Clarify the function of the periodic ticker.
...
- it either retries for consensus or retries operations we would have tried previously.
There is no point retrying pending operations if we are waiting for consensus.
2016-04-29 13:59:25 +01:00
Matthias Radestock
03afb54cdd
remove cruft
2016-04-29 10:03:23 +01:00
Bryan Boreham
50e114863d
Merge branch '1.5'
2016-04-28 09:40:04 +00:00
Bryan Boreham
9ce229ba3a
Merge pull request #2202 from weaveworks/issues/1482-update-test320
...
Update test 320 to cope with persistence
2016-04-28 10:21:57 +01:00
Adam Harrison
e6f031a3c9
Merge pull request #2218 from weaveworks/1.6-upgradeathon
...
Upgrade vendored libs
2016-04-28 10:13:44 +01:00
abuehrle
8b432a4d3e
fixed broken links
2016-04-27 15:16:45 -05:00
Matthias Radestock
818f3e284b
Merge branch '1.5'
2016-04-27 20:29:38 +01:00
Matthias Radestock
560f38330e
Merge pull request #2230 from weaveworks/tweak-using-titles
...
Tweak titles under "Using Weave Net"
2016-04-27 20:17:04 +01:00
Matthias Radestock
5771ba15dd
Merge branch '1.5'
2016-04-27 19:37:22 +01:00
abuehrle
9243bc2b0a
fixed broken links
2016-04-27 13:25:32 -05:00
Matthias Radestock
df5d6972e1
Tweak titles under "Using Weave Net"
...
- strip "Weave" and "Weave Net"
- "Integrating a Host Network with Weave" -> "Integrating with the
Host Network"
- "Configuring Weave to Explicitly Use an IP Range" -> "Allocating IPs
in a Specific Range"
2016-04-27 19:21:02 +01:00
Matthias Radestock
380cb9b0fc
Merge pull request #2228 from weaveworks/tweak-using-sections
...
tweak 'Using Weave Net' section order
2016-04-27 18:50:14 +01:00
Matthias Radestock
bd3b3791c6
tweak 'Using Weave Net' section order
...
- move "Managing Services in Weave Net" up so it comes after
"Integrating a Host Network with Weave Net", to which it is deeply
related
- move "Adding and Removing Hosts Dynamically" down so it is adjacent
to the other sections which talk about peer connectivity
2016-04-27 18:37:28 +01:00
Matthias Radestock
77ced2ac55
Merge branch '1.5'
2016-04-27 18:25:23 +01:00
Matthias Radestock
7decce690a
Merge pull request #2227 from weaveworks/2207-dedup-service-export-docs
...
dedup service export docs
Fixes #2207 .
2016-04-27 17:31:34 +01:00
Matthias Radestock
65ecac6f1a
cosmetic: consistency
2016-04-27 11:54:23 +01:00
Matthias Radestock
14a3898371
remove service-export doc since it duplicates content
...
...and update links accordingly.
2016-04-27 11:53:03 +01:00
Matthias Radestock
c012650476
make service export section match whats in the separate doc
2016-04-27 11:48:56 +01:00
Adam Harrison
d5fd62393f
Merge branch '1.5'
2016-04-27 10:00:21 +01:00
Adam Harrison
789a6192f2
Merge pull request #2221 from weaveworks/issues/2216-fix-link
...
Fix broken link
2016-04-27 09:32:26 +01:00
Matthias Radestock
298fdc3d58
Merge branch '1.5'
2016-04-27 08:40:58 +01:00
Matthias Radestock
019a065d03
refactor: more logical question ordering
2016-04-27 08:40:07 +01:00
Matthias Radestock
de1304d424
fix typo
2016-04-27 08:39:23 +01:00
Matthias Radestock
ef915ca58f
cosmetic: consistent formatting of FAQ questions
2016-04-27 08:36:25 +01:00
Matthias Radestock
72e134605c
refactor: move pure code outside actor
2016-04-26 20:02:47 +01:00
Matthias Radestock
7cc2a1fe38
refactor: more descriptive function name
2016-04-26 17:33:04 +01:00
Adam Harrison
5de090999c
Fix broken link
2016-04-26 17:29:34 +01:00
Adam Harrison
8ea5d999c2
Disable dry run mode
2016-04-26 17:29:26 +01:00
Adam Harrison
671dddf761
Merge pull request #2212 from weaveworks/issues/2114-wordepress-circleci
...
Incrementally publish 1.5 branch doc updates directly to live
2016-04-26 17:06:14 +01:00
Adam Harrison
f4a117a8fc
Enable dry run mode
2016-04-26 16:46:04 +01:00
Bryan Boreham
8fdbaf5745
Merge branch '1.5'
2016-04-26 15:43:12 +01:00
Bryan Boreham
0e655a2bbd
Remove plugin-connected containers before end of test, to avoid delaying later cleanup.
...
Also use a shorter sequence to exclude the plugin when removing other containers.
2016-04-26 15:42:35 +01:00
Bryan Boreham
15054393fb
Update profile package to latest version
2016-04-26 14:57:04 +01:00
Bryan Boreham
f56d001703
Updated vendored libraries:
...
vendor/github.com/Sirupsen/logrus to latest release 0.10.0
vendor/github.com/appc/cni to latest master
vendor/github.com/boltdb/bolt to latest release 1.2.0
vendor/github.com/coreos/go-iptables to latest release 0.1.0
vendor/github.com/fsouza/go-dockerclient to latest master
vendor/github.com/docker/docker to latest release 1.11.0
vendor/github.com/docker/libnetwork to v0.7.0-dev.6 matching docker 1.11.0
vendor/github.com/docker/machine to latest release v0.7.0
vendor/github.com/google/gopacket to latest master
vendor/github.com/gorilla/context to latest release 1.1
vendor/github.com/gorilla/mux to latest release 1.1
vendor/github.com/hashicorp/go-cleanhttp to latest master
vendor/github.com/miekg/dns to latest master
vendor/github.com/opencontainers/runc to latest release 0.1.0
vendor/github.com/stretchr/testify unchanged at 1.1.3
vendor/github.com/vishvananda/netlink to latest master
vendor/github.com/vishvananda/netns to latest master
vendor/github.com/weaveworks/go-checkpoint unchanged; already at latest on master
vendor/github.com/weaveworks/go-odp to latest master
vendor/github.com/weaveworks/mesh to latest master
vendor/golang.org/x/crypto to latest master
2016-04-26 14:19:29 +01:00
Matthias Radestock
6ac248bfbf
Merge branch '1.5'
2016-04-26 14:08:21 +01:00
Matthias Radestock
a5739e8753
make plugin README link to other docs on github rather than website
...
until we have stable (non-version-specific) links for the latter.
Stop-gap for #2214 .
2016-04-26 14:06:40 +01:00
Adam Harrison
79f2324d2b
Update release process
2016-04-26 12:04:28 +01:00
Anita Buehrle
c1a3ea925d
Updated IPAM title and added punctuation
2016-04-26 10:10:41 +01:00
Adam Harrison
062c7a6fdc
Minor doc fixes for incremental publish
2016-04-25 17:30:51 +01:00
Adam Harrison
6cc7f37dbb
Publish /site from CI
2016-04-25 17:30:51 +01:00
Bryan Boreham
76601fed09
Fix up merge in unit test
2016-04-25 12:28:47 +01:00
Bryan Boreham
88a044f7f9
Merge pull request #2184 from weaveworks/2181-excessive-ring-frag
...
prevent excessive ring fragmentation due to repeated space requests. Fixes #2181
2016-04-25 11:54:12 +01:00
Matthias Radestock
03fcbbceb9
add CONTRIBUTING.md
2016-04-24 19:55:23 +01:00
Matthias Radestock
cec88f154e
Merge pull request #2205 from weaveworks/issues/2057-gc-nicknames
...
Add allocator.PeerGone
Fixes #2057
2016-04-22 17:42:43 +01:00
Martynas Pumputis
849edb1768
Add allocator.PeerGone
...
The function is registered within the mesh gc and it is responsible
for removing gone nicknames (#2057 ).
2016-04-22 17:29:27 +01:00
Bryan Boreham
981b78f680
Merge pull request #2203 from weaveworks/issues/2197-add-equals
...
Add equals sign to --dns arg, for consistency
2016-04-22 14:39:18 +01:00
Bryan Boreham
ee75d91756
Merge branch '1.5'
2016-04-22 14:37:25 +01:00
Bryan Boreham
d2450aae1c
Merge pull request #2204 from weaveworks/issues/2193-dns-leak
...
Fixes #2123 : Use ContainerID when restarting a container
2016-04-22 14:36:17 +01:00
Bryan Boreham
b4f35f1d38
Add equals sign to --dns arg, for consistency
2016-04-22 11:16:58 +01:00
Matthias Radestock
9326775718
remove cruft
2016-04-21 18:59:28 +01:00
Bryan Boreham
76f9afb59c
Removed errant spaces on bullets
2016-04-21 17:45:52 +01:00
Bryan Boreham
192fbe3a53
Update test 320 to cope with persistence
2016-04-21 16:19:59 +01:00
Martynas Pumputis
427b6d2902
Use ContainerID when restarting a container
...
Otherwise, we are risking to leak DNS entries which happens when
ContainerName is passed to `weave reset` and subsequent internal call
to nameserver creates a new entry instead of replacing the old one.
The ContainerID of the new entry is set to ContainerName and in such case
stopping the container will not remove the new entry.
2016-04-21 16:12:02 +01:00
Bryan Boreham
2f5a3f4513
Remove db-prefix now that persistence is in a volume
2016-04-21 14:32:45 +01:00
Bryan Boreham
c984ec1e86
Fix port number in docs, and add to FAQ
2016-04-20 12:41:54 +01:00
Bryan Boreham
061d2b123f
Add weavedb to the images pulled by 'weave setup'
2016-04-20 11:53:10 +01:00
Adam Harrison
07780fa10c
Merge pull request #2188 from weaveworks/doc-improvements
...
Minor improvements to docs
2016-04-19 15:37:23 +01:00
Adam Harrison
a6b7f0a9d4
Merge pull request #2185 from weaveworks/change-titles
...
Restructure docs
2016-04-19 15:34:53 +01:00
Bryan Boreham
5b72142aa3
Fix broken fastdp links
2016-04-19 15:21:49 +01:00
Bryan Boreham
476d2fee09
Update plugin docs for restarts
2016-04-19 15:09:53 +01:00
Bryan Boreham
b95c559564
Document --no-restart
2016-04-19 15:09:31 +01:00
Bryan Boreham
cfdba71f90
Document IPAM persistence
...
Remove statement that nothing is persisted in IPAM
2016-04-19 13:45:49 +01:00
Bryan Boreham
8ac90c693d
Move video up, fix guide link and remove stray bracket
2016-04-19 13:45:21 +01:00
Bryan Boreham
74546578ac
Move 'using weave' netcat example up a level
2016-04-19 13:45:21 +01:00
Bryan Boreham
88c6c17767
Minor improvements to docs
2016-04-19 13:38:10 +01:00
Bryan Boreham
f5223d754a
Add release v1.5.0
2016-04-19 12:03:44 +01:00
Bryan Boreham
278f7d8381
Move CNI up to top level
2016-04-18 18:15:32 +01:00
Adam Harrison
2dddc58754
Remove unnecessary title from building doc
2016-04-18 18:01:18 +01:00
Bryan Boreham
d454e610f1
Move encryption out of top level
2016-04-18 18:00:09 +01:00
Bryan Boreham
4d06069138
Move IP Addressing overview under how-it-works and Configuring IP under Using Weave
2016-04-18 17:58:07 +01:00
Bryan Boreham
3f0a5d9e5d
Move systemd page out of top level
2016-04-18 17:55:00 +01:00
Bryan Boreham
85bda72038
Move fastdp pages out of top level
2016-04-18 17:54:51 +01:00
Bryan Boreham
1c7df2958a
Merge branch '1.4'
2016-04-18 17:15:37 +01:00
Bryan Boreham
302d412530
Merge pull request #2158 from weaveworks/issues/2147-dont-nat-cast
...
Add iptables rule excluding multicast from NAT on 'weave expose'
2016-04-18 17:14:29 +01:00
Bryan Boreham
ca2e54c361
Renamed 'router-topology' to 'how-it-works'
2016-04-18 16:53:39 +01:00
Adam Harrison
b9706e456a
Strip erroneous extra backtick from code fences
2016-04-18 15:10:37 +01:00
Adam Harrison
e1478eefd4
Remove language spec from code fences
2016-04-18 15:10:37 +01:00
Adam Harrison
3a2452baf6
Style FAQ questions with emphasis
2016-04-18 15:10:37 +01:00
Adam Harrison
82c9a88aa2
Update titles and menu order
2016-04-18 15:10:37 +01:00
Adam Harrison
7ef007bbf5
Copy linked screencast image into /site
2016-04-18 14:26:42 +01:00
Bryan Boreham
d32fc495c8
Merge branch '1.4'
2016-04-18 14:08:04 +01:00
Bryan Boreham
d3635eed77
Need to mock-gossip from the end of the chain
2016-04-18 14:06:38 +01:00
Adam Harrison
a16b48d8f3
Restore submodule dependency broken by f3dbebd467
2016-04-18 13:04:21 +01:00
Adam Harrison
6ad9dac71a
Merge pull request #2165 from weaveworks/issues/2164-less-deleting
...
Store 'checkAlive' flag in IPAM, so we don't delete non-container IDs
2016-04-18 11:49:50 +01:00
Adam Harrison
a921f77258
Merge pull request #2172 from weaveworks/disable-peer-persistence
...
Disable persistence of peer lists
2016-04-18 11:48:46 +01:00
Bryan Boreham
8253d17529
Merge branch '1.4'
2016-04-18 10:58:39 +01:00
Bryan Boreham
d3be3d8912
Remove outdated comment
2016-04-18 10:53:55 +01:00
Bryan Boreham
a6e0226189
Merge pull request #2182 from weaveworks/2180-test-transfer-1.4
...
fix simulation of periodic gossip in TestTransfer
2016-04-18 10:52:28 +01:00
Adam Harrison
f3dbebd467
Remove obsolete Jekyll raw directives
2016-04-18 10:36:43 +01:00
Bryan Boreham
b7b9322e33
Merge pull request #2178 from weaveworks/2177-multiweave-persistence
...
name db container after weave container
2016-04-18 10:31:09 +01:00
Bryan Boreham
5e4ab7f307
Plumb isContainer through Claim calls
2016-04-18 10:16:54 +01:00
Bryan Boreham
2b159b0c75
Pass checkAlive flag through as isContainer in Allocate
2016-04-18 10:16:54 +01:00
Bryan Boreham
984ba8a377
Extend 'owned' structure to store IsContainer flag
2016-04-18 10:13:09 +01:00
Bryan Boreham
01be916c37
Add test to expose problem deleting non-container IPs
...
and check dead containers are removed
2016-04-18 10:13:09 +01:00
Matthias Radestock
c1d98ba59c
refactor: extract a helper
2016-04-17 12:40:34 +01:00
Matthias Radestock
a1823af745
refactor: make error returns less onerous
2016-04-17 12:40:34 +01:00
Matthias Radestock
4a01d23025
refactor: extract entry merging from ring merging
2016-04-17 12:40:34 +01:00
Matthias Radestock
27632b118f
prevent excessive ring fragmentation due to repeated space requests
...
Merging a ring now indicates whether the ring has been updated. This
prevents excessive allocation retries, which in turn can result in
repeated space requests - i.e. if an allocation cannot proceed due to
lack of space - which in turn can result in excessive ring
fragmentation since many of the requests will result in the creation
of a new ring entries, due to the need to split ranges.
Fixes #2181 .
2016-04-17 12:40:18 +01:00
Matthias Radestock
0e54de63cc
cosmetic
2016-04-17 09:33:52 +01:00
Matthias Radestock
c0c5906d07
fix simulation of periodic gossip in TestTransfer
...
`GossipBroadcast` in the `TestRouter` only goes one hop. In
`TestTransfer` the three peers are connected in a chain, and hence we
need to take extra care to ensure propagation to all peers.
Fixes #2180 .
2016-04-16 10:11:06 +01:00
Matthias Radestock
f6f4ee708a
Merge remote-tracking branch 'upstream/master'
2016-04-16 09:13:44 +01:00
Matthias Radestock
8f54f83285
refactor: align test allocator names with indices
...
for easier debugging
2016-04-16 09:12:49 +01:00
Matthias Radestock
e393b4aaa6
name db container after weave container
...
...so that we can start multiple weaves on a machine w/o them sharing
a single db container and tripping over each other as a result.
Unbreaks multiweave.
Fixes #2177
2016-04-16 03:09:45 +01:00
Anita Buehrle
8822aa4ece
fixed link and formatting
2016-04-15 17:03:54 -05:00
Anita Buehrle
3e83897752
fixed a link
2016-04-15 16:21:57 -05:00
Anita Buehrle
1d7cdfae5d
moved full stop
2016-04-15 16:16:46 -05:00
Anita Buehrle
0e71b7c01d
moved full stop
2016-04-15 16:15:14 -05:00
Anita Buehrle
3c8bff70df
moved full stop to outside of link
2016-04-15 16:13:17 -05:00
Anita Buehrle
6de0c06ada
missing link and punctuation
2016-04-15 15:54:25 -05:00
Anita Buehrle
4ede0ac923
fixed up missing punctuation
2016-04-15 15:50:34 -05:00
Anita Buehrle
fa3f1b277f
removed bash formatting
2016-04-15 15:42:13 -05:00
Anita Buehrle
5ade5cca03
fixed links and formatting
2016-04-15 15:38:25 -05:00
Anita Buehrle
99a5b4aed3
fixed links and formatting
2016-04-15 15:36:55 -05:00
Anita Buehrle
07026bc7a9
removed bash formatting
2016-04-15 15:30:45 -05:00
Anita Buehrle
0ed9694199
fixed broken links and added missing punctuation
2016-04-15 15:28:43 -05:00
Bryan Boreham
098be788ae
Merge pull request #2166 from weaveworks/optional-restart-policy
...
Optional restart policy
2016-04-15 17:45:54 +01:00
Adam Harrison
c6609bd248
Smoke test --no-restart
2016-04-15 15:04:29 +01:00
Adam Harrison
cadc3869b3
Launch observes --no-restart
2016-04-15 15:04:29 +01:00
Bryan Boreham
4669da6074
Disable persistence of peer lists
2016-04-15 14:49:50 +01:00
Matthias Radestock
439c9143af
Merge pull request #2173 from weaveworks/reword-ipam-status
...
Improve IPAM status wording
2016-04-15 14:00:30 +01:00
Adam Harrison
b9340ada3e
Improve IPAM status wording
2016-04-15 13:39:55 +01:00
Adam Harrison
88e2761b18
Improve wording
2016-04-15 09:53:33 +01:00
Bryan Boreham
02516361c7
Merge pull request #2155 from weaveworks/issues/2065-rationalise-ipam-concepts
...
Rationalise IPAM concepts
2016-04-14 17:33:27 +01:00
Adam Harrison
31ca8f9dbf
Merge pull request #2135 from weaveworks/issues/2031-persistence-volume
...
Use a data volume container for persistence of IPAM etc.
2016-04-14 13:21:22 +01:00
Adam Harrison
a657e25a81
Update documentation
2016-04-14 12:46:04 +01:00
Adam Harrison
e355e50c0d
Tests prefer --ipalloc-init
2016-04-14 12:46:03 +01:00
Adam Harrison
af8f590646
Deprecate --init-peer-count
2016-04-14 12:46:03 +01:00
Adam Harrison
c3ecbc9d48
Implement unified --ipalloc-init parameter
2016-04-14 12:46:03 +01:00
Adam Harrison
a09986baa2
Rename consense -> prime
2016-04-14 12:46:03 +01:00
Matthias Radestock
e9ca0ffad1
Merge remote-tracking branch 'upstream/master'
2016-04-13 19:48:33 +01:00
Matthias Radestock
aed6fd3fcc
eliminate pcap cruft from docs
...
Fixes #2159
Fixes #1908
2016-04-13 19:47:33 +01:00
Matthias Radestock
e77b2ae288
make clear that documented encapsulation is for sleeve
2016-04-13 19:46:53 +01:00
Matthias Radestock
828e5ba0b8
clearer reference to 'sleeve' in fastdp intro
2016-04-13 19:45:35 +01:00
Bryan Boreham
0eee97b988
Use regular persistence settings in test, since they now survive a restart
2016-04-13 16:08:41 +01:00
Bryan Boreham
358342aa4f
Use a data volume container for BoltDB files.
...
We provide a very small image to use for this container.
Also we add an empty weavedata.db file to weave image so it doesn't crash when run without volume override
2016-04-13 16:07:55 +01:00
Bryan Boreham
6b08f97910
Merge pull request #2131 from weaveworks/issues/2089-vsn-check
...
2089: Add info about new available versions to the `weave status` report
2016-04-13 12:20:57 +01:00
Bryan Boreham
045edcca2f
Add iptables rule excluding multicast from NAT on 'weave expose'
2016-04-13 12:05:24 +01:00
Matthias Radestock
b4050276a9
Merge pull request #2154 from weaveworks/issues/2153-lock-testrouter
...
Lock round TestRouter map accesses
Fixes #2153
2016-04-13 07:51:22 +01:00
Bryan Boreham
6639353568
Lock round TestRouter map accesses, and copy the set where we may block.
2016-04-13 07:49:53 +01:00
Martynas Pumputis
928a693491
Extend version summary in the weave status report
...
The extended version summary includes info about a new available
version in the case the checkpoint is enabled.
2016-04-12 22:32:18 +01:00
Matthias Radestock
f08148cabb
proper systemd override for docker in test VMs
...
now you can
- run `vagrant provision` any time
- upgrade the base image with `vagrant box update`
- upgrade docker inside the VM w/o
...etc...
...without breaking things!
2016-04-12 11:22:32 +01:00
Matthias Radestock
d1ca38e106
Merge pull request #2148 from weaveworks/issues/2146-cni-sock
...
Bind-mount the docker socket for CNI plugin
Fixes #2146
2016-04-11 16:03:14 +01:00
Bryan Boreham
15bdf6cd2d
Rework CNI test so it uses the scriptlet
2016-04-11 16:00:49 +01:00
Matthias Radestock
4037c763c2
Merge branch '1.4'
2016-04-11 15:40:32 +01:00
Matthias Radestock
d4fb739981
Merge pull request #2151 from weaveworks/issues/2140-fqdn-trailing-dot
...
Remove trailing dot from FQDN
Fixes #2140
2016-04-11 15:39:48 +01:00
Bryan Boreham
4bd6de5995
Extract out CNI setup so we can call it from a test
2016-04-11 15:28:11 +01:00
Bryan Boreham
61b0d0ba9e
Merge pull request #2149 from weaveworks/stop-test-router
...
stop ipam tests from leaking routers
2016-04-11 13:34:21 +01:00
Matthias Radestock
56bfe15eca
Merge pull request #2150 from weaveworks/issues/2139-zero-quorum
...
Don't try to form IPAM ring with a bogus quorum size
Fixes #2139 .
2016-04-11 13:31:09 +01:00
Bryan Boreham
c10d26cf02
Fix up TestBootstrap after consensus changes
2016-04-11 13:20:54 +01:00
Matthias Radestock
695babf7ba
make Allocator.Stop() idempotent and non-blocking
...
So that tests don't have to be careful about ensuring that allocators
are stopped exactly once, or rely on the magic mesh.ChannelSize for
non-blocking behaviour.
2016-04-11 12:32:01 +01:00
Bryan Boreham
ecf1887e5b
Initialize Paxos quorum to 0 until this node needs to request consensus.
...
With a 0 quorum we will participate in voting, but will not actively
try to form a ring.
2016-04-11 11:42:24 +01:00
Bryan Boreham
c6e8f54fe7
Add CNI plugin to description
2016-04-11 11:31:25 +01:00
Martynas Pumputis
a4062bd15c
Remove trailing dot from FQDN
...
As it is described in #2140 , the trailing dot might appear
when starting a container via "weave run".
2016-04-11 11:17:36 +01:00
Matthias Radestock
4d352d6eb1
stop router created by makeNetworkOfAllocators
...
so that unit tests don't leave garbage behind
2016-04-10 11:22:57 +01:00
Bryan Boreham
737b0e0504
Two different configs; ensure weave-ipam driver works when named
2016-04-08 17:59:23 +01:00
Bryan Boreham
16e5032528
Merge branch '1.4'
2016-04-08 17:48:33 +01:00
Bryan Boreham
26bd1b5787
Specify /dev/null stdin for netcat, to avoid inconsistency in Docker 1.11
2016-04-08 17:48:08 +01:00
Bryan Boreham
13f3ff15bd
Sanity-check ipam args to make diagnosis easier
2016-04-08 15:18:08 +01:00
Bryan Boreham
e88e67f02c
Bind-mount docker socket for CNI plugin scripts
2016-04-08 15:16:54 +01:00
Adam Harrison
9c7b27acf0
Merge pull request #2134 from weaveworks/issues/2063-observer-status
...
Better log and status messages for Paxos observer
2016-04-08 10:11:46 +01:00
Bryan Boreham
aad5b4dd7e
Document observer status
2016-04-07 13:16:15 +01:00
Bryan Boreham
c12a52d20e
Better log and status messages for Paxos observer
2016-04-07 12:50:52 +01:00
Bryan Boreham
0c59de40e7
Refactor Paxos status call to remove type assertion
2016-04-07 12:12:08 +01:00
Adam Harrison
a897a7711c
Merge pull request #2115 from weaveworks/issues/2114-docs-in-wordpress
...
Restructure `/site` to conform to Wordepress requirements
2016-04-07 11:22:40 +01:00
Adam Harrison
fb8167c6f1
Fix broken link
2016-04-07 11:04:35 +01:00
Adam Harrison
0482d0716f
Fix broken links
2016-04-07 10:56:56 +01:00
Adam Harrison
f183cb491f
Adjust section links
2016-04-07 10:51:47 +01:00
Adam Harrison
80770cc96e
Restructure docs
2016-04-07 10:37:57 +01:00
Adam Harrison
21d061fa44
Remove Jekyll/Travis config
2016-04-07 10:36:10 +01:00
Matthias Radestock
7d27df0907
Merge pull request #2133 from weaveworks/issues/2081-broadcast-dns-overrides
...
Immediately broadcast DNS records that "re-assert a peer's authority"
2016-04-06 14:51:22 +01:00
Bryan Boreham
768e2a31fa
Re-hide output coming from stop, since it's generally uninteresting
2016-04-06 13:54:12 +01:00
Bryan Boreham
487392b99c
Immediately broadcast DNS records that "re-assert a peer's authority"
...
and enable test to check.
2016-04-06 13:35:07 +01:00
Matthias Radestock
50af75972a
Merge pull request #2122 from weaveworks/issues/2081-gossip-to-restarted-peer
...
Update weaveworks/mesh to send gossip to restarted peer
Fixes #2085 .
2016-04-06 12:01:38 +01:00
Matthias Radestock
88518ba278
Merge pull request #2130 from weaveworks/issues/2108-reboot-docs
...
Update reboot docs
Fixes #2108 .
2016-04-06 10:30:38 +01:00
Bryan Boreham
a83359da7d
Update reboots section now we have --restart=always
2016-04-06 10:29:53 +01:00
Bryan Boreham
9c4b4ca35f
Remove recursive link
2016-04-06 10:02:57 +01:00
Matthias Radestock
2e31087818
dump state on paxos test failure
...
to help diagnosis of #2132 and similar problems
2016-04-06 08:55:49 +01:00
Matthias Radestock
11e520e212
Merge pull request #2129 from weaveworks/fix-cov-collection
...
Do not fail during teardown of test suites if $COVERAGE is not set
2016-04-05 22:17:40 +01:00
Matthias Radestock
3254870899
cosmetic: tweak proxy intro to make more sense
2016-04-05 21:38:10 +01:00
Matthias Radestock
51210045f7
=1 is better than =true
...
though they both do the same thing
2016-04-05 20:16:15 +01:00
Matthias Radestock
9e6ae4422e
tweak checkpoint description
2016-04-05 20:02:46 +01:00
Matthias Radestock
ce431dd73f
Merge pull request #2096 from weaveworks/issues/2052-http-errors
...
Report errors when weave script talks to weave component via http
Fixes #2052 .
2016-04-05 19:35:01 +01:00
Bryan Boreham
934ec2467d
Eliminate race from call_weave; call check_running only after curl fails
2016-04-05 17:54:18 +01:00
Bryan Boreham
ff4d0dae70
Keep going if an IPAM claim errors
2016-04-05 17:54:18 +01:00
Matthias Radestock
bac3d65ede
refactor: use a 'case' for greater clarity
2016-04-05 17:54:18 +01:00
Bryan Boreham
ecb180c0c5
Ignore 404 from IP address claim when IPAM is disabled
2016-04-05 17:54:18 +01:00
Bryan Boreham
f01d91459b
Make http_call send error messages to stderr and return error codes,
...
and fix up all uses of this function.
2016-04-05 17:54:18 +01:00
Matthias Radestock
3e07f03c87
Merge branch '1.4'
2016-04-05 17:26:01 +01:00
Matthias Radestock
28e0b14220
Merge pull request #2128 from weaveworks/issues/2109-skip-empty-json
...
Don't attempt to parse JSON payload if it is 0 bytes long.
Fixes #2109 .
2016-04-05 17:24:37 +01:00
Matthias Radestock
f82ef55c67
Merge branch '1.4'
2016-04-05 17:21:09 +01:00
Matthias Radestock
53ba2f0aff
rename test so it actually gets run
2016-04-05 17:07:07 +01:00
Matthias Radestock
45b36b378d
Merge branch '1.4'
2016-04-05 16:57:47 +01:00
Martynas Pumputis
41a5c6f523
Do not fail if $COVERAGE is not set
...
Also, stop weave in end_suite by using `weave stop` which does not
remove the weave container (#1939 ).
2016-04-05 16:53:01 +01:00
Matthias Radestock
4f1d87f893
Merge pull request #2126 from weaveworks/2090-delay-start
...
Delay notifying observers about 'start' events
Fixes #2090 . Partially addresses #1775 .
2016-04-05 16:48:20 +01:00
Bryan Boreham
66c92fe075
Don't attempt to parse JSON payload if it is 0 bytes long.
...
Also added a test to trigger this.
2016-04-05 16:47:11 +01:00
Bryan Boreham
ebc5dcb4bb
Delay notifying observers about 'start' events
...
...until the container has a pid, or we see the same container die.
This is to work around https://github.com/docker/docker/issues/18574
Fixes #2090 . Partially addresses #1775 .
2016-04-05 16:20:07 +01:00
Bryan Boreham
afff92c248
Merge pull request #2124 from weaveworks/idempotent-tombstone
...
make DNS tombstoning idempotent
2016-04-05 17:15:53 +02:00
Matthias Radestock
ead3518b4b
make DNS tombstoning idempotent
...
so we avoid the unnecessary gossip, and delayed convergence, that
otherwise ensues.
2016-04-04 20:34:01 +01:00
Bryan Boreham
c38dcb1d73
Adapt to logging changes in weaveworks/mesh
2016-04-04 16:01:58 +01:00
Bryan Boreham
00fe47ba62
Update weaveworks/mesh to send gossip to restarted peer
2016-04-04 15:29:36 +01:00
Bryan Boreham
b7d49cdeb7
Merge pull request #2117 from weaveworks/2113-wait-for-dp
...
wait for datapath device to be ready
2016-04-01 12:13:21 +02:00
Matthias Radestock
495a35a6a6
work around fd re-use bug in vishvananda/netlink
...
Closing a subscription can cause the associated fd to be re-used while
the subscription goroutine is also still trying to use it. Which can
have disastrous consequences.
So as a work around we don't close subscriptions. This means we leak
an fd, some buffer space, and goroutine. The latter will eventually
block in a channel send of a subscription event, since nothing is left
reading ont the other end. So at least it won't be consuming cycles.
2016-04-01 11:07:19 +01:00
Bryan Boreham
9f13d28508
Merge pull request #2116 from weaveworks/plugin-coverage
...
add coverage to plugin
2016-04-01 12:01:25 +02:00
Matthias Radestock
de4cc0ad54
eradicate last remaining wEaVeDnS misspellings
2016-03-31 06:39:41 +01:00
Anita Buehrle
7f4c527fc5
Merge pull request #2118 from weaveworks/weaveDNS-fix
...
fixes #2102
2016-03-30 17:02:04 -06:00
Anita Buehrle
8a305ee189
fixes #2102
2016-03-30 17:05:26 -06:00
Matthias Radestock
718e93bd23
add coverage to plugin
2016-03-30 17:40:32 +01:00
Matthias Radestock
254be128b0
cosmetic: consistency
2016-03-30 16:25:26 +01:00
Matthias Radestock
2c49cd1e0a
refactor: s/DOCKERPLUGIN/PLUGIN
...
since it's also a CNI plugin now
2016-03-30 15:43:55 +01:00
Matthias Radestock
ec167554c5
refactor: consistent order
2016-03-30 14:13:41 +01:00
Matthias Radestock
f24f38be9c
refactor: get rid of a superfluous fastdp member
2016-03-30 14:10:03 +01:00
Matthias Radestock
0f89f8562f
refactor(ish): parameterise dp creation by iface, not name
2016-03-30 14:07:33 +01:00
Matthias Radestock
8eb52538de
wait for datapath device
...
so that when the router container restarts after a reboot it waits for
the proxy to create the datapath device.
Fixes #2113
2016-03-30 14:01:57 +01:00
Matthias Radestock
90629bc6d3
add another cross reference.
2016-03-30 00:03:55 +01:00
Matthias Radestock
c6fea4939e
fix broken link
2016-03-30 00:02:30 +01:00
Anita Buehrle
0597162189
Merge pull request #2111 from weaveworks/app-isolation-fix
...
sorted out isolated apps files
2016-03-29 16:42:29 -06:00
Anita Buehrle
74e7d383c9
sorted out isolated apps files
2016-03-29 16:45:20 -06:00
Adam Harrison
051320e73c
Merge branch '1.4'
2016-03-29 11:45:24 +01:00
Adam Harrison
6e04ccf677
Merge pull request #2101 from weaveworks/2099-no-dns
...
make `weave dns-args` and `weave run` work with `--no-dns`
2016-03-29 11:44:12 +01:00
Adam Harrison
436dc01f52
Merge pull request #2070 from weaveworks/issues/1721-quorum-callback
...
Use current target list to compute quorum
2016-03-29 11:11:30 +01:00
Adam Harrison
a6bb02aca1
Merge pull request #2106 from weaveworks/patch-up-2103
...
Patch up #2103
2016-03-29 10:37:04 +01:00
Matthias Radestock
ec5008c702
remove "quote of quote"
2016-03-29 10:31:36 +01:00
Matthias Radestock
3453972ac4
banish ~~~bash
...
Just use indenting, which is much easier on the eye.
2016-03-29 10:30:51 +01:00
Adam Harrison
7c37cd98dd
Merge pull request #2074 from weaveworks/cleanup-plugin-logging
...
clean up plugin logging
2016-03-29 10:02:21 +01:00
Matthias Radestock
a1eb940c51
restore ellipses around weave status output fragments
2016-03-29 05:40:50 +01:00
Matthias Radestock
bd6359dcb1
Merge branch '1.4'
2016-03-29 05:38:35 +01:00
Matthias Radestock
cc75b084d8
Merge branch 'latest_release_doc_updates' into 1.4
2016-03-29 05:36:59 +01:00
Matthias Radestock
bd9314939b
correct weave status proxy output
2016-03-29 05:36:11 +01:00
Anita Buehrle
2298927331
Merge pull request #2103 from weaveworks/spellcheck
...
fixed formatting for wp and spellcheck
2016-03-28 16:27:24 -06:00
Anita Buehrle
b3b93b28df
fixed formatting for wp and spellcheck
2016-03-28 16:30:33 -06:00
Matthias Radestock
d68c1a8187
correct tools submodule reference
...
This got broken in 18f678a3c8
2016-03-28 18:09:08 +01:00
Matthias Radestock
06a525456d
remove bogus link
2016-03-28 17:59:16 +01:00
Matthias Radestock
9d19676ef1
cosmetic(ish): add reference to crypto overview from implementation
2016-03-28 17:58:43 +01:00
Matthias Radestock
540b55a35c
cosmetic(ish): add some references to crypto docs
2016-03-28 17:53:41 +01:00
Matthias Radestock
2f435cfcce
fix/add links to examples when referring to them
2016-03-28 17:44:43 +01:00
Matthias Radestock
18f678a3c8
Merge branch '1.4'
2016-03-28 17:32:22 +01:00
Matthias Radestock
cc06a2d8ab
Merge branch 'latest_release_doc_updates' into 1.4
2016-03-28 17:24:51 +01:00
Matthias Radestock
1dd2cdf7a9
fix dns load balancing example
2016-03-28 17:24:08 +01:00
Matthias Radestock
5944f069b6
cosmetic: quoting consistency
2016-03-28 16:55:19 +01:00
Matthias Radestock
aade206f22
cosmetic(ish): ungarble example
2016-03-28 16:53:07 +01:00
Matthias Radestock
22c3582699
cosmetic: tweak example links
2016-03-28 16:27:21 +01:00
Matthias Radestock
2948deb210
cosmetic: tweak link
2016-03-28 16:25:12 +01:00
Matthias Radestock
db9139a0cd
correct weave attach example
2016-03-28 16:03:20 +01:00
Matthias Radestock
bbcbb5f7b8
fix more doc typos
2016-03-28 15:56:27 +01:00
Matthias Radestock
1a872f3895
fix a bunch of typos
2016-03-28 15:45:05 +01:00
Matthias Radestock
095d7e54c3
fix typo
2016-03-28 15:24:17 +01:00
Matthias Radestock
b2a484d5f0
refactor: inline
2016-03-28 14:17:54 +01:00
Matthias Radestock
8472272afe
refactor(ish): bail early if weaveDNS is disabled
2016-03-28 14:10:31 +01:00
Matthias Radestock
648632d5ac
add a test for working with --no-dns
2016-03-28 14:07:48 +01:00
Matthias Radestock
ea3456756d
make weave dns-args and weave run work with --no-dns
...
...rather than exploding
i.e. the former returns nothing and the latter leaves naming related
container settings untouched, just like happens in the proxy and
plugin.
Fixes #2099 .
2016-03-28 14:04:07 +01:00
Matthias Radestock
0672a0858f
Merge branch '1.4'
2016-03-28 12:52:31 +01:00
Matthias Radestock
a1381fe0cf
add --no-dns to usage
...
Closes #1687 .
2016-03-28 12:49:31 +01:00
Matthias Radestock
3baf8058ed
Merge branch 'latest_release_doc_updates' into 1.4
2016-03-28 12:48:36 +01:00
Matthias Radestock
daf92d8e08
document --no-dns
...
Part of #1687 .
2016-03-28 12:46:58 +01:00
Matthias Radestock
c91b2c2907
Merge remote-tracking branch 'upstream/master'
2016-03-28 11:37:24 +01:00
Matthias Radestock
6e0aea233b
Merge branch '1.4'
2016-03-28 11:36:18 +01:00
Matthias Radestock
abd138026b
cosmetic: identation
2016-03-28 11:10:36 +01:00
kpoplin
3b9847d5d9
Update README.md
...
Updated the "About Weaveworks" section to differentiate between our overall mission and a Weave Net-specific overview; also included brief descriptions of Weave Scope and Weave Flux. Corrected product names missed in last update.
2016-03-27 07:25:14 -07:00
kpoplin
c4ec25bb14
Update README.md
...
Updated for consistent pronoun usage; corrected product and company references, following our standardized naming conventions; fixed other minor grammatical errors.
2016-03-27 06:49:28 -07:00
Matthias Radestock
0109bf0ac7
tiny refactor: make function & const name more meaningful
2016-03-26 21:23:23 +00:00
Matthias Radestock
4482d307bf
tweak ipam plugin logging
...
- log requests at info level instead of debug level
- log errors at error level instead of debug level
2016-03-24 18:52:55 +00:00
Matthias Radestock
5aa2a7a14c
refactor(ish) of ipam plugin logging
...
prefix all log entries with "[ipam]"
Also eliminate a dot import.
2016-03-24 18:52:55 +00:00
Matthias Radestock
984cad5b58
clean up network plugin logging
...
Consistency, consistency, consistency:
- prefix all log messages with "[net]" - important since the same
process acts as both a network and ipam driver
- include the API function name in all log messages
- log request and response details at debug level
- log request summary at info level
- log ContainerStarted as a pseudo API function, but only at debug
level (since it can be quite high volume)
And eliminate some dot imports.
2016-03-24 18:52:44 +00:00
Matthias Radestock
de8c1d262f
don't error log in 'createAndAttach'
...
It is a library function, so logging of any errors should be left to
the caller.
We also get rid of a logged warning which contained the complete data
structure returned by netlink.LinkByName.
So this function now does no logging at all. Which is how it should be.
2016-03-24 18:52:07 +00:00
Matthias Radestock
2d964bdc95
don't log in cni; just return errors
...
CNI is invoked from the command line; so there is no point in getting
clever about logging.
2016-03-24 18:51:34 +00:00
Matthias Radestock
91044ac0fa
cosmetic: consistency
2016-03-24 18:51:08 +00:00
Matthias Radestock
98aeb674c4
cosmetic: more plugin error message/logging tweaks
2016-03-24 18:41:47 +00:00
Matthias Radestock
ea11c5eedc
cosmetic: some error logging message tweaks
2016-03-24 18:16:57 +00:00
Matthias Radestock
c146ee142d
Merge branch '1.4'
2016-03-24 17:26:00 +00:00
Bryan Boreham
88d115aab1
Merge pull request #2098 from weaveworks/2097-fail-on-attach-errors
...
fail plugin operation on bridge attachment error
2016-03-24 17:16:55 +00:00
Matthias Radestock
fce954192c
fail plugin operation on bridge attachment error
...
Fixes #2097 .
2016-03-24 17:01:15 +00:00
Bryan Boreham
aab86c38b7
Merge pull request #2093 from weaveworks/tools
...
Update tools to get misspell integration. Aho-Corasick FTW!
2016-03-24 14:09:45 +00:00
Bryan Boreham
adc038d8d1
Merge pull request #2095 from berlic/berlic-plugin-docker-args
...
Support custom docker args for weave-plugin
2016-03-24 12:53:10 +00:00
Bryan Boreham
cfa9b4f638
Assert that paxos quorum is set
2016-03-24 12:06:59 +00:00
Bryan Boreham
e6fd970920
Exclude retry-never peers from quorum
...
Note: includes update to latest version of weaveworks/mesh library.
2016-03-24 12:06:59 +00:00
Bryan Boreham
ad0a5477f9
Reverse order of 'start' and 'connect' in test so we don't hang waiting for consensus
2016-03-24 12:06:59 +00:00
Bryan Boreham
2b617633ae
Compute quorum based on the dynamic number of target peers
2016-03-24 12:06:59 +00:00
Adam Harrison
7776e48a62
Merge branch '1.4'
2016-03-23 18:00:38 +00:00
Adam Harrison
6c0075ab82
Add release v1.4.6
2016-03-23 17:37:21 +00:00
Matthias Radestock
48534b1e30
unbreak tests
...
Broken in an attempt to help with #2090 .
2016-03-23 17:22:40 +00:00
Matthias Radestock
8b6c5bdae4
unbreak things
2016-03-23 17:05:19 +00:00
Matthias Radestock
b8abb22833
Merge branch '1.4'
2016-03-23 16:39:17 +00:00
Matthias Radestock
ae0a4fef50
Merge pull request #2092 from weaveworks/issues/2083-error-not-panic
...
Change invariant fail on Merge() from panic to error
Fixes #2083 .
2016-03-23 16:38:52 +00:00
Matthias Radestock
4dcec8265d
Merge branch '1.4'
...
(but really replace all the changes, which were in 'mesh', with
vendoring the latest mesh)
2016-03-23 16:30:28 +00:00
Matthias Radestock
8360024e06
Merge pull request #2088 from weaveworks/issues/2087-leave-direct-targets
...
Don't delete targets that seem invalid if they are 'direct' targets
Fixes #2087 .
2016-03-23 16:22:08 +00:00
Tom Wilkie
7a7867ae16
Fix spelling mistakes.
2016-03-23 16:09:43 +00:00
Tom Wilkie
43f8d073db
Update tools for misspell.
2016-03-23 16:05:13 +00:00
Bryan Boreham
2e4d56efd6
Suspend connecting to targets that seem invalid, if they are 'direct' targets.
...
Introduce TargetSuspended state to reflect this.
2016-03-23 15:36:55 +00:00
Bryan Boreham
6bc199a8bc
Change invariant fail on Merge() from panic to error
2016-03-23 15:26:26 +00:00
Konstantin Suvorov
ad42f27e03
Support custom docker args for weave-plugin
...
WEAVEPLUGIN_DOCKER_ARGS environment variable is used to pass custom args when creating plugin container
2016-03-23 16:20:06 +03:00
Matthias Radestock
c75cadf007
more correct sudo scoping
...
we want to know whether systemctl can be run when sudoing.
This shouldn't fix #2090 , only give is a different error.
2016-03-23 13:00:04 +00:00
Matthias Radestock
b080224072
Merge branch '1.4'
2016-03-22 16:28:53 +00:00
Matthias Radestock
537868008f
make linter happy
2016-03-22 16:28:25 +00:00
Matthias Radestock
63a9f879fb
Merge branch '1.4'
2016-03-22 14:13:24 +00:00
Matthias Radestock
1664fce9d1
Merge pull request #2081 from weaveworks/issues/2023-override-stale-dns
...
Override stale dns entries received via gossip
Fixes #1867 and #2023 .
2016-03-22 13:47:17 +00:00
Bryan Boreham
c2cf825cdf
Smoke test for stale DNS entries
2016-03-22 12:57:07 +00:00
Bryan Boreham
38a79b7f59
Pick entry with newer tombstone to merge
2016-03-22 12:57:07 +00:00
Bryan Boreham
010766fe9e
Check entries claiming to originate from us against our current data, and override if necessary
2016-03-22 12:57:07 +00:00
Adam Harrison
c09dfe6b5a
Merge pull request #2078 from weaveworks/reify-ipam-config
...
Reify ipam config
2016-03-21 16:12:11 +00:00
Matthias Radestock
d177bb8a47
Merge remote-tracking branch 'upstream/master'
2016-03-21 16:00:19 +00:00
Adam Harrison
a26dd1b1d7
Merge pull request #2072 from weaveworks/2071-ci-coverage-underreporting
...
collect coverage data from ci nodes before teardown
2016-03-21 15:58:03 +00:00
Matthias Radestock
34de08d649
Merge branch '1.4'
2016-03-21 15:56:56 +00:00
Adam Harrison
74d0b3b51e
Merge pull request #2075 from weaveworks/2044-multi-rmpeer
...
make `weave rmpeer` accept a list of peers
2016-03-21 15:55:22 +00:00
Matthias Radestock
6b33f4215b
Merge branch 'latest_release_doc_updates' into 1.4
2016-03-21 15:53:18 +00:00
Matthias Radestock
cc43782d87
Merge pull request #2080 from weaveworks/issues/2061-correct-weave-status
...
Correct IPAM state docs
Fixes #2061 .
2016-03-21 15:49:03 +00:00
Adam Harrison
c2eb900dd3
Correct IPAM state docs
2016-03-21 15:33:37 +00:00
Matthias Radestock
915a72ad18
add a check for "--ipalloc-default-subnet requires --ipalloc-range"
2016-03-21 14:00:51 +00:00
Matthias Radestock
320a8ad15b
extract IPAM config
...
and fix error handling - the "do we have an --ipalloc-range?" check
was not performed in all required cases
2016-03-21 12:03:51 +00:00
Matthias Radestock
cf08b8b1aa
cosmetic: tweak --observer usage text
2016-03-21 12:02:22 +00:00
Bryan Boreham
001322751f
Don't hold Nameserver lock over call out via isKnownPeer
2016-03-21 11:52:13 +00:00
Matthias Radestock
0b3dd35624
cosmetic
2016-03-21 11:08:17 +00:00
Adam Harrison
cdf3e4b98e
Merge pull request #2073 from weaveworks/rmpeer-test
...
add 'rmpeer' test
2016-03-21 11:05:53 +00:00
Adam Harrison
0d10479e8a
Add --observer to weave script help
2016-03-21 11:01:55 +00:00
Matthias Radestock
357d0e918a
Merge pull request #2000 from weaveworks/issues/1998-specify-ipam-seed
...
Allow specification of initial IPAM ring via --ipam-seed
Fixes #1998 .
2016-03-21 10:52:40 +00:00
Adam Harrison
3123418022
Merge pull request #2030 from weaveworks/issues/1992-cni-plugin
...
Implement CNI plugin
2016-03-21 10:51:19 +00:00
Adam Harrison
dcc2d16408
Update mesh dependency for peer name shorthand
2016-03-21 10:27:32 +00:00
Adam Harrison
e9081c6607
Allow specification of initial IPAM ring via --ipam-seed
2016-03-21 09:49:54 +00:00
Matthias Radestock
439e57ca56
make weave rmpeer accept a list of peers
...
This isn't as efficient as it could be. In particular we end up
broadcasting the ipam state for every peer listed. To avoid that we'd
have to change the HTTP API, and would no longer be able to use
'DELETE'. That is just not worth it.
Closes #2044 .
2016-03-20 15:53:45 +00:00
Matthias Radestock
18ddf50b4c
cosmetic
2016-03-20 15:46:05 +00:00
Matthias Radestock
6ebac90cb0
refactor: eliminate dot imports in main packages
2016-03-20 14:34:27 +00:00
Matthias Radestock
5e0231ec5e
refactor(ish): unify logging in docker client wrapper
...
and get rid of some debug logging.
and eliminate a dot import in the process.
2016-03-20 10:40:26 +00:00
Matthias Radestock
c25bfafcb2
refactor: make proxy log via a package-local var
...
which gets rid of a bunch of (dot) imports.
2016-03-20 08:31:23 +00:00
Matthias Radestock
6e4f025d9c
refactor: reduce duplication in nameserver logging
...
and remove a dot import in the process
2016-03-20 08:19:15 +00:00
Matthias Radestock
07ea8a2613
add 'rmpeer' test
2016-03-20 07:16:01 +00:00
Matthias Radestock
f9a0ba82a0
collect coverage data from ci nodes before teardown
...
Fixes #2071 .
2016-03-19 22:43:17 +00:00
Matthias Radestock
4c0fe7b006
take advantage of restart=always in tests
...
This should have been done as part of #2029 .
2016-03-19 17:43:49 +00:00
Matthias Radestock
cddef7cae5
Merge remote-tracking branch 'upstream/master'
2016-03-19 17:36:38 +00:00
Matthias Radestock
197f4165a3
cosmetic: move IPAM tests into 3xx range
2016-03-19 17:35:18 +00:00
Bryan Boreham
4a2affabb5
Clean up so test will run again on same host
2016-03-19 16:35:45 +00:00
Matthias Radestock
211e527d3f
Merge pull request #2069 from weaveworks/issues/2047-go-via-actor
...
Avoid data race in TestSpaceRequest
Fixes #2047 .
2016-03-19 16:09:42 +00:00
Bryan Boreham
09a6c2eda0
Get the owned ranges for test purposes via the actor loop, so we don't set off the race detector
2016-03-19 15:29:34 +00:00
Bryan Boreham
71ec252298
Merge pull request #2066 from weaveworks/2058-idempotent-rmpeer
...
make 'rmpeer' report on size of transferred range, and not fail
2016-03-19 15:10:58 +00:00
Matthias Radestock
9f10b21c9c
use Space.NumFreeAddresses for calculating transferred ip count
...
...rather than Space.NumFreeAddressesInRange; we don't care about the
universe.
Alternatively we could make Space.AddRanges return the count. But
AddRanges doesn't know whether the ranges overlap with existing free
space - that is only guaranteed by the context - so would have to do
much the same before/after calculation.
Another alternative would be to add the range sizes in
AdminTakeoverRanges. But that is more code and less clear.
2016-03-19 14:41:36 +00:00
Matthias Radestock
62d823850c
make rmpeer report on size of transferred space, and not fail
...
Closes #2058 .
2016-03-19 14:40:26 +00:00
Matthias Radestock
c48eefa82d
refactor(ish): extract allocator logging commonality
...
and add warnf
2016-03-19 14:32:54 +00:00
Matthias Radestock
65eff683dd
Merge branch '1.4'
2016-03-19 14:30:38 +00:00
Bryan Boreham
b1ec2b788a
Bump template name so it will fetch latest Docker
2016-03-19 14:12:17 +00:00
Matthias Radestock
f42e275884
broadcast ipam ring update after rmpeer
...
So that other peers notice the change more promptly.
Fixes #2068 .
2016-03-19 13:57:20 +00:00
Matthias Radestock
8ce6d3863e
Merge pull request #2067 from weaveworks/address-count
...
Add address.Count type
2016-03-19 12:04:02 +00:00
Bryan Boreham
f11314ed3e
Introduce 'Count' type to avoid abusing 'Offset'
2016-03-19 11:47:34 +00:00
Bryan Boreham
e080f00354
Review feedback
2016-03-18 19:40:16 +00:00
Bryan Boreham
b00f0aee65
Check errors on test for root namespace
2016-03-18 19:39:52 +00:00
Matthias Radestock
7b6364696c
Merge branch '1.4'
2016-03-18 19:29:59 +00:00
Matthias Radestock
5dfd104728
reduce docker event subscription retry max interval
2016-03-18 19:29:21 +00:00
Bryan Boreham
88cb07203a
Improve name of cni_volume_options and include them when running the CNI plugin inside a container
2016-03-18 19:02:28 +00:00
Matthias Radestock
bc7539c4ad
cosmetic: consistency
2016-03-18 11:56:10 +00:00
Matthias Radestock
0474227d6e
Merge pull request #2062 from weaveworks/issues/2059-weave-ps-ignore-stopped
...
Protect container-addrs util_op against stopped containers
Fixes #2059 .
2016-03-18 11:13:14 +00:00
Adam Harrison
04bbb14f59
Propagate container-addrs util_op failure
2016-03-18 10:56:10 +00:00
Adam Harrison
f9f6e8ed26
Protect container-addrs against stopped containers
2016-03-18 10:46:30 +00:00
Matthias Radestock
9c2e9bab14
cosmetic(ish) refactor
2016-03-18 02:42:53 +00:00
Matthias Radestock
4539bde5f5
simplify weave consense explanation
2016-03-18 02:03:34 +00:00
Matthias Radestock
44db686ef3
don't mention the election
...
Fixes #2060 .
2016-03-18 01:56:52 +00:00
Matthias Radestock
221ef4adca
make a few more shell funs safe
...
...for calling in a context w/o 'set -e', even though right now they
always are.
Follow-on of #2054 .
2016-03-17 21:32:08 +00:00
Matthias Radestock
c1d4e34ed0
Merge pull request #2055 from weaveworks/cleanup_attach_router
...
Remove unnecessary netns change in attach_router
2016-03-17 20:50:03 +00:00
Bryan Boreham
4903c2b23c
Remove unnecessary netns switch for router in attach_router,
...
and improve the name of the function which sends existing
container data into the router
2016-03-17 20:32:41 +00:00
Matthias Radestock
cd9b7bfcda
Merge pull request #2054 from weaveworks/issues/2053-errexit
...
Fix missed errors in weave script
Fixes #2053 .
2016-03-17 20:09:37 +00:00
Bryan Boreham
c8ca295cda
CNI plugin smoke test
2016-03-17 18:20:29 +00:00
Bryan Boreham
4e09889cab
Make container_pid a common test function
2016-03-17 18:20:29 +00:00
Bryan Boreham
a66543f98e
Use link ParentIndex where available
2016-03-17 18:20:18 +00:00
Bryan Boreham
0705319f25
Return failure from various functions when sub-operation fails.
...
We cannot rely on `set -e` to fail the whole script in contexts
where functions are called inside conditionals.
2016-03-17 15:02:40 +00:00
Bryan Boreham
b153e6a0d2
Simplify, after review feedback
2016-03-17 14:29:34 +00:00
Bryan Boreham
ef892fd4ed
Docs for CNI plugins
2016-03-17 14:29:34 +00:00
Bryan Boreham
024eb46c7d
CNI plugin implemented as script that docker runs plugin container,
...
installed via `weave setup`
2016-03-17 14:29:33 +00:00
Bryan Boreham
ecdd7aa7ce
Configure arp cache on new interface
2016-03-17 14:29:33 +00:00
Adam Harrison
b09b556796
Utility function to configure ARP cache timers
2016-03-17 14:29:25 +00:00
Bryan Boreham
2d6a916b2d
Find weave veths by looking at what is connected to the bridge, not by name
...
and don't even look at containers running in the root namespace
2016-03-17 12:41:37 +00:00
Bryan Boreham
011fb55e5f
Refactor FindNetDevs so we can get the link, and re-use parts of the function
2016-03-17 12:41:37 +00:00
Bryan Boreham
ac4e87418a
Set a default route via bridge if config doesn't specify any
2016-03-17 12:41:14 +00:00
Bryan Boreham
42ff61f97c
CNI net plugin
2016-03-17 12:41:14 +00:00
Bryan Boreham
08059412b5
Refactor so we can call parts individually
2016-03-17 12:41:14 +00:00
Bryan Boreham
f9615c34dc
CNI IPAM plugin
2016-03-17 12:41:14 +00:00
Bryan Boreham
703b8dfd11
Expose 'ipam' type so we can refer to it elsewhere
2016-03-17 12:08:37 +00:00
Bryan Boreham
b86e6412fa
Don't try to parse return from DELETE address
2016-03-17 12:06:34 +00:00
Matthias Radestock
aa1c1cc9be
ignore arping failures
...
This is a largely cosmetic change since arping really shouldn't fail.
2016-03-16 20:32:42 +00:00
Adam Harrison
4b5fb2785e
Merge pull request #2051 from weaveworks/issues/2046-static-ip
...
Fix plugin accepting --ip address
2016-03-16 15:46:49 +00:00
Bryan Boreham
4eaeb0f30c
Merge branch '1.4'
2016-03-16 14:52:59 +00:00
Bryan Boreham
9c096526b8
Merge pull request #2049 from weaveworks/issues/2016-retry-docker-event-subscription
...
Retry docker event subscription
2016-03-16 14:38:27 +00:00
Bryan Boreham
eee77d49d1
Claim IP takes CIDR not IP
2016-03-16 14:22:39 +00:00
Bryan Boreham
d2d1d2b43a
Test for docker network subnets and IPs
2016-03-16 13:47:30 +00:00
Adam Harrison
4874605add
Merge pull request #2050 from weaveworks/bump-ci-docker
...
Bump template name so it will fetch latest Docker
2016-03-16 13:46:49 +00:00
Adam Harrison
922f465ecb
Reset retry interval if we spent long enough processing events
2016-03-16 13:41:18 +00:00
Bryan Boreham
c80bf7e996
Bump template name so it will fetch latest Docker
2016-03-16 13:14:40 +00:00
Bryan Boreham
dd505a8e17
Merge pull request #2038 from weaveworks/wp-markdown-plugin-fixes
...
Doc fixes required by updated WP markdown plugin
2016-03-16 12:46:50 +00:00
Adam Harrison
08e9db900a
Retry docker event subscription
2016-03-16 09:23:32 +00:00
Matthias Radestock
86bfc91ac9
refactor: clearer IPAM config
2016-03-15 10:29:32 +00:00
Adam Harrison
2eeb754454
refactor: Introduce IPAM config object
2016-03-14 17:41:20 +00:00
Matthias Radestock
2a10182cf6
Merge pull request #2029 from weaveworks/router-and-proxy-always-restart
...
Router and proxy run with --restart=always
2016-03-14 17:19:47 +00:00
Adam Harrison
115162fbfd
Merge pull request #2037 from weaveworks/2021-fallback-to-hypervisor-uuid
...
fall back to hypervisor uuid for mac derivation
2016-03-14 16:56:00 +00:00
Adam Harrison
82adc85562
Router and proxy run with --restart=always
2016-03-14 16:31:06 +00:00
Matthias Radestock
05a7024b88
bump go-checkpoint version
2016-03-11 11:00:44 +00:00
Adam Harrison
62e8028591
Fixup link URLs
2016-03-11 10:52:58 +00:00
Adam Harrison
2bc5fd30c0
Make image paths absolute with respect to repo
2016-03-11 10:35:47 +00:00
Bryan Boreham
35671135bd
Return errors that happen inside WithNetNS
2016-03-10 15:18:16 +00:00
Bryan Boreham
a57335738d
Don't do unnecessary clock skew check in IPAM
2016-03-10 11:41:47 +00:00
Matthias Radestock
459bb08828
fall back to hypervisor uuid for mac derivation
...
since the system uuid is not available on paravirtual EC2 VMs, and
possibly other hypervisors.
Fixes #2021
2016-03-09 22:35:44 +00:00
Bryan Boreham
3ad9d8e785
Don't fail start if image is missing
2016-03-09 17:10:20 +00:00
Matthias Radestock
52552b59fb
Merge pull request #2024 from weaveworks/abstract-api-log
...
Abstract out logging function from weave api package
2016-03-09 15:45:00 +00:00
Matthias Radestock
f8e2af32cd
refactor: extract common docker run options
2016-03-08 23:10:19 +00:00
Anita Buehrle
66cd178308
Merge pull request #2019 from weaveworks/1-5-edit3
...
cleaned up product names
2016-03-08 12:29:18 -06:00
Anita Buehrle
be2dfda78e
edits from awh
2016-03-08 12:14:27 -06:00
Bryan Boreham
0009b05635
Improve naming of 'release' function in IPAM API
2016-03-07 16:24:53 +00:00
Bryan Boreham
f2e38ae6c5
Abstract out logging function from weave api package to reduce dependencies
2016-03-07 15:37:51 +00:00
Bryan Boreham
b83f4a00ed
Merge pull request #1997 from weaveworks/issues/1994-weave-consense
...
Implement `weave consense`
2016-03-03 15:26:02 -08:00
Anita Buehrle
e2c8dba981
cleaned up product names
2016-03-03 16:12:12 -06:00
Adam Harrison
6584df274e
Implement weave consense
2016-03-03 18:52:09 +00:00
Bryan Boreham
7c65b6e3bb
Merge pull request #1990 from weaveworks/issues/1743-restricted-electorate
...
Support non-electing peers via --observer
2016-03-03 10:46:58 -08:00
Adam Harrison
268d355cae
Observer smoke tests
2016-03-03 17:48:50 +00:00
Adam Harrison
b84ef98de8
Support non-electing peers via --observer
2016-03-03 17:48:50 +00:00
Adam Harrison
29674b7780
Merge pull request #2012 from weaveworks/issues/1655-store-all-addresses
...
Store all addresses+subnets in IPAM
2016-03-03 17:06:02 +00:00
Martynas Pumputis
9cfc104fc7
Add TestSpaceRequest test for allocator
...
Checks whether a donating peer does not leave one ip address
behind a block it donates (#2009 ).
2016-03-03 08:36:14 -08:00
Bryan Boreham
824329d4c9
Fix up unit tests to look at CIDRs instead of addresses.
2016-03-02 17:21:52 -08:00
Bryan Boreham
604309fb53
Parse CIDR strings without separating into subnet and address
2016-03-02 17:21:52 -08:00
Bryan Boreham
73f1a04d5f
Deal in subnets, not ranges, when requesting address allocation
2016-03-02 17:21:51 -08:00
Bryan Boreham
b76e2a87cf
Store address+subnet prefix for 'owned' addresses
2016-03-02 17:21:24 -08:00
Bryan Boreham
b6eec08247
Return all applicable results from Lookup
...
and stop erroring on Lookup not found; just return a blank result
2016-03-02 17:01:12 -08:00
Bryan Boreham
03563e847e
Remember addresses outside of the allocation range
2016-03-02 17:01:12 -08:00
Bryan Boreham
4c159a9af6
Merge pull request #1973 from weaveworks/issues/678-persist-owned2
...
Persist 'owned' addresses in IPAM
2016-03-02 16:58:23 -08:00
Bryan Boreham
bc61838aaa
Merge pull request #2015 from weaveworks/1-5-edits2
...
Reorganization of docs for WordPress
2016-03-02 16:24:14 -08:00
Bryan Boreham
8c9937b0be
Fix up some wording and links
2016-03-02 15:39:06 -08:00
Anita Buehrle
bdc9eae000
reorganization-edit docs for WP
2016-03-02 13:54:05 -06:00
Bryan Boreham
95cbc8940e
Sync 'owned' data with existing containers at startup
2016-03-02 11:35:24 -08:00
Bryan Boreham
f29716387f
Persist the 'owned' address set
2016-03-02 11:35:24 -08:00
Adam Harrison
30b9d33276
Adjust tests to accomodate docker/docker#14012
2016-03-02 11:59:10 +00:00
Bryan Boreham
532a6b69d9
Merge pull request #1672 from weaveworks/vagrant-pin-docker
...
Pin docker version in vagrant VM
2016-03-01 14:15:05 -08:00
Bryan Boreham
f2ef5e880a
Merge pull request #1982 from weaveworks/issues/578-pid-equals-host
...
Use --pid=host
2016-03-01 12:41:52 -08:00
Bryan Boreham
dd74bb1774
Simplify by using GetFromPid
2016-03-01 12:12:46 -08:00
Adam Harrison
adf56d316d
Remove obsolete alternative procfs support
2016-03-01 20:10:47 +00:00
Adam Harrison
cb9af20a2e
Replace PROCFS with --pid=host
2016-03-01 20:10:47 +00:00
Bryan Boreham
cb01e3f87b
Typo
2016-02-29 15:08:55 -08:00
Bryan Boreham
590c1dde1d
Merge branch '1.4'
2016-02-29 15:04:12 -08:00
Bryan Boreham
be3f88656b
Add release v1.4.5
2016-02-29 22:28:58 +00:00
Bryan Boreham
246f394731
Merge branch '1.4'
2016-02-29 14:07:02 -08:00
David Wragg
27367ab292
Process DiscardingFlowOp correctly in FastDatapath send()
...
The nil FlowOp check in collectFlowOps was not addressed with the
introduction of DiscardingFlowOp. This meant that DiscardingFlowOps
produced in the router core would get handled by fastdp as if they were
foreign FlowOps, preventing flow creation and so leading to unwarranted
ODP misses.
To fix this, collectFlowOps cannot simply eliminate FlowOps for which
Discards() is true, because it's true for odpFlowKeyFlowOp. So the
Discards() case has to be handled in FastDatapath send().
2016-02-29 13:27:15 -08:00
Matthias Radestock
f5d8fc5de2
move weavedns design from site to docs
2016-02-29 19:18:08 +00:00
Matthias Radestock
7cdf273c88
Merge branch '1.4'
2016-02-29 19:13:23 +00:00
Matthias Radestock
20620f0002
Merge branch 'latest_release_doc_updates' into 1.4
2016-02-29 19:13:00 +00:00
Matthias Radestock
8d79e33ba1
remove stale ToC entry
...
This was missed in 8b061fd55
2016-02-29 19:12:00 +00:00
Bryan Boreham
7453c7a5dd
Merge branch '1.4'
2016-02-29 08:22:22 -08:00
Bryan Boreham
ce4857f5dc
Merge pull request #2001 from weaveworks/issues/1996-try-all-pending-allocations
...
Try all pending allocations - LGTM. Fixes #1996
2016-02-29 08:20:49 -08:00
Adam Harrison
71af1f3120
Merge pull request #1972 from weaveworks/persist-peers
...
Persist set of peers to connect to
2016-02-29 15:54:54 +00:00
Adam Harrison
e65a08471f
Merge pull request #1967 from weaveworks/issues/1859-start-existing
...
Start existing container, if its image and arguments match
2016-02-29 15:33:30 +00:00
Alfonso Acosta
b96330d529
Pin docker version in vagrant VM
...
Otherwise it will always install the latest docker version, which will be
undesirable when new major releases are done, until they are well tested.
For instance, docker after automatically updating to 1.9, it was killing my VM
when spawning a kubernetes cluster, due to a high CPU consumption, probably due
to https://github.com/docker/docker/issues/17720
2016-02-29 14:31:06 +00:00
Bryan Boreham
f17d50cc50
Check the exact version of the image, not the base
2016-02-26 23:44:04 +00:00
Bryan Boreham
436f8ef7c8
Compare the environment so we can detect a change in password
2016-02-26 23:41:57 +00:00
Bryan Boreham
65f435f042
Smoke-test for restarts
2016-02-26 23:41:57 +00:00
Bryan Boreham
561c8d012c
Treat a restarting container like a running one, for idempotency
2016-02-26 23:41:46 +00:00
Bryan Boreham
bb4c0f5247
Start existing container, if its image and arguments match
2016-02-26 23:40:02 +00:00
Adam Harrison
31a964ba9b
Merge pull request #1954 from weaveworks/version-check
...
Periodically check for up to date versions of weave.
2016-02-26 17:25:24 +00:00
Tom Wilkie
b717399364
Update go-checkpoint
2016-02-26 16:47:32 +00:00
Tom Wilkie
b79bb32782
Review feedback
2016-02-26 15:37:00 +00:00
Tom Wilkie
6ff7419981
Review feedback
2016-02-26 15:35:12 +00:00
Tom Wilkie
b228bbb9fb
Periocially check for up to date versions of weave.
2016-02-26 15:35:12 +00:00
Matthias Radestock
752baa4bd6
remove unnecessary WEAVE_CIDR=none
...
since the router is now always running with --net=host
2016-02-26 13:58:06 +00:00
Matthias Radestock
6cbde89eeb
refactor: consistency in specification of common docker run options
2016-02-26 13:57:37 +00:00
Adam Harrison
bceabe32a2
Try all pending allocations
...
We can have outstanding allocations for different ranges owned by
different peers, so we should not short circuit after the first space
request.
2016-02-25 14:56:33 +00:00
Adam Harrison
c5361801c9
Fix typo in weaver CLI help
2016-02-25 12:02:28 +00:00
Matthias Radestock
3283bc89fc
Merge branch '1.4'
2016-02-23 13:56:56 +00:00
Matthias Radestock
26519333c0
cosmetic: correct comment
2016-02-23 13:36:56 +00:00
Matthias Radestock
639cde0f67
refactor: inline
2016-02-23 13:34:14 +00:00
Matthias Radestock
6a9f9f66dc
don't check for 'Restarting' when attaching on startup
...
It is overkill.
2016-02-23 13:20:22 +00:00
Adam Harrison
639e0e82c9
Merge pull request #1989 from weaveworks/1977-restarting-not-running
...
treat 'restarting' as 'not running'
2016-02-23 10:49:31 +00:00
Adam Harrison
6f65512471
Merge branch '1.4'
2016-02-23 10:47:08 +00:00
Adam Harrison
4b0a6e1433
Merge pull request #1983 from weaveworks/1929-auto-detect-odp-on-relaunch
...
don't complain on relaunch when ODP is not supported
2016-02-23 10:46:36 +00:00
Matthias Radestock
d5b82cac45
Merge branch '1.4'
2016-02-23 10:17:03 +00:00
Matthias Radestock
cb6db91b09
Merge branch 'latest_release_doc_updates' into 1.4
2016-02-23 10:16:08 +00:00
Matthias Radestock
6a02e2dc17
explain TCP/UDP connections, heartbeats, back-off
...
Fixes #1969
2016-02-23 09:54:15 +00:00
Ilya Dmitrichenko
f4ad97b0c9
Merge branch '1.4'
2016-02-22 14:16:37 +00:00
Ilya Dmitrichenko
b377207faf
Merge branch 'latest_release_doc_updates' into 1.4
2016-02-22 14:16:02 +00:00
Ilya Dmitrichenko
24ebb7cc7c
Add missing dependency for latest gsutil
2016-02-22 14:11:36 +00:00
Ilya Dmitrichenko
b5518db03c
Add missing argument to tar
2016-02-22 14:02:39 +00:00
Ilya Dmitrichenko
2aa4e6a83a
Use "official" gsutil installation instructions
2016-02-22 13:58:42 +00:00
Ilya Dmitrichenko
7c655cc3ba
Fix false-positive docs uploads
2016-02-22 13:56:49 +00:00
Matthias Radestock
d7a1bdd7a8
Merge branch '1.4'
2016-02-22 13:55:45 +00:00
Matthias Radestock
75cda01167
Merge branch 'latest_release_doc_updates' into 1.4
2016-02-22 13:55:18 +00:00
Matthias Radestock
4f0f3cf98d
warn against using the plugin in combination with --net=weave
...
and expand the basic proxy usage docs slightly.
2016-02-22 13:53:39 +00:00
Matthias Radestock
d9637ce620
Merge branch '1.4'
2016-02-22 13:38:08 +00:00
Matthias Radestock
e014140134
Merge branch 'latest_release_doc_updates' into 1.4
2016-02-22 13:36:33 +00:00
Matthias Radestock
c8ae128e59
for Travis, this no longer is a go project
...
Travis insists that one picks a project language. There is no go left
in the steps executed by travis. Instead we have Python, Ruby and
shell. Let's pick the first...
Picking Python makes travis unhappy with "Can not perform a '--user'
install. User site-packages are not visible in this
virtualenv". Dropping the '--user' flag fixes that.
(cherry picked from commit 1d8d098450 )
2016-02-22 13:29:33 +00:00
Matthias Radestock
12d848162d
shrink Travis usage
...
There is no point running builds, tests, lints on Travis, since we
already do that on Circle.
The only thing we aren't doing (and can't do) on Circle is doc
publishing, so now Travis does just that.
(cherry picked from commit 1038cbd1a3 )
2016-02-22 13:29:33 +00:00
Matthias Radestock
b12096bd6c
tweak
2016-02-22 13:23:29 +00:00
Matthias Radestock
644485d4ae
Merge branch '1.4'
2016-02-22 13:13:48 +00:00
Matthias Radestock
1430982166
Merge branch 'latest_release_doc_updates' into 1.4
2016-02-22 13:13:13 +00:00
Matthias Radestock
2a83aad1d6
warn against using plugin and proxy simultaneously
...
and give a complete example.
Partially addresses #1988 .
2016-02-22 13:11:02 +00:00
Matthias Radestock
4a7157959a
don't attempt to attach 'restarting' containers
...
this is an optimisation... there is no point attempting to attach a
'restarting' container - it will fail.
When the container *actually* restarts we'll get a 'Start' event, and
attach at that point.
Also, there is no point checking for 'Paused' since 'Paused' ->
'Running'.
2016-02-20 11:00:04 +00:00
Matthias Radestock
e52abafc48
treat restarting containers as "not running"
...
thus preventing stale DNS & IPAM entries.
Fixes #1977
2016-02-20 10:59:47 +00:00
Bryan Boreham
b064bcce49
Log when command-line peer list overridden by persisted list
...
Reworked interface to router so we split setting up the initial list
from beginning to make connections - we shouldn't do that until
after router.Start().
2016-02-19 14:29:33 +00:00
Matthias Radestock
0f9d9c77a3
remove cruft
2016-02-19 00:30:22 +00:00
Matthias Radestock
33c81add8d
update dependency to fix build breakage
2016-02-19 00:27:45 +00:00
Matthias Radestock
ee531b8023
don't complain on relaunch when ODP is not supported
...
...and WEAVE_NO_FASTDP isn't set.
Fixes #1929 .
2016-02-18 22:00:08 +00:00
Matthias Radestock
497a104db7
Merge branch '1.4'
2016-02-18 21:59:42 +00:00
Matthias Radestock
5e761a62b0
Merge pull request #1985 from weaveworks/issues/1984-discovery
...
Add two functions required by ipamapi "contract"
Fixes #1984
2016-02-18 21:55:53 +00:00
Bryan Boreham
b442567406
Add two functions required by ipamapi "contract" but not actually used
2016-02-18 15:29:10 +00:00
Adam Harrison
5dd8584fb6
Fix veth cleanup on Ubuntu 15.10
...
Cope with the @ characters that have started appearing in veth names as
of Ubuntu 15.10.
2016-02-18 12:11:48 +00:00
Matthias Radestock
4bd18737b7
fix typo
2016-02-18 11:39:54 +00:00
Bryan Boreham
ba8926a6ea
Persist set of peers to connect to
2016-02-17 18:12:16 +00:00
Matthias Radestock
09cd9e091a
Merge branch '1.4'
2016-02-16 14:09:06 +00:00
Matthias Radestock
17d53af2a2
improve logging of dns entry creation
...
- log inside the lock, so we get proper serialisation
- include the container name, so we can identify the specific entry
2016-02-16 14:04:34 +00:00
Adam Harrison
2d4d3577ba
Merge pull request #1971 from weaveworks/issues/678-persist-ipam2
...
Persist IPAM ring
2016-02-15 10:15:53 +00:00
Bryan Boreham
546f9592f9
Hard-fail on persistence errors, otherwise the network can get confused on a restart.
...
Create `Allocator.fatalf()`, for consistency
2016-02-12 18:12:26 +00:00
Bryan Boreham
06f3793f05
Remove persisted IPAM ring data on peerName change
2016-02-12 18:12:26 +00:00
Bryan Boreham
f396c60402
Persist the Ring
2016-02-12 18:12:26 +00:00
Bryan Boreham
ad036499eb
Add db infra to IPAM
2016-02-12 18:12:26 +00:00
Bryan Boreham
38c6eb28e8
Add basic infrastructure to use BoltDB for persistence
2016-02-12 18:12:26 +00:00
Matthias Radestock
11e2515f70
Merge pull request #1968 from weaveworks/refactor-veth-creation
...
"refactor" veth creation
2016-02-10 13:49:13 +00:00
Matthias Radestock
c79e036c08
Merge pull request #1966 from weaveworks/issues/1965-fix-local-weave-ps
...
Make weaveutil container-addrs observe $PROCFS
Fixes #1965 .
2016-02-09 22:40:36 +00:00
Matthias Radestock
7a19c2f147
add a test
2016-02-09 22:26:01 +00:00
Adam Harrison
4cee647e73
Make weaveutil container-addrs observe $PROCFS
2016-02-09 22:25:47 +00:00
Matthias Radestock
7ea3299dc6
oops
...
/usr/local/bin/weave: 1172: [: true false: unexpected operator
This got broken in #1941 .
2016-02-09 22:05:11 +00:00
Matthias Radestock
5707581ba3
Merge pull request #1964 from weaveworks/weave-veth-cleanup
...
Fix attach-bridge bugs
2016-02-09 21:11:27 +00:00
Adam Harrison
264d5e4828
Make attach-bridge iptables rule insertion idempotent
2016-02-09 20:42:59 +00:00
Matthias Radestock
9311294d9c
"refactor" veth creation
...
Invoke the new create_veth from a few places, eliminating code
duplication and inconsistencies.
Semantic differences:
- init_bridged_fastdp now skips the veth creation/config if the veth
already exists. This eliminates routing blips. Though in reality
something very strange must have happened to end up in this code
with an existing veth.
- init_bridged_fastdp no longer deletes the $BRIDGE and $DATAPATH when
veth creation/configuration fails. This is consistent with
init_bridge, which does not delete $BRIDGE when something goes
wrong. And it is generally desirable since the init_* functions are
invoked on potentially existing bridges - e.g. following 'weave
stop'.
- attach_bridge and setup_router_iface_bridge used to mark one veth
end 'up', then invoke add_iface_* for it, and then mark the other
end 'up'. create_veth marks both ends 'up' first. This makes no
practical difference in these cases.
notable other differences:
- we detect veth presence by checking whether *both* ends are present,
rather than just one. We deliberately continue to (and fail in) the
veth creation if one end already exists. This can only happen when
we've stumbled across a different interface, since a veth end cannot
exist independently. So it is right to treat this as an error.
- init_bridged_fastdp invokes add_iface_bridge instead of duplicating
what that does. Also makes for nice coherence with the
add_iface_fastdp it is invoking too.
2016-02-09 19:22:14 +00:00
Adam Harrison
2bfc86e7b2
Cleanup attach-bridge iptables rule
2016-02-09 16:51:04 +00:00
Adam Harrison
36ee8bacb0
Remove all vethwe* interfaces in reset
2016-02-09 16:48:03 +00:00
Matthias Radestock
1bb1108b91
tiny refactor: use ${CONTAINER_IFNAME} for name construction
2016-02-09 16:40:58 +00:00
Matthias Radestock
a77201bf77
Merge pull request #1955 from weaveworks/weave-attach-bridge
...
'attach-bridge' feature to link an existing bridge netdev with the weave bridge
2016-02-09 15:45:28 +00:00
Adam Harrison
a3d842bf4a
Implement attach-bridge
2016-02-09 15:20:11 +00:00
Adam Harrison
43eb70193b
Merge branch '1.4'
2016-02-09 11:40:14 +00:00
Adam Harrison
1228dbddb9
Add release v1.4.4
2016-02-09 11:20:51 +00:00
Adam Harrison
a401d0d6ea
Merge branch '1.4'
2016-02-09 10:53:52 +00:00
Adam Harrison
c00b00d623
Merge pull request #1963 from weaveworks/issues/1959-dont-remove-network
...
Don't remove weave network on plugin shutdown because it bricks Docker 1.10
2016-02-09 10:53:13 +00:00
Bryan Boreham
7bbc9f1b82
Don't remove the weave network on shutdown because it bricks Docker 1.10
2016-02-09 10:02:06 +00:00
Matthias Radestock
6252871e93
Merge branch '1.4'
2016-02-09 09:30:19 +00:00
Matthias Radestock
15a92f9c92
Merge pull request #1961 from weaveworks/issues/1956-any-iface
...
Wait for multicast route on any interface
Fixes #1956 .
2016-02-09 09:29:05 +00:00
Bryan Boreham
9386c01845
Wait for multicast route on any interface, to match weave script
...
which only adds a route if there isn't one already
2016-02-08 14:04:25 +00:00
Adam Harrison
6d1e33b558
Merge pull request #1957 from weaveworks/issues/1949-ring-errors
...
Make error messages on ring merge clearer
2016-02-08 13:52:59 +00:00
Bryan Boreham
ed3c50f43e
Merge pull request #1951 from weaveworks/issues/1940-remove-proxy-dockerbridgeip-dep
...
Use netlink instead of shelling out to `weave docker-bridge-ip`
2016-02-08 11:05:10 +00:00
Bryan Boreham
9ac62e8005
Extract common getenv-testing code
2016-02-08 10:46:18 +00:00
Bryan Boreham
034da376c4
Make error messages on ring merge clearer
2016-02-08 10:13:41 +00:00
Matthias Radestock
10fbc75997
Merge pull request #1922 from weaveworks/issues/1179-its-alive
...
In IPAM, resurrect apparently-dead containers on ContainerStarted event
2016-02-05 16:36:28 +00:00
Matthias Radestock
98d76e1099
Merge pull request #1941 from weaveworks/issues/1873-check-running-master
...
Improve visibility of startup problems
Fixes #1873 .
2016-02-04 16:50:50 +00:00
Matthias Radestock
f2a1b3829d
tweak: consistency
2016-02-04 16:19:29 +00:00
Matthias Radestock
e47c4a78f0
Merge pull request #1948 from weaveworks/test-claimforpeers
...
Improve IPAM Ring unit testing, and streamline ring.ClaimForPeers
2016-02-04 15:31:00 +00:00
Bryan Boreham
f9f6649f90
Check some ring entries via AllRangeInfo, to improve coverage
2016-02-04 15:12:13 +00:00
Bryan Boreham
a5c9898884
Checking for existing entries is pointless when the Ring starts empty
2016-02-04 15:12:13 +00:00
Bryan Boreham
839eb28310
Unit test for ring.ClaimForPeers
2016-02-04 15:11:46 +00:00
Adam Harrison
e2ec2b436d
Use netlink instead of shelling out to weave docker-bridge-ip
2016-02-04 14:00:01 +00:00
Bryan Boreham
07b79568dd
Resurrect apparently-dead containers on ContainerStarted event
2016-02-04 13:49:43 +00:00
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
Bryan Boreham
38013d2f41
Kill zombies
2016-02-04 12:52:16 +00:00
Adam Harrison
65c48707f6
Use netlink instead of shelling out to weave ps
2016-02-04 12:51:18 +00:00
Adam Harrison
415e550f86
Merge pull request #1930 from weaveworks/issues/1746-always-use-host-netns
...
Always use host netns
2016-02-04 12:50:08 +00:00
Adam Harrison
034d8933c0
make multiweave work with weave running in the host netns
...
Multiweave now creates a temporary bridge with an IP alias per router
in the host netns, and overrides the router to bind to that specific
IP for weave protocol and data traffic and http control.
2016-02-03 11:57:12 +00:00
Matthias Radestock
cf24bb0e89
remove weaveapi.NewClientWithResolver cruft
2016-02-03 11:56:50 +00:00
Matthias Radestock
ae725e333a
make plugin pay attention to WEAVE_HTTP_ADDR
2016-02-03 11:54:05 +00:00
Matthias Radestock
dde244160b
make proxy pay attention to WEAVE_HTTP_ADDR
2016-02-03 11:28:38 +00:00
Matthias Radestock
fdd006022d
make weave control address configurable
2016-02-02 21:38:02 +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
Adam Harrison
4117ef0c50
Fix WEAVE_NO_FASTDP test on GCE
2016-02-02 20:48:49 +00:00
Matthias Radestock
e3c19d6414
get rid of container_ip
...
We already know what the weave container IP is, since now it runs in
the host netns.
2016-02-02 20:48:49 +00:00
Matthias Radestock
b1e6bc2929
Always use host netns
...
which allows us to get rid of port mappings and a whole bunch of other
code.
2016-02-02 20:48:49 +00:00
Matthias Radestock
feee4f0494
refactor: make proxy use weave/api
...
and extend that api as required, namely with DNSDomain()
2016-02-02 20:45:30 +00:00
Matthias Radestock
34ab86124b
fix typo
2016-02-02 20:31:38 +00:00
Adam Harrison
f37eb4b77d
Merge branch '1.4'
2016-02-02 16:52:20 +00:00
Adam Harrison
5232a9af6b
Add release v1.4.3
2016-02-02 16:35:32 +00:00
Adam Harrison
90795e5446
Merge branch '1.4'
...
Conflicts:
plugin/ipam/driver.go
2016-02-02 16:04:49 +00:00
Adam Harrison
c393b23b31
Merge pull request #1918 from weaveworks/issues/1906-plugin-no-weave
...
Return an error when weave isn't running, on RequestPool
2016-02-02 15:54:39 +00:00
Matthias Radestock
6bebce0b5a
tiny refactor
2016-02-02 14:03:01 +00:00
Bryan Boreham
71da517e88
Refactor to collect all code that touches alloc.owned
2016-02-02 13:57:12 +00:00
Matthias Radestock
faa7bad8d8
refactor with_container_netns
...
make it set CONTAINER_NETNS instead of CONTAINER_PID (well, it still
sets the latter, but not for effect), which reduces coupling.
2016-02-02 13:37:17 +00:00
Matthias Radestock
710c13ced9
correct typo in comment
2016-02-02 13:02:33 +00:00
Adam Harrison
6bd8da905e
Refactor: uniform use of weave_container_addresses
2016-02-02 11:30:36 +00:00
Adam Harrison
839f534350
Merge branch '1.4'
2016-02-01 15:30:51 +00:00
Adam Harrison
955fbca44a
Merge pull request #1943 from weaveworks/1942-mcast-iface-up
...
don't set the interface 'up' before it is fully configured
2016-02-01 15:29:46 +00:00
Matthias Radestock
18c26e9fbb
don't set the interface 'up' before it is fully configured
...
This was causing container entrypoints to execute too early,
e.g. before the interface had been given an IP address. But only when
running with --no-multicast-route, since otherwise weavewait is
waiting for the multicast route to appear.
Fixes #1942 .
2016-02-01 12:04:15 +00:00
Bryan Boreham
0a4b3a04ba
Wait for plugin status via unix socket
2016-02-01 10:11:46 +00:00
Bryan Boreham
78f2d82984
Extract function to listen on Unix socket
2016-02-01 10:11:46 +00:00
Matthias Radestock
f8fa37c895
Merge branch '1.4'
2016-01-30 11:16:30 +00:00
Matthias Radestock
b54efbde69
fix typo in comment
2016-01-30 11:15:57 +00:00
Bryan Boreham
c2a869491f
Check State.Restarting as well as State.Running
2016-01-29 17:41:02 +00:00
Bryan Boreham
a750ef8033
Don't check if container is running when we only want its ID.
...
This avoids trying to decide if "restarting" is as good as "running".
In wait_for_status we now explitly check_running, and
in dns_add/remove we add an extra check_running test.
2016-01-29 17:41:02 +00:00
Matthias Radestock
30fef10afa
Merge remote-tracking branch 'upstream/master'
2016-01-29 16:08:00 +00:00
Matthias Radestock
2e9c1ee046
Merge branch '1.4'
2016-01-29 16:07:20 +00:00
Adam Harrison
81c49e6005
Merge pull request #1938 from weaveworks/issues/1827-stopped-version
...
Check if container is running before using its image to ask for version
2016-01-29 15:57:15 +00:00
Adam Harrison
11ccada740
Merge pull request #1939 from weaveworks/issues/1937-dont-rm
...
Don't rm old containers, in case we want the log
2016-01-29 15:47:40 +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
Matthias Radestock
c6f356a167
Merge pull request #1935 from weaveworks/issues/1757-volumes-container
...
Reduce docker volumes for weavewait to just one set per release
Fixes #1757 .
2016-01-29 15:24:42 +00:00
Adam Harrison
5fbceb0f78
Merge pull request #1777 from weaveworks/remove-plugin-nameserver-option
...
Remove 'nameserver' option from plugin
2016-01-29 15:24:04 +00:00
Bryan Boreham
3c6211f9f2
Don't rm old containers, in case we want the log
2016-01-29 15:07:14 +00:00
Bryan Boreham
b9502ee1cd
Check if container is running before using its image to ask for version
2016-01-29 14:43:02 +00:00
Adam Harrison
4f97b3ac85
Merge pull request #1916 from weaveworks/issues/1734-fixed-ip
...
Support requesting a specific IP from the plugin
2016-01-29 14:22:23 +00:00
Bryan Boreham
e4828ad30a
Remove 'nameserver' option
2016-01-29 14:03:04 +00:00
Matthias Radestock
20dab1f8fe
Merge branch '1.4'
2016-01-29 12:46:08 +00:00
Matthias Radestock
eae45ebc94
Merge pull request #1921 from weaveworks/issues/1745-plugin-ps
...
Make weave script scan veths with prefix 'ethwe'
Fixes #1745
2016-01-29 12:45:10 +00:00
Bryan Boreham
ea50b3d5cc
Create a different weavevolumes container for each Weave version.
...
They will be named 'weavevolumes-v1.4.3', 'weavevolumes-latest', etc.
Use a label to identify these containers so they can all be removed on `weave reset`.
2016-01-29 12:22:22 +00:00
Bryan Boreham
3297b93edb
Smoke-test 'weave ps' and restarting when using plugin
2016-01-29 12:13:00 +00:00
Bryan Boreham
6d0e867ad0
Capture addresses from veths with prefix 'ethwe'
...
This is to address the plugin case, where the veth will have a name like 'ethwe0'.
Previously we only looked at the device named exactly 'ethwe'.
Covers `weave ps` and reclaim of addresses for IPAM and WeaveDNS.
2016-01-29 12:13:00 +00:00
Bryan Boreham
1cea9c1c87
Extract function to detect container running in host namespace
2016-01-29 12:13:00 +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
c0ece16881
Don't need to rm the network here because 'weave reset' does it
2016-01-28 17:55:27 +00:00
Matthias Radestock
95a4ca8e3e
Merge branch '1.4'
2016-01-28 17:51:20 +00:00
Matthias Radestock
c6d0149ba6
add missing dependency
...
The plugin image derives from the weaveexec image.
2016-01-28 17:50:26 +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
cab4e37ef8
Merge pull request #1924 from weaveworks/update-mesh
...
Update mesh
2016-01-28 10:04:40 +00:00
Peter Bourgon
0dff2e66c6
vendor: update mesh
...
Now, broadcast operations cannot fail. So, update various broadcast-y
methods to no longer return errors.
2016-01-28 10:43:32 +01:00
Matthias Radestock
6680a8a054
Merge branch '1.4'
2016-01-27 22:04:09 +00:00
Matthias Radestock
3679065258
cope with nil route.Dst
...
Fixes #1932 .
2016-01-27 22:02:07 +00:00
Bryan Boreham
482045aed8
Send back an http error code with any plugin errors.
2016-01-27 14:53:26 +00:00
Bryan Boreham
610a90c727
Claim address requested by caller
2016-01-27 12:11:01 +00:00
Matthias Radestock
31f736b37e
fix errors spotted by usage analysis
2016-01-26 18:13:29 +00:00
Matthias Radestock
d220379ad3
Merge branch '1.4'
2016-01-26 16:57:28 +00:00
Matthias Radestock
4649f1158a
Merge pull request #1926 from weaveworks/issues/1905-fix-negative-fragment
...
Negative fragment fix
Fixes #1905 .
2016-01-26 16:56:03 +00:00
Bryan Boreham
952e9de265
Remove superfluous line and fix comment typo
2016-01-25 18:05:43 +00:00
Bryan Boreham
ef1b8d6237
Merge pull request #1927 from weaveworks/revert-1808-1803-plugin-mac
...
Revert "Refactor plugin to create veths in CreateEndpoint"
2016-01-25 18:04:56 +00:00
Bryan Boreham
2970df4505
Revert "Refactor plugin to create veths in CreateEndpoint"
2016-01-25 17:57:53 +00:00
Adam Harrison
87f793f0e0
Merge pull request #1808 from weaveworks/1803-plugin-mac
...
Refactor plugin to create veths in CreateEndpoint
2016-01-25 11:53:17 +00:00
Adam Harrison
de17a44f35
Fix fragmentation test
...
The assumptions on which this test was based were violated by the
introduction of fast datapath. A new rule is required to block fast
datapath traffic, to ensure that sleeve is selected for forwarding; the
rules must also be moved from the FORWARD chain to INPUT as the router
now runs in the host netns (NB we use INPUT instead of OUTPUT as the
latter results in sleeve receiving an 'operation not permitted' udpv4
write error when it tries to send a packet that is too big, rather than
the packet just being silently dropped as required)
2016-01-25 10:58:31 +00:00
Adam Harrison
52ce4df18e
Increase the lowest possible good PMTU
...
The current minimum PMTU we can detect is eight bytes, which, being
lower than the minimum IPv4 MTU of 68 bytes, can cause an exception in
the sleeve packet fragmentation implementation. We increase that minimum
to 552, the lowest PMTU value that Linux will cache.
2016-01-25 10:53:10 +00:00
Matthias Radestock
1a590b3ffa
document --name
2016-01-23 09:01:41 +00:00
Matthias Radestock
e249a7ef0c
tweak plugin docs
2016-01-22 13:44:49 +00:00
Matthias Radestock
83412e4514
Merge pull request #1915 from weaveworks/issues/1806-plugin-subnet
...
Support subnet and iprange arguments on network create
Closes #1806 .
2016-01-22 13:39:52 +00:00
Bryan Boreham
1a59734cdb
Support subnet and iprange arguments on network create
2016-01-22 13:37:36 +00:00
Matthias Radestock
7f3dc6f202
Merge branch '1.4'
2016-01-22 13:35:58 +00:00
Matthias Radestock
f1ed5bf838
Merge branch 'latest_release_doc_updates' into 1.4
2016-01-22 13:35:27 +00:00
Matthias Radestock
256a801d16
typo
2016-01-22 13:34:59 +00:00
Matthias Radestock
c416cf8da5
tidying of plugin docs
2016-01-22 13:27:22 +00:00
Matthias Radestock
efffbe6de1
Merge pull request #1913 from weaveworks/fix-smoketests-docker-1.10
...
Fix smoke tests for docker 1.10
2016-01-21 17:30:52 +00:00
Adam Harrison
a64435a9a5
Adjust tests to accomodate docker/docker#14012
2016-01-21 17:28:54 +00:00
Bryan Boreham
c2fba38c46
Merge pull request #1902 from weaveworks/vendored-dep-management-doc
...
Document vendored dependency management commands
2016-01-21 14:14:47 +00:00
Matthias Radestock
d2ba647f68
Merge pull request #1920 from weaveworks/1893-make-testrunner
...
move smoke test dependencies from 'all' to 'testrunner' target
Fixes #1893 .
2016-01-21 13:46:34 +00:00
Matthias Radestock
a6aad6dc49
move smoke test dependencies from 'all' to 'testrunner' target
...
That way a plain 'make' works out-of-the-box.
Fixes #1893 .
2016-01-21 13:00:32 +00:00
Bryan Boreham
7455a699c4
Use more chars from endpointID to reduce clashes
2016-01-21 12:36:58 +00:00
Matthias Radestock
0872623ca5
Merge branch '1.4'
2016-01-21 12:30:32 +00:00
Matthias Radestock
75e812a061
Merge branch 'latest_release_doc_updates' into 1.4
2016-01-21 12:30:14 +00:00
Matthias Radestock
4cc7b01940
Merge pull request #1907 from weaveworks/systemd-timeout
...
Suggest disabling systemd timeout if using Weave Net plugin
2016-01-21 12:29:42 +00:00
Matthias Radestock
4d05775e11
Merge branch '1.4'
2016-01-21 11:30:05 +00:00
Matthias Radestock
a2ff7e5981
Merge pull request #1919 from weaveworks/issues/1900-dont-stop-stoppin
...
Warn, don't error, if unable to remove network in 'weave stop'
Fixes #1900 .
2016-01-21 11:22:21 +00:00
Matthias Radestock
d5bfc61a73
use hashicorp's wily64 images instead of ubuntu's
...
The latter suffer from https://github.com/mitchellh/vagrant/issues/6653
2016-01-21 11:08:14 +00:00
Bryan Boreham
7ec17ab2ef
Merge branch '1.4'
2016-01-21 10:18:01 +00:00
Bryan Boreham
cda98a6375
Merge pull request #1917 from weaveworks/issues/1911-fix-unexpected-eof
...
Fix unexpected EOF with Docker 1.10-rc1 and proxy --rewrite-inspect
2016-01-21 10:15:20 +00:00
Matthias Radestock
03ac917567
Merge branch '1.4'
2016-01-20 18:56:59 +00:00
Matthias Radestock
3b7a754b0a
Merge branch 'latest_release_doc_updates' into 1.4
2016-01-20 18:56:26 +00:00
Anita Buehrle
c01c6bcb91
fixed logo image in header
2016-01-20 12:48:31 -06:00
Bryan Boreham
5d598a1015
Refactor to make suffix part clearer
2016-01-20 16:50:42 +00:00
Bryan Boreham
adafb79e34
Move endpoint creation into CreateEndpoint so we can return the MAC address
2016-01-20 16:45:08 +00:00
Bryan Boreham
e47360f8dc
Warn, don't error, if unable to remove network in 'weave stop'
2016-01-20 16:18:09 +00:00
Bryan Boreham
6035b54277
Send back an http error code in case of error, so Docker is clear something went wrong
2016-01-20 15:36:42 +00:00
Bryan Boreham
a238130613
Give more explanation if we can't find weave to talk to
2016-01-20 15:36:34 +00:00
Bryan Boreham
998be42a52
Don't crash if no default subnet available
2016-01-20 15:36:25 +00:00
Matthias Radestock
bafa3f4f4e
Merge pull request #1912 from weaveworks/wily-vagrant
...
Update Vagrant to use Wily 15.10
2016-01-20 14:59:40 +00:00
Adam Harrison
14944da396
Ignore stderr in proxy_addrs
2016-01-20 14:24:59 +00:00
Adam Harrison
a3974c2aeb
Abort inspect exec rewrite unless Containers node is present
2016-01-20 14:24:28 +00:00
Bryan Boreham
6570b0ba1a
Merge branch '1.4'
2016-01-20 14:06:00 +00:00
Bryan Boreham
13ec517f94
Merge pull request #1910 from weaveworks/1909-forEachRoute-panic
...
cope with errors during route traversal
2016-01-20 14:05:10 +00:00
Adam Harrison
2a2b2da097
Update Vagrant to use Wily 15.10
2016-01-20 09:17:07 +00:00
Matthias Radestock
43419815f4
bypass netlink.LinkByIndex
...
since we are seeing some cases where it returns "Link not found" when
the link is in fact there.
2016-01-19 16:36:16 +00:00
Matthias Radestock
b5256f7b71
refactor: inline
...
This eliminates the unnecessary indirection via interface names,
instead identifying the interface by its index.
2016-01-19 16:36:16 +00:00
Matthias Radestock
0caa9dd652
cope with errors during route traversal
...
Fixes #1909 .
2016-01-19 15:28:31 +00:00
Bryan Boreham
dd7271aaa2
Merge pull request #1866 from weaveworks/901-peername-from-machine-id
...
Derive peer name from product_uuid; LGTM
2016-01-18 15:29:44 +00:00
Matthias Radestock
133c16f989
document new reboot behaviour
...
...and generally tidy up IPAM stop/restart docs.
2016-01-18 14:57:03 +00:00
Matthias Radestock
e631fb0d69
derive the bridge MAC from the system (aka BIOS) UUID
...
...if possible. This provides a stable peer identity across
reboots. If we cannot determinbe the system UUID then we revert to a
random MAC, as before.
Fixes #901 .
2016-01-18 14:56:55 +00:00
Bryan Boreham
5e1e8ec543
Suggest user disables systemd timeout if using plugin
2016-01-18 11:45:17 +00:00
Adam Harrison
432c1904da
Merge pull request #1890 from weaveworks/1889-vendor-mesh
...
Change import location for mesh
2016-01-15 17:18:31 +00:00
Adam Harrison
8a691814e2
Document vendored dependency management commands
2016-01-15 16:17:07 +00:00
Peter Bourgon
553c8b734d
git submodule add weaveworks/mesh
2016-01-15 16:03:42 +01:00
Peter Bourgon
3767a680e8
Makefile doesn't need to build mesh/*.go anymore
2016-01-15 15:57:01 +01:00
Peter Bourgon
e27b320ede
Update import location for mesh
2016-01-15 15:57:01 +01:00
Peter Bourgon
90afa7db93
git rm -rf mesh
2016-01-15 15:57:01 +01:00
Bryan Boreham
efd4fc4704
Merge pull request #1901 from weaveworks/1897-weaveutil-plugin-network
...
move plugin network creation/removal into weaveutil
2016-01-15 11:07:38 +00: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
Tom Wilkie
a83b58cd27
Merge pull request #1896 from weaveworks/tweak-circle
...
Improve build times on CircleCI
2016-01-14 08:57:20 -08:00
Bryan Boreham
8eeb6dd836
Only rebuild without coverage if we're going to publish
2016-01-14 15:33:46 +00:00
Bryan Boreham
bd7e5d6921
Do a build before the 'go test'; perversely this runs faster
2016-01-14 15:29:58 +00:00
Bryan Boreham
7c1e80ca89
Don't do coverage on vendored directories
2016-01-14 14:16:28 +00:00
Bryan Boreham
9aae1fa3c9
Save the ~/docker directory in cache because rebuild_image stores things there
2016-01-14 13:02:32 +00:00
Adam Harrison
5bf440d558
Merge branch '1.4'
2016-01-14 12:07:21 +00:00
Adam Harrison
c391092ea6
Add release v1.4.2
2016-01-14 11:40:17 +00:00
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
Matthias Radestock
c3f2150b5b
cosmetic: whitespace
2016-01-11 00:03:37 +00:00
Matthias Radestock
46566e2159
refactor: extract sleeve crypto initialisation
2016-01-10 23:52:46 +00:00
Matthias Radestock
1d8d098450
for Travis, this no longer is a go project
...
Travis insists that one picks a project language. There is no go left
in the steps executed by travis. Instead we have Python, Ruby and
shell. Let's pick the first...
Picking Python makes travis unhappy with "Can not perform a '--user'
install. User site-packages are not visible in this
virtualenv". Dropping the '--user' flag fixes that.
2016-01-09 14:21:23 +00:00
Matthias Radestock
1038cbd1a3
shrink Travis usage
...
There is no point running builds, tests, lints on Travis, since we
already do that on Circle.
The only thing we aren't doing (and can't do) on Circle is doc
publishing, so now Travis does just that.
2016-01-09 14:01:27 +00:00
Matthias Radestock
21a2cdd579
Merge branch '1.4'
2016-01-08 18:14:56 +00:00
Matthias Radestock
f598ae297b
Merge branch 'latest_release_doc_updates' into 1.4
2016-01-08 18:14:23 +00:00
Bryan Boreham
4b0fe502f0
Document the --no-multicast-route flag
2016-01-08 17:12:20 +00:00
Matthias Radestock
d9b9ce6bcd
simplify gitignore
2016-01-08 15:23:37 +00:00
Matthias Radestock
4fffa6fa43
fix typo
2016-01-08 15:11:21 +00:00
Tom Wilkie
c0cd9dffc2
Merge pull request #1862 from weaveworks/1651-pause-differently
...
Fix race condition in ipam TestHTTPCancel
2016-01-08 14:07:06 +00:00
Bryan Boreham
f91d7bb7e4
Rewrite TestHTTPCancel to avoid fiddling inside Allocator
2016-01-08 13:37:15 +00:00
Matthias Radestock
3e6f31c8e2
add missing dependencies and netgo checks
2016-01-08 13:27:37 +00:00
Matthias Radestock
19b53cdeb1
refactor: get rid of superfluous rule
2016-01-08 12:06:38 +00:00
Matthias Radestock
c6cc10169f
refactor: put all dependencies in one place
2016-01-08 12:05:48 +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
Bryan Boreham
8804f88c93
Merge pull request #1856 from weaveworks/no-gossip-sender-gc
...
get rid of GossipSender gc; LTGM
2016-01-07 17:29:54 +00:00
Bryan Boreham
3c654bc036
Merge pull request #1561 from weaveworks/proxy-retry-attach
...
Proxy retry attaching containers; fixes #1556
2016-01-07 17:27:19 +00:00
Paul Bellamy
8ddbb3d8af
[proxy] Keep retrying container attaches until they succeed.
2016-01-07 17:09:34 +00:00
Tom Wilkie
422e9b58cd
Merge pull request #1857 from weaveworks/issues/864-gce-retry
...
Stop masking failures in gce hosts destroy
2016-01-07 14:53:02 +00:00
Matthias Radestock
64a017c972
Merge branch '1.4'
2016-01-07 14:36:08 +00:00
Matthias Radestock
e4295a2da9
don't attach rewrite_etc_hosts helper container to weave
...
...since that is a) inefficent and b) can block when IPAM hasn't had
consensus.
We can only end up in this situation when DOCKER_HOST is pointing at
the weave proxy and we are running `weave run|attach` with
`--local`. So it's very much an edge case.
Fixes #1858 .
2016-01-07 14:32:52 +00:00
Matthias Radestock
216a0fe4fc
refactor: WEAVE_CIDR=none is redundant when --net=host
2016-01-07 14:29:51 +00:00
Bryan Boreham
604f5c599a
Check if there are any machines to destroy, and stop masking failures
2016-01-07 13:40:34 +00:00
Matthias Radestock
9aa4313d37
refactor
2016-01-06 17:38:40 +00:00
Matthias Radestock
969dc4e527
get rid of GossipSender gc
...
With the per-broadcast-source GossipSenders gone, we can get rid of
GossipSender gc...
Instead of maintaining a Connection->GossipSender map in the
GossipChannels - which we then need to gc when connections get closed
- we keep gossip_channel_name->GossipSender maps in LocalConnections.
Access to the map is guarded by a separate lock, rather than re-using
the LocalConnection lock. This reduces lock contention and risk of
deadlock.
In the GossipSenders, we replace the Stop() method with a signalling
channel, i.e. senders stop when that channel gets closed. Handily, the
LocalConnection.finished channel fits that description. So when a
LocalConnection's run loop terminates, any existing and future
associated GossipSenders will end up terminating too.
2016-01-06 17:38:40 +00:00
Bryan Boreham
bbd0b15792
Merge pull request #1855 from weaveworks/gossip-broadcast-stall-3
...
don't stall gossip broadcasting when there are blocked connections; LGTM
2016-01-06 16:43:37 +00:00
Matthias Radestock
99b7fbbc71
optimisation: stop GossipSender on send error
2016-01-05 17:18:41 +00:00
Matthias Radestock
486eb740b5
optimisation: abort GossipSender.deliver when stopped
2016-01-05 17:18:41 +00:00
Matthias Radestock
c6a73b8a75
don't stall broadcasting when there are blocked connections
...
Previously broadcasts were being handled by one GossipSender per
broadcast source (and channel), which sends the broadcast to all next
hops, and hence can stall when a single destination is stalled.
Here we get rid of these per broadcast source GossipSenders. Instead
broadcasts are sent to per-connection GossipSenders for all next hops.
For this we use the existing GossipSenders we have set up for ordinary
gossip. In order to deal with broadcasts they need one GossipData cell
per broadcast source, since only broadcasts from the same source can
be Merge()ed. So we add a PeerName->GossipData map of cells, in
addition to the existing cell for ordinary gossip.
The GossipSender goroutine picks one of the cells at a time, Encode()s
the contents and sends it. It prefers the ordinary gossip cell over
the broadcast cells since typically ordinary gossip is more important.
To reduce coupling, the GossipSenders don't actually know how to
construct protocol messages. They just invoke a couple of functions
for that - one for ordinary gossip and one for broadcast - which are
supplied by the GossipChannel.
There are two downsides to this change:
1. broadcasts get encoded per connection, rather than just once
2. we can potentially end up with O(n_peers^2) cells, each containing
accumulated (via GossipData.Merge()) broadcasts. For this to happen,
the peer must
- deal with gossip from most nodes. This doesn't happen in
(near)complete connection topologies. Hypercube topologies are
probably the worst case uniform topology. And a star topology is the
worst case for a single (the centre) peer.
- have backlogged connections to most of its neighbours, without
those connections being completely stalled (since that would cause
heartbeat timeouts to terminate them).
Furthermore, for this to matter in practise, the accumulated broadcast
GossipData must be sizeable:
- For topology gossip, GossipData is just a set of PeerNames. Which
takes very little space and is bounded, since there is a finite
number of peers. And, if we could get rid of workaround for #1793
(cbaa92dcb ), then topology broadcasts would only ever contain
information about the source peer, so the GossipData would contain
just one PeerName.
- IPAM only employs broadcast during initialisation and shutdown.
- DNS broadcasts contain DNS entries for containers on the source
peer. Each entry will typically be 100-200 bytes. The accumulated
broadcast GossipData from a peer will contain entries for all the
peer's DNS entries, worst case. This includes tombstones,
i.e. entries for containers that have died. If there is churn,
i.e. DNS entries being added and removed continuously, and the churn
rate exceeds the rate at which we can forward those entries, then
the accumulated broadcast GossipData can grow unbounded. Note that
this is the case on master too; the difference here is that we can
have up to n_peers copies of that GossipData.
2016-01-05 17:18:19 +00:00
Bryan Boreham
262f8915a8
Merge pull request #1826 from weaveworks/cleaner-gossip-sender
...
clean up GossipSender
2016-01-05 16:36:26 +00:00
Ilya Dmitrichenko
b623e914c9
update year in copyright notices
2016-01-05 12:19:00 +00:00
Matthias Radestock
70bfcd033b
Merge branch '1.4'
2016-01-04 11:14:28 +00:00
Matthias Radestock
80770d39e5
oops
2016-01-04 10:53:41 +00:00
Matthias Radestock
beb15fa32c
don't fail weave launch when plugin is disabled
...
Fixes #1851 .
2016-01-04 10:35:44 +00:00
Matthias Radestock
1bec425510
Merge branch '1.4'
2016-01-04 09:46:35 +00:00
Matthias Radestock
0adf7626d0
Merge branch 'latest_release_doc_updates' into 1.4
2016-01-04 09:45:56 +00:00
Matthias Radestock
9c17fe259c
add ToC to build instructions
2016-01-04 09:41:39 +00:00
Matthias Radestock
ecab4b4716
correct image names
2016-01-04 09:35:17 +00:00
Matthias Radestock
c3e6669d18
Merge branch '1.4'
2016-01-03 16:45:41 +00:00
Matthias Radestock
7660ad761a
oops
...
I broke this in 370212609 .
Fixes #1848 .
2016-01-03 16:42:39 +00:00
Matthias Radestock
d010000583
fall back to invoking weaveutil in a container
...
As a result, `weave --local ...` now runs both netcheck and
docker-tls-args.
2016-01-02 14:13:29 +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
79452d3a9a
cosmetic(ish)
2016-01-02 14:00:23 +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
4a6b72c649
Revert "cosmetic"
...
changed my mind
This reverts commit 20a8488a15 .
2016-01-02 10:49:22 +00:00
Matthias Radestock
20a8488a15
cosmetic
...
PROCFS is always set
2016-01-02 00:14:18 +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
9c31de9cb9
refactor: replace some 'if's with && and || expressions
2015-12-31 15:36:18 +00:00
Matthias Radestock
c1e8c9c537
Merge branch '1.4'
2015-12-31 13:26:55 +00:00
Matthias Radestock
c8ff2de3b3
properly deal with unavailable docker server api version
...
Fixes #1845 .
2015-12-31 12:51:16 +00:00
Matthias Radestock
24d1c73012
Merge branch '1.4'
2015-12-31 12:32:30 +00:00
Matthias Radestock
24a2e43547
Merge pull request #1841 from weaveworks/1840-weave-stop-plugin-complaint
...
don't complain in `weave stop` when plugin is not enabled
Fixes #1840 .
2015-12-31 12:32:05 +00:00
Matthias Radestock
2816899543
refactor: extract helper to invoke fastdp functions from script
2015-12-31 12:19:51 +00:00
Matthias Radestock
394d2add68
Merge branch '1.4'
2015-12-31 10:59:10 +00:00
Matthias Radestock
a9d212c888
don't fail on missing docker_tls_args
...
instead just don't auto-detect TLS args in that case.
This makes `weave --local launch` work (again).
Fixes #1844 .
2015-12-31 10:43:46 +00:00
Matthias Radestock
c1b1276aaf
refactor: simplify
2015-12-31 10:16:37 +00:00
Matthias Radestock
370212609c
Show expected error message when docker_tls_args fails.
...
And also make the error message more meaningful.
Fixes #1843 .
2015-12-31 10:05:41 +00:00
Matthias Radestock
159bad54b0
prettier usage
2015-12-31 01:42:01 +00:00
Matthias Radestock
1cc7ca18ba
Merge branch '1.4'
2015-12-31 01:11:06 +00:00
Matthias Radestock
281937cf82
document weave launch-router --trusted-subnets
...
and eliminate duplication
Fixes #1842 .
2015-12-31 01:09:51 +00:00
Matthias Radestock
d11b6e8075
don't complain in weave stop when plugin is not enabled
2015-12-30 23:40:27 +00:00
Matthias Radestock
4e22922256
refactor: rename netcheck.go -> main.go, for consistency
2015-12-30 23:17:48 +00:00
Matthias Radestock
8f01f6e85c
make some rules more generic, depending on *.go instead of main.go
2015-12-30 23:14:53 +00:00
Matthias Radestock
27f477a075
refactor: introduce a small helper so we don't repeat ourselves
2015-12-30 22:40:30 +00:00
Matthias Radestock
82ac69be4e
cosmetic
2015-12-30 22:23:16 +00:00
Matthias Radestock
0f357cdf7c
Merge branch '1.4'
2015-12-30 20:27:18 +00:00
Matthias Radestock
7709c6d0bd
Merge branch 'latest_release_doc_updates' into 1.4
2015-12-30 20:26:06 +00:00
Matthias Radestock
ef3e478506
Merge pull request #1804 from weaveworks/1774-trouble
...
Update 'reboots' info
Fixes #1774 .
2015-12-30 19:51:09 +00:00
Matthias Radestock
93eef26d0b
reword
2015-12-30 19:38:13 +00:00
Matthias Radestock
14d78cf08c
Update 'reboots' info
2015-12-30 19:32:18 +00:00
Matthias Radestock
872d88acb6
Merge branch '1.4'
2015-12-30 19:14:51 +00:00
Matthias Radestock
e96a63f550
Merge branch 'latest_release_doc_updates' into 1.4
2015-12-30 19:14:33 +00:00
Matthias Radestock
7a5b69f850
cosmetic
2015-12-30 19:13:57 +00:00
Matthias Radestock
a71d2a1682
move things around on troubleshooting page
...
- level 2 headings for top-level instead of level 3
- put all status reporting as L3s under one L2 heading
- add 'Reboots' to ToC
- move 'Stopping weave' into its own section and and move that
2015-12-30 19:06:04 +00:00
Matthias Radestock
f0f0e6f36d
reword "Contact Us"
2015-12-30 18:37:57 +00:00
Matthias Radestock
6ecdf69b88
replace partially broken link soup
2015-12-30 17:42:49 +00:00
Matthias Radestock
58de14ff65
optimisation: don't re-assign our ShortID if nothing got gc'ed
2015-12-30 14:07:23 +00:00
Matthias Radestock
4d304146f3
refactor: inlining
2015-12-30 12:29:23 +00:00
Matthias Radestock
e9520215a0
refactor: introduce a helper
...
which has a very narrow purpose, and can use 'defer' to release the
lock, which is nice.
2015-12-30 12:09:19 +00:00
Matthias Radestock
a2b192c472
we no longer need the GossipChannel lock around GossipSender.Send
2015-12-30 12:09:19 +00:00
Matthias Radestock
52575915d0
clean up GossipSender and make it more self-contained
...
In particular don't require Send() to be serialised by the caller.
We split up the triple(!) purpose 'cell' channel into:
1) a 'cell' member, holding pending GossipData or nil
2) a 'more' channel, for signalling that 'cell' has been filled
3) a 'stop' channel, for requesting termination
2015-12-30 12:09:19 +00:00
Matthias Radestock
0ecc0ee02e
tiny refactor
2015-12-30 12:07:56 +00:00
Matthias Radestock
8101dea338
remove some noisy logging
2015-12-24 21:25:25 +00:00
Matthias Radestock
373f8a4463
oops
2015-12-24 21:23:35 +00:00
Matthias Radestock
8846274c42
optimisation: terminate connection actorLoop asap on error
2015-12-24 14:25:25 +00:00
Matthias Radestock
c2356ebcde
optimisation: stop sending gossip on dead connections
...
An error in SendProtocolMsg indicates that the connection is
permanently broken. So there is no point continuing to attempt to send
gossip on it.
The connection will eventually be removed from LocalPeer, and any
associated GossipSenders will be gc'ed, but that doesn't happen
straight away, so this change is about not doing unnecessary work in
the meantime.
2015-12-24 12:27:33 +00:00
Matthias Radestock
33812f7666
tiny refactor: rename
2015-12-23 18:44:09 +00:00
Matthias Radestock
f58e3bf2a9
refactor: relocate an optimisation -> reduce duplication
2015-12-23 18:27:59 +00:00
Matthias Radestock
5473995305
remove maxFeasibleMessageLen check
...
since the root cause got fixed by 3cd199e85
2015-12-23 15:29:35 +00:00
Bryan Boreham
1796582032
Merge pull request #1773 from weaveworks/1761-lazy-route-calculation-1
...
lazy route calculation; LGTM
2015-12-23 12:27:02 +00:00
Bryan Boreham
4214a09392
Merge branch '1.4'
2015-12-23 11:09:13 +00:00
Bryan Boreham
e833ab672d
Merge branch '1.4'
2015-12-23 11:08:23 +00:00
Bryan Boreham
257b1a5353
Add the plugin to the list of images to tag and push
2015-12-23 11:00:58 +00:00
Matthias Radestock
39e29fd40b
refactor(ish): cleaner / more idiomatic GossipSender flush
2015-12-23 10:57:36 +00:00
Bryan Boreham
ec0c5f0375
Merge pull request #1800 from weaveworks/1568-release-process
...
Add more steps to the release process; fixes #1568 and #1506
2015-12-23 10:52:02 +00:00
Bryan Boreham
b45ac75735
Merge pull request #1825 from weaveworks/1824-idempotent-env-restore
...
make `eval $(weave env)` idempotent; LGTM. Fixes #1824
2015-12-23 10:48:35 +00:00
Bryan Boreham
ac53d7d47b
Merge pull request #1801 from weaveworks/1723_publish_plugin
...
Add the plugin to the list of images to tag and push. Fixes #1723
2015-12-23 10:46:15 +00:00
Matthias Radestock
c7c669fd11
make eval $(weave env) idempotent
...
so that `weave $(env --restore)` does the right thing regardless of
how many times `eval $(weave env)` was invoked previously.
Fixes #1824 .
2015-12-23 09:08:56 +00:00
Bryan Boreham
fdc7e15192
Merge branch '1.4'
2015-12-22 17:36:06 +00:00
Bryan Boreham
ba266ef8d3
Add release v1.4.1
2015-12-22 17:25:47 +00:00
Bryan Boreham
f434fad3be
Merge pull request #1822 from weaveworks/1820-unix-only
...
Only pass $DOCKER_HOST if it is a Unix socket - fixes #1820
2015-12-22 17:16:40 +00:00
Bryan Boreham
bab758ebf9
Revert "Launch the proxy via unix socket in last test"
...
- since we won't now be copying $DOCKER_HOST
This reverts commit d8cfbc4e08 .
2015-12-22 17:01:04 +00:00
Bryan Boreham
800f4663b6
Only pass through $DOCKER_HOST in exec_remote() if it is a Unix socket;
...
a TCP socket may be secured by TLS, in which case we can't use it.
2015-12-22 17:01:04 +00:00
Matthias Radestock
78ba69ef9f
Merge branch '1.4'
2015-12-22 15:25:48 +00:00
Matthias Radestock
b1b62afa90
Merge pull request #1812 from weaveworks/1810-warn-with-dns
...
Issue a warning on --with-dns option to proxy, because it was removed
Fixes #1810
2015-12-22 15:12:27 +00:00
Bryan Boreham
6b90ef7078
Clarify message
2015-12-22 14:56:40 +00:00
Matthias Radestock
593e3d3593
Merge remote-tracking branch 'upstream/1.4'
2015-12-22 14:02:15 +00:00
Matthias Radestock
2ed4b45c24
Merge pull request #1817 from weaveworks/1815-docker-version
...
Check we have Docker 1.9 or newer before trying to remove a network
Fixes #1815 .
2015-12-22 14:01:55 +00:00
Matthias Radestock
716f50c4e4
Merge remote-tracking branch 'upstream/1.4'
2015-12-22 13:50:10 +00:00
Matthias Radestock
47ba9748b4
Merge pull request #1814 from weaveworks/1778-check-running
...
Handle weave containers in 'restarting' state
Fixes #1778 .
2015-12-22 13:49:19 +00:00
Bryan Boreham
077ad4208f
Merge pull request #1813 from weaveworks/1797-plugin-version
...
Show plugin version; Fixes #1797
2015-12-22 13:12:38 +00:00
Bryan Boreham
c19edec364
Add 'weave stop-xxx' instructions for 'already running' case
2015-12-22 13:04:06 +00:00
Bryan Boreham
0c2aa494ae
Reduce duplication
2015-12-22 13:03:04 +00:00
Bryan Boreham
73e0a6bb0a
Inform user about weave containers in state 'restarting'
2015-12-22 13:01:00 +00:00
Bryan Boreham
abf1db0045
Merge pull request #1819 from weaveworks/1818-dont-launch-when-plugin-running
...
don't launch anything when plugin is running; fixes #1818 . LGTM.
2015-12-22 12:55:57 +00:00
Matthias Radestock
2f94d727ea
Merge remote-tracking branch 'upstream/1.4'
2015-12-22 12:49:00 +00:00
Matthias Radestock
b40b78ece0
refactor docker_sock_volume_mount()
2015-12-22 12:47:36 +00:00
Matthias Radestock
3ade796e8d
don't launch anything when plugin is running
...
...just as we don't launch anything if either the router or proxy are
running.
Fixes #1818 .
2015-12-22 12:30:53 +00:00
Bryan Boreham
7c2e808924
Check we have Docker 1.9 or newer before trying to remove a network
2015-12-22 12:10:48 +00:00
Bryan Boreham
7d2227c5a4
Add plugin version to 'weave version'
2015-12-22 10:50:02 +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
Matthias Radestock
cb6176fd8a
tweak ProtocolSender API
...
make SendProtocolMsg return an error; this isn't used at any call
sites (yet) but is TRTTD.
2015-12-21 18:24:22 +00:00
Matthias Radestock
b93ce1cea5
refactor: no need for GossipSender.sent
2015-12-21 18:09:50 +00:00
Matthias Radestock
3be28523c9
cosmetic
2015-12-21 17:56:38 +00:00
Matthias Radestock
592335092c
refactor: tweak GossipChannel API
2015-12-21 17:42:20 +00:00
Matthias Radestock
6c4e9fccd3
cosmetic
2015-12-21 17:28:22 +00:00
Matthias Radestock
6903b8d458
refactoring for consistency
2015-12-21 17:18:12 +00:00
Matthias Radestock
274265f001
typo
2015-12-21 17:03:03 +00:00
Bryan Boreham
ceac3c3d83
Merge branch '1.4'
2015-12-18 09:54:22 +00:00
Bryan Boreham
48658f011f
Merge pull request #1805 from weaveworks/script-indentation
...
Fix indentation of weave script
2015-12-18 09:53:12 +00:00
Bryan Boreham
4ebb13fa94
Fix indentation of netcheck if-statement
2015-12-17 16:23:42 +00:00
Bryan Boreham
5580b7a522
Add more steps to the process
2015-12-17 13:55:26 +00:00
Adam Harrison
bda8cff7c1
Merge branch '1.4'
2015-12-17 13:09:20 +00:00
Adam Harrison
ff9a6b91a4
Merge branch 'latest_release_doc_updates' into 1.4
2015-12-17 13:07:48 +00:00
Adam Harrison
86fc37a968
Merge pull request #1799 from weaveworks/plugin-docs
...
Extend plugin docs
2015-12-17 12:24:12 +00:00
Bryan Boreham
37ae169323
Merge remote-tracking branch 'origin/master' into latest_release_doc_updates
2015-12-17 11:48:23 +00:00
Bryan Boreham
1ce0df4e94
Explain multiple networks
2015-12-17 11:42:41 +00:00
Bryan Boreham
db5ba61915
Improve formatting
2015-12-17 11:41:44 +00:00
Bryan Boreham
31006002f3
Add the plugin to the list of images to tag and push
2015-12-17 11:08:00 +00:00
Bryan Boreham
db120fb9be
Add release v1.4.0
2015-12-17 10:30:06 +00:00
Adam Harrison
ea6e171a7f
Merge pull request #1794 from weaveworks/warn-stop-plugin
...
Warn user if weave network is in use on stop or reset of plugin
2015-12-17 10:27:58 +00:00
Bryan Boreham
246cb76e50
Add note to docs about not removing the plugin
2015-12-17 10:26:08 +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
7015ab8717
Merge pull request #1780 from weaveworks/1748-no-with-dns
...
Remove WITH_DNS variable from weave script
2015-12-16 15:59:24 +00:00
Bryan Boreham
67195bc9f3
Remove WITH_DNS variable and deprecate --with-dns option to 'weave run'
2015-12-16 14:55:35 +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
cbaa92dcb2
Revert "don't broadcast-gossip other peer when adding a connection"
...
while we consider how to fix it properly.
This reverts commit cbb2ad018d .
2015-12-16 13:46:37 +00:00
Bryan Boreham
f09d87c112
Merge pull request #1796 from weaveworks/gossip-test-connection-mistake
...
fix gossip test connection peer initialisation and connection deletion mistakes
2015-12-16 13:36:50 +00:00
Adam Harrison
7a8bba4d95
Merge pull request #1776 from weaveworks/1752-plugin-multicast
...
Plugin optional multicast route
2015-12-16 13:28:03 +00:00
Bryan Boreham
e6e414a017
Merge pull request #1795 from weaveworks/issues/1772-fix-fastdp-address-already-in-use
...
Introduce limited retry on vxlan vport creation. LGTM; fixes #1772 .
2015-12-16 13:22:50 +00:00
Matthias Radestock
81df06b3f4
fix DeleteTestGossipConnection
...
This is a one-sided operation, so we shouldn't be touching the
remote's Peers.
Also fix the associated test... When both 1 and 2 have lost their
connection to 3, they no longer have a route to 3 and hence gc it.
And because they no longer have a route, gossip from them won't get
through to 3.
2015-12-16 13:18:05 +00:00
Matthias Radestock
5401037743
refactor: inline mockGossipConnection.Connect
...
Also change Start() order in AddTestGossipConnection to be more
pleasing to the eye; the order isn't actually important.
2015-12-16 12:45:12 +00:00
Matthias Radestock
9d9768ee6f
fix incorrect peer initialisation on test gossip connections
...
We were creating peers with NewPeerFrom, which copies the Version (but
not connections). That's not what happens for a real connection, where
remote peers are always created with an initial version of 0.
The mistake results in brokenness: when we subsequently receive a
topology update for that peer with the same version then we ignore it,
even though the update contains connection information which is new to
us.
Related, it is conceptually wrong to call FetchWithDefault on the
remote router. That is not what happens for a real connection - the
FetchWithDefault occurs in the symmetric counterpart.
2015-12-16 12:33:07 +00:00
Bryan Boreham
3043217b2c
Extend --no-multicast-route test to plugin
2015-12-16 12:17:25 +00:00
Bryan Boreham
afcb84d42c
Set up static route for multicast, with option to turn off
2015-12-16 12:17:25 +00:00
Adam Harrison
d5aad8f8d2
Introduce limited retry on vxlan vport creation
...
The kernel processes vport deletion asynchronously, meaning that we can
sometimes fail to recreate vxlan vports on startup with an EADDRINUSE
error. We compensate by retrying a small number of times with a short
sleep on encountering this error, failing as before on a different error
or exhaustion of retries.
2015-12-16 11:51:28 +00:00
Bryan Boreham
c46febd7df
Fix Makefile so weavewait* are statically linked
...
- the `-tags netgo` was being ignored by an interaction with the newer tags
2015-12-16 11:45:10 +00:00
Bryan Boreham
f880da4827
Merge pull request #1722 from weaveworks/fdp-high-level-overview
...
Add fast datapath high level overview
2015-12-16 10:49:31 +00:00
Bryan Boreham
85c9cf43f7
Merge pull request #1689 from weaveworks/1586-alternate-docker-sock
...
Support weave script running against non-standard DOCKER_HOST.
2015-12-16 10:35:46 +00:00
Adam Harrison
ce90d2389b
Merge pull request #1790 from weaveworks/1783-veth-name
...
Prefix interface names with 'veth' so NetworkManager ignores them
2015-12-16 10:34:32 +00:00
Bryan Boreham
d8cfbc4e08
Launch the proxy via unix socket in last test
...
- proxy copies permissions from $DOCKER_HOST socket if available, so in
this case it was not accessible because we were booting via a TCP
socket
2015-12-16 10:14:44 +00:00
Paul Bellamy
88fad251aa
add test for proxy against docker on non-standard unix socket
...
Means we need to rebuild the gce images
(also small improvement re tmpdir)
2015-12-16 10:14:15 +00:00
Bryan Boreham
1a1d8b7c74
Prefix interface names with 'veth' so NetworkManager ignores them
2015-12-16 10:01:57 +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
Paul Bellamy
ca1cce3232
Makefile should use DOCKER_HOST env var
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
41482aff01
Update plugin README and documentation
2015-12-15 16:52:37 +00:00
Bryan Boreham
791fc9d6b1
Return fake 'gateway address' to avoid requiring consensus during initialization
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
1539009362
Simple smoke-test for 'local' plugin network
2015-12-15 16:47:33 +00:00
Bryan Boreham
9542b77a34
Extend smoke-test framework for weaveplugin
2015-12-15 16:47:33 +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
e2f936fde3
Rework version check
...
- extract function so we can use the check elsewhere
- use shell variable expansion rather than exec-ing 'cut'
2015-12-15 16:40:43 +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
e12dbb4605
Disable pcap optimisation of encrypted sleeve
...
Prior to optional encryption support, enabling encryption disabled the
fast datapath overlay (because it doesn't support encryption) but left
the OVS datapath netdev in place for bridging (so that users could
switch encryption on and off without resetting the bridge). In this
situation the ODP miss handler is guaranteed to be invoked for every
packet, so as an optimisation the weave script configured the router to
use pcap to capture packets from the bridge as that is slightly more
efficient. The introduction of optional encryption means the guarantee
no longer holds, and so the optimisation must be removed.
2015-12-15 14:51:21 +00:00
Bryan Boreham
c341399498
Document 'json' function
2015-12-15 13:52:28 +00:00
Bryan Boreham
d1ba4ab7f4
Merge pull request #1755 from weaveworks/issues/1741-weave-no-multicast-route
...
Add options to disable multicast route - LGTM; fixes #1741
2015-12-15 10:17:09 +00:00
Adam Harrison
85d4b1f137
Smoke test trusted subnets
2015-12-14 12:13:16 +00:00
Adam Harrison
b9792f8f96
Document trusted subnets
...
Update features and troubleshooting markdown.
2015-12-14 12:13:16 +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
d434b50dfc
Include trust level in features exchange
...
Add a 'Trusted' feature to the protocol exchange which indicates whether
the remote considers us to be reachable via a secure network; overlay
encryption will be disabled in the event that both peers agree. For
backwards compatibility purposes a default value of untrusted is assumed
if the feature is missing.
2015-12-14 12:12:25 +00:00
Adam Harrison
96f69583e7
Smoke test --no-multicast-route
2015-12-14 11:53:06 +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
Adam Harrison
98a7d3fc99
weave run and weave attach accept --no-multicast-route
2015-12-14 11:53:06 +00:00
Bryan Boreham
6fd0f121a0
Add a 'json' function for 'weave report -f'
2015-12-12 14:44:54 +00:00
Bryan Boreham
68d6c262d1
Remove --with-dns option from proxy
2015-12-12 14:12:39 +00:00
Bryan Boreham
1d9ef76080
Remove mention of --with-dns option; see #1748 and #1754
2015-12-12 13:58:14 +00:00
Bryan Boreham
b51b1adfcd
Merge pull request #1767 from weaveworks/1765-test-gossip-surrogate-failure
...
better emulation of connections in gossip tests. Fixes #1765 .
2015-12-11 17:20:23 +00:00
Matthias Radestock
b1cb0c298d
refactor
2015-12-10 14:37:30 +00:00
Matthias Radestock
d7835eabfb
lazy route calculation
...
Instead of calculating all routes in one go, we calculate them when
needed.
Except for unicast routes, and broadcast routes from ourself. We still
calculate those eagerly because they are needed to route locally
captured/fdp-missed packets, and performing route calculcations in
that critical path increases the chances of dropping packets due to
not keeping up.
Well, technically only the established & symmetric routes are needed
for the data plane, but we might as well calculate the equivalent
routes for the control plane - it keeps the code simple and uniform.
Calculating all routes is O(n_peers^2), so this change represents a
huge saving in situations where not all of them are needed, which is
quite common, especially when the topology is evolving rapidly.
One downside of this new approach is that we can no longer suppress
OnChange callbacks when the data plane routes remain unchanged. This
means we will be purging the FDP flows more frequently than before,
e.g. when only the control plane topology changed, e.g. new
connections appeared that haven't been marked as 'established'
yet. It's a small price to pay, fixable if we really care, and in any
case making FDP flow invalidation more fine-grained would be a better
approach.
Fixes #1761 .
2015-12-10 14:20:59 +00:00
Matthias Radestock
ab902b45aa
refactor: introduce a helper to reduce duplication
2015-12-10 10:56:18 +00:00
Matthias Radestock
ed14561afd
refactor: rename
2015-12-10 10:54:20 +00:00
Matthias Radestock
86d2db5cc2
better emulation of connections in gossip tests
...
real Connections do not process gossip until after AddConnection.
mockChannelConnection wasn't behaving in that way, which resulted in
some sporadic test failures since it would cause some gossip to get
processed too early, which in turn would trigger gc of some of the
just-received peers, which we would then find missing in the test
assertions.
To fix this we introduce a latch on mockChannelConnection which closes
when the remote end is ready to receive gossip. Effectively this
emulates the entering of LocalConnection.receiveTCP after the call to
AddConnection completes.
Unfortunately an open latch will cause sendPendingGossip to block. We
get around that by abandoning checks in "half-connected" connection
states.
Fixes #1765 .
2015-12-10 10:54:10 +00:00
Bryan Boreham
700851cdd5
Add a note about connecting up peers
2015-12-10 10:40:48 +00:00
Adam Harrison
c3e1f5a6c6
.gitignore tls binary
2015-12-10 10:08:04 +00:00
Bryan Boreham
9bf18b1761
Merge pull request #1769 from weaveworks/ditch-run-with-timeout
...
Wins the prize for "best add-to-delete ratio in a PR this year"
2015-12-09 13:56:54 +00:00
Matthias Radestock
1374e4c4de
ditch RunWithTimeout test helper
...
It breaks stack traces on failure.
We can just rely on running `go test -timeout ...` instead, which we
already do in tools/test.
2015-12-09 13:20:57 +00:00
Matthias Radestock
0ef57a102f
cosmetic: remove unnecessary comment
2015-12-09 12:37:53 +00:00
Adam Harrison
1c7954a43d
Merge pull request #1728 from weaveworks/1676-ipam-plugin
...
Docker IPAM plugin
2015-12-09 11:07:46 +00:00
Matthias Radestock
be1dc8ef96
Merge branch '1.3'
2015-12-09 10:34:52 +00:00
Matthias Radestock
18fc6ccc03
remove redundant code in test
2015-12-09 10:32:14 +00:00
Matthias Radestock
7ec46983aa
Merge branch '1.3'
2015-12-08 23:08:35 +00:00
Matthias Radestock
eddcf93942
oops
2015-12-08 23:08:19 +00:00
Matthias Radestock
42807f7b8a
Merge branch '1.3'
2015-12-08 23:07:06 +00:00
Matthias Radestock
0b521272ae
prevent peer duplication in tests
...
and correct the test assertions accordingly - they make more sense
now.
Fixes #1766 .
2015-12-08 23:06:02 +00:00
Bryan Boreham
ecd93bbfe4
Resolve weave IP every time we need it, in case it changed
2015-12-08 16:59:34 +00:00
Bryan Boreham
a6f07fbaac
Move baseUrl usage up to httpVerb
2015-12-08 16:59:34 +00:00
Bryan Boreham
f87876c1c3
Fetch the default subnet from weave to use as the ipam driver 'pool'
2015-12-08 16:59:34 +00:00
Bryan Boreham
ec3de1a072
Introduce ipam plugin
2015-12-08 16:59:32 +00:00
Bryan Boreham
c1d2c159f0
Expand listener skeleton to support IPAM driver
2015-12-08 16:58:55 +00:00
Bryan Boreham
9f86e2ba43
Moved net plugin to its own directory
2015-12-08 16:58:53 +00:00
Adam Harrison
d0be36dc9b
Merge branch '1.3'
...
Conflicts:
Makefile
2015-12-08 16:53:47 +00:00
Adam Harrison
af604a1477
Merge pull request #1760 from weaveworks/make-test-tls
...
Move test/tls program into Makefile so it builds inside the build container
2015-12-08 16:41:59 +00:00
Bryan Boreham
c981cff450
Move build of test/tls program into Makefile so it builds in the build container
2015-12-08 16:14:53 +00:00
Bryan Boreham
ab1033c26c
Merge pull request #1736 from weaveworks/remove-unknown-peer-error
...
remove UnknownPeerError for quicker convergence and efficiency. LGTM.
2015-12-04 11:00:05 +00:00
Adam Harrison
01706df7c8
Merge pull request #1753 from weaveworks/1751-remove-unused-vars
...
remove CLIENT_TLS_ENABLED and DOCKER_CLIENT_TLS_VERIFY, as they're unused
2015-12-04 10:19:09 +00:00
Adam Harrison
827a7c1cf1
Merge branch '1.3'
2015-12-04 10:09:15 +00:00
Adam Harrison
d14d9933b4
Merge pull request #1750 from weaveworks/add-some-quotes
...
quote $@
2015-12-04 10:08:34 +00:00
Adam Harrison
af946893f0
Merge pull request #1749 from weaveworks/remove-eqeq-non-posixism
...
'==' is not POSIX
2015-12-04 10:08:26 +00:00
Paul Bellamy
245ae5e987
remove CLIENT_TLS_ENABLED and DOCKER_CLIENT_TLS_VERIFY, as they're unused
2015-12-02 17:17:04 +00:00
Matthias Radestock
29f3d711c6
Merge branch '1.3'
2015-12-02 15:34:07 +00:00
Matthias Radestock
3909936cc8
cosmetic(ish) use PROXY_PORT
2015-12-02 15:33:38 +00:00
Matthias Radestock
0602c91c54
quote $@
2015-12-02 15:28:41 +00:00
Matthias Radestock
a7bdb02a2b
Merge remote-tracking branch 'upstream/master'
2015-12-02 14:33:28 +00:00
Matthias Radestock
2cfaf5a119
Merge branch '1.3'
2015-12-02 14:23:28 +00:00
Matthias Radestock
20a48f05b3
fix (harmless) typo
2015-12-02 14:22:23 +00:00
Matthias Radestock
4e70fb7f9d
'==' is not POSIX
2015-12-02 14:20:29 +00:00
Adam Harrison
1f438dbf71
Merge pull request #1740 from weaveworks/1694-symlink-into-var-run-2
...
Symlink sockets to /var/run/weave/weave.sock from inside the proxy
2015-12-02 14:12:02 +00:00
Adam Harrison
619d0e2bdd
Merge pull request #1730 from weaveworks/1725-plugin-dns
...
Fix DNS integration in Weave docker plugin
2015-12-02 09:49:21 +00:00
Bryan Boreham
ec420c66d4
Review feedback
2015-12-01 16:47:47 +00:00
Paul Bellamy
ac1cf633c7
clarify some variable shadowing
2015-12-01 16:16:39 +00:00
Paul Bellamy
6f25d2170d
[proxy] have symlinking respond to WEAVE_DEBUG not DEBUG
2015-12-01 15:51:16 +00:00
Paul Bellamy
295a2ced32
[proxy] treat addrs prefix with / as unix addrs
2015-12-01 15:45:32 +00:00
Matthias Radestock
cbb2ad018d
don't broadcast-gossip other peer when adding a connection
...
This is more efficient since broadcasting about other peers is
strictly redundant. Any change to the peers will be broadcast by
those peers anyway. And SendAllGossipDown takes care of informing new
peers about others on first connect, and periodic gossip take care of
missed broadcasts.
The only reason we did broadcast about the remote peer is to reduce
the liklihood of UnknownPeerError and the associated throwing away of
gossip. This was always a bit of kludge, and is no longer necessary
since UnknownPeerError is gone.
Now peers only ever broadcast information about themselves. Which,
unlike information about other peers, is always authorative and most
up-to-date. Which is nice.
2015-12-01 13:10:06 +00:00
Matthias Radestock
7e15eabe65
remove UnknownPeerError
...
when encountering an unknown peer in received gossip, rather than
ignoring the entire gossip we create a placeholder Peer. This has
version 0 and uid 0, which means it will be replaced by any complete
peer information subsequently received via gossip.
2015-11-30 16:17:16 +00:00
Bryan Boreham
eb9b5b535f
Merge branch '1.3'
2015-11-30 16:16:09 +00:00
Bryan Boreham
a13351a9eb
Merge pull request #1712 from weaveworks/issues/1577-interpose-bridge-netdev
...
Optional intermediary bridge netdev. Fixes #1577 .
2015-11-30 15:54:14 +00:00
Bryan Boreham
74fdf6beec
Merge pull request #1732 from weaveworks/1731-merge-peer-has-short-id
...
update Peer.HasShortID as part of topology merge
Fixes #1731
2015-11-30 15:53:23 +00:00
Paul Bellamy
cd7c88e5a5
[proxy] Symlink sockets to /var/run/weave/weave.sock from inside the proxy
...
We copy docker.sock owner to symlinks. Permissions are not copied,
because the permissions will inherit from the target.
use versioned exec image to create symlinks
2015-11-30 15:45:30 +00:00
Bryan Boreham
a22b88ed89
Track endpoints so we can register the right address with DNS
2015-11-30 14:27:33 +00:00
Bryan Boreham
5eb99fe5ef
Get container IP for various networks
2015-11-30 14:27:33 +00:00
Bryan Boreham
85e465cfa4
Eliminate 'dockerer'
2015-11-30 14:27:33 +00:00
Bryan Boreham
e101dde62e
Extract 'api' package
2015-11-30 14:27:33 +00:00
Adam Harrison
1980ffea30
Merge pull request #1702 from weaveworks/issues/1639-ipam-diagnostics
...
Show some IPAM stats with `weave status ipam`
2015-11-30 14:20:13 +00:00
Adam Harrison
0935e0a13d
Merge branch '1.3'
2015-11-30 14:09:44 +00:00
Adam Harrison
b2b68119fc
Merge pull request #1719 from weaveworks/issues/1653-make-dir
...
Ensure /var/run/weave directory exists before telling Docker to use it
2015-11-30 13:57:37 +00:00
Adam Harrison
4420057d4f
Merge pull request #1716 from weaveworks/issues/1714-complete-addr-1.3
...
Ensure `weave connect` attempts connection immediately
2015-11-30 13:52:13 +00:00
Bryan Boreham
bd2b8df7c5
Refactor to use Weave's docker client and watcher
2015-11-30 13:25:20 +00:00
Matthias Radestock
068bbe0837
Merge branch '1.3'
2015-11-30 13:19:21 +00:00
Bryan Boreham
7e0e1fbaad
Adjust formatting after review feedback; hostnames up to 14 chars will now align
2015-11-30 12:07:59 +00:00
Bryan Boreham
9723476392
Merge pull request #1708 from weaveworks/gce-connect-fix
...
Connect to gce boxes as vagrant so we can access docker unix socket
2015-11-30 11:45:30 +00:00
Matthias Radestock
9dee2f2230
update Peer.HasShortID as part of topology merge
...
This was missing.
There are two parts to this change:
1. updating the Peers.byName mapping when HasShortID changed (in
addition to the existing update on ShortID change). We need to be
careful about the sequencing here - both ShortID and HasShortID must
be set between the calls to deleteByShortID and addByShortID, since
the former is meant to delete the existing entry (hence use the old
values) and the latter add the new entry (hence use the new values).
2. update a peer when the received info has the same version and UID
but the current record has HasShortID=false, and the received info has
HasShortID=true. This caters for the case where we receive an update
about a weave 1.2+ peer first via a pre-1.2 peer (which does not
transmit ShortIDs, and always sets HasShortID=false) and subsequently
via a 1.2+ peer. The former update will force us to communicate with
that peer over the 'sleeve' overlay. We want to accept the latter
update, even though the version is the same, in order to update the
ShortID and HasShortID, so we can switch to fastdp.
Fixes #1731 .
2015-11-29 16:32:50 +00:00
Matthias Radestock
175f38414e
cosmetic
2015-11-28 20:15:57 +00:00
Bryan Boreham
8bbf8231d2
Show which range is being allocated in weave report
2015-11-26 17:24:41 +00:00
Bryan Boreham
2fbbb802bd
Don't assert invariants when printing status
...
- if it's broken you might appreciate being able to print it out
2015-11-26 17:24:41 +00:00
Bryan Boreham
cb65a80dce
Reworded IPAM service description in weave status
...
following review in #1702
2015-11-26 17:24:41 +00:00
Bryan Boreham
3a9bcbcf6b
Remove specialised knowledge of IPAM from weave status formatter
...
and unnecessary info from `weave report` output
2015-11-26 17:24:40 +00:00
Bryan Boreham
e38018ab1e
Add warning to main ipam status if all IPs owned by unreachable peers
2015-11-26 17:23:49 +00:00
Bryan Boreham
044c6474b2
Remove counting of ring tokens, since it isn't useful to end-user.
...
Previously the count of tokens was claimed to be a count of addresses in use,
which is incorrect.
Also rename `appendAddresses` to `appendOwned` since it doesn't involve addresses.
2015-11-26 17:23:49 +00:00
Bryan Boreham
5f42a4d95e
Hold stats by peer identity not nickname
...
so we can print the peer name for each ownership.
Also avoid crashing if we don't own anything
2015-11-26 17:23:49 +00:00
Bryan Boreham
6d3fd6da07
Simplify ipam status format
...
Don't use the word "universe" in user-visible output; it is an internal term.
Removed everything but owned ranges from 'weave status ipam' results, for consistency with similar functions
2015-11-26 17:23:49 +00:00
Alvaro Saurin
34e7996f2f
Show some IPAM status at /status/ipam
2015-11-26 17:23:47 +00:00
Bryan Boreham
f2d7a28258
Add docker plugin README
2015-11-26 17:18:59 +00:00
Adam Harrison
ba6f8da1e4
Merge pull request #1670 from weaveworks/issues/1634-block-6783-6784
...
Forbid traffic to the Weave port from containers
2015-11-26 16:52:34 +00:00
Adam Harrison
0a5e79891d
Merge pull request #1724 from weaveworks/1674-move-plugin
...
Move Weave docker plugin into this repo
2015-11-26 15:34:15 +00:00
Bryan Boreham
901bf63cb8
Fix printf error caught by lint
2015-11-26 15:19:57 +00:00
Bryan Boreham
350b8efb0b
Move Weave docker plugin into this repo
2015-11-26 14:40:28 +00:00
Adam Harrison
2f69b4d190
Mention WEAVE_MTU
2015-11-26 10:39:41 +00:00
Adam Harrison
57a15a4e96
Add fast datapath high level overview
2015-11-26 10:36:52 +00:00
Adam Harrison
13042002d7
Merge pull request #1663 from weaveworks/issues/1592-fdp-miss-counter
...
Add FDP miss counter to reports
2015-11-25 17:21:03 +00:00
Adam Harrison
8ac745b4e5
Lock read of miss counter
2015-11-25 17:05:19 +00:00
Adam Harrison
8a4f038ec4
Merge pull request #1662 from weaveworks/issues/1571-upstream-dns-report
...
DNS upstream servers report
2015-11-25 16:47:14 +00:00
Adam Harrison
890522f6f4
Add hidden weave bridge-type command
2015-11-25 16:31:32 +00:00
Adam Harrison
c8aa032051
Eliminate function name stutter
2015-11-25 16:31:32 +00:00
Adam Harrison
9830c146d0
The bridge netdev is always named weave
2015-11-25 16:31:32 +00:00
Adam Harrison
00c9164fdb
Pass WEAVE_NO_BRIDGED_FASTDP to remote for testing
2015-11-25 16:31:32 +00:00
Adam Harrison
a31e7118b4
Optional intermediary bridge netdev
2015-11-25 16:31:32 +00:00
Matthias Radestock
2058ce3f3a
refactor: change Routes.RandomNeighbours return for consistency
...
PeerNameSet -> []PeerName, which is what the other functions
return. This is also easier to deal with at the call site.
2015-11-25 14:46:41 +00:00
Matthias Radestock
61e3bf4a20
cosmetic(ish)
2015-11-25 14:32:34 +00:00
Bryan Boreham
ea5bae711b
Ensure /var/run/weave directory exists before telling Docker to use it
2015-11-25 13:56:09 +00:00
Bryan Boreham
44a2c5fdff
Merge pull request #1718 from weaveworks/constant-spacetime-connection-shutdown
...
LGTM. prevent unbounded number of goroutines for connection shutdown
2015-11-25 11:22:08 +00:00
Matthias Radestock
3b43960779
prevent unbounded number of goroutines for connection shutdown
...
We need Connection.Shutdown to be non-blocked, and the way we achieved
this is by spawning a goroutine. However, there can be a potentially
unbounded number of Connection.Shutdown invocations. For example, if
the TCP connection has gone bad then any Connection.SendProtocolMsg
invocation will end up invoking Connection.Shutdown. There can be many
such invocations until the Connection has been removed from the
various data structures (e.g. LocalPeer.connections and
GossipSender.senders). Hence we can end up with with an unbounded
number of spawned goroutines.
To fix this, we introduce a one-element error channel on the
connection. Connection.Shutdown does a non-blocking send on that, and
the Connection.actorLoop reads from it and terminates.
This will throw away all but the first error encountered, but that is
fine and not much different from what was happening before (where we'd
throw away all but one of the errors encountered).
2015-11-25 11:06:20 +00:00
Bryan Boreham
89f27ec99a
Set default port number on address before checking in InitiateConnections, to fix #1714
2015-11-24 14:55:21 +00:00
Adam Harrison
82cf4358ce
Add release v1.3.1
2015-11-23 12:06:10 +00:00
Paul Bellamy
0f9b117744
Connect to gce boxes as vagrant so we can access docker unix socket
2015-11-20 16:54:41 +00:00
Adam Harrison
c420c21219
Merge pull request #1707 from weaveworks/revert-1696-1694-symlink-into-var-run
...
Revert "Automatically symlink /var/run/*.sock sockets to /var/run/weave/*.sock"
2015-11-20 16:27:04 +00:00
Paul Bellamy
3bae4b0d93
Revert "Automatically symlink /var/run/*.sock sockets to /var/run/weave/*.sock"
2015-11-20 16:23:40 +00:00
Adam Harrison
1432bd7a81
Merge pull request #1696 from weaveworks/1694-symlink-into-var-run
...
Automatically symlink /var/run/*.sock sockets to /var/run/weave/*.sock
2015-11-20 16:23:12 +00:00
Adam Harrison
bdcf930e25
Merge branch '1.3'
2015-11-20 11:08:49 +00:00
Adam Harrison
2e42d74c59
Merge pull request #1706 from weaveworks/1683-update-docker-1.3
...
Raise minimum Docker version to 1.6
2015-11-20 11:06:00 +00:00
Bryan Boreham
bbf26fc3e8
Raise minimum Docker version to 1.6 to address #1683
2015-11-20 10:44:45 +00:00
Bryan Boreham
6dcc42cdeb
Merge branch '1.3'
2015-11-20 10:33:38 +00:00
Bryan Boreham
385b0aa07f
Fix typo in -tls info string
2015-11-20 10:33:20 +00:00
Bryan Boreham
f2b1ee3398
Merge branch 'latest_release_doc_updates' into 1.3
2015-11-20 10:30:28 +00:00
Bryan Boreham
2a2c60201f
Merge pull request #1699 from weaveworks/issues/1693-fix-proxy-docs-tls-args
...
Fix erroneously hyphenated Docker TLS arguments; Fixes #1693 .
LGTM
2015-11-20 10:27:34 +00:00
Matthias Radestock
53749156a7
Merge branch '1.3'
2015-11-19 20:58:14 +00:00
Matthias Radestock
ee12b34334
eliminate a gossip inefficiency and dormant bug
...
Fixes #1704
2015-11-19 20:57:27 +00:00
Matthias Radestock
b5a4aefe8b
never broadcast empty nameserver gossip
2015-11-19 18:28:37 +00:00
Bryan Boreham
c2d5cab1b8
Merge remote-tracking branch 'origin/1.3'
2015-11-19 15:30:20 +00:00
Bryan Boreham
f25af8f7d6
Merge pull request #1698 from weaveworks/1697-copy-on-write-gossip-data
...
make GossipData immutable; Fixes #1697 . Fixes #1450 . Fixes #1452 .
2015-11-19 14:58:32 +00:00
Paul Bellamy
33648b083c
SSH into test vms on gce as 'vagrant' user
2015-11-19 14:10:52 +00:00
Alvaro Saurin
eb79711e0a
Added flow misses count
2015-11-19 15:05:16 +01:00
Alvaro Saurin
03ce6052cc
Updated docs
2015-11-19 14:54:37 +01:00
Alvaro Saurin
7992bf4177
DNS upstream servers report
2015-11-19 14:54:23 +01:00
Alvaro Saurin
ddb390d5ec
Forbid traffic to the Weave port from other containers
...
Make sure we have the Docker bridge IP before adding/removing iptables rules
2015-11-19 14:46:28 +01:00
Matthias Radestock
1500b1dc00
refactor: extract nameserver GossipData.copy
...
and remove a self-evident comment
2015-11-18 11:30:40 +00:00
Adam Harrison
9263d3e82c
Fix erroneously hyphenated Docker TLS arguments
2015-11-18 10:24:46 +00:00
Adam Harrison
02b7fd53ed
Merge tag 'v1.3.0' into latest_release_doc_updates
...
Resetting doc update branch for 1.3.0 release.
2015-11-18 10:14:10 +00:00
Matthias Radestock
3cd199e852
make GossipData immutable
...
The same piece of GossipData can be shared and subject to different
Merge operations. We either need to copy the data when we share it, or
create copies on modification, i.e. copy-on-write.
We choose the latter, since it is more efficient and there is just one
mutating operation.
Fixes #1697 .
2015-11-17 20:13:46 +00:00
Paul Bellamy
77bc22baf5
[proxy] Auto-symlink /var/run/*.sock in from /var/run/weave/*.sock
...
Avoids the obscure warning for users
2015-11-17 17:25:21 +00:00
Paul Bellamy
f57988761c
Revert "Revert "Merge pull request #1580 from weaveworks/1579-launch-proxy-mount-h""
...
This reverts commit 7987d09438 .
2015-11-17 17:15:28 +00:00
Adam Harrison
7987d09438
Revert "Merge pull request #1580 from weaveworks/1579-launch-proxy-mount-h"
...
This reverts commit 262352f8bb , reversing
changes made to 312691376a due to a bug
whereby `weave env` returns a unix domain socket with an incorrect path.
This change will be superceeded by #1694 .
2015-11-17 16:28:31 +00:00
Adam Harrison
262352f8bb
Merge pull request #1580 from weaveworks/1579-launch-proxy-mount-h
...
[proxy] dynamically mount -H dirs into the proxy when launching
2015-11-17 14:52:17 +00:00
Paul Bellamy
e8c56a8e8e
Review Feedback
2015-11-17 14:49:50 +00:00
Matthias Radestock
312691376a
Merge remote-tracking branch 'upstream/master'
2015-11-17 13:57:08 +00:00
Matthias Radestock
a9611c782b
cosmetic: move comment
2015-11-17 13:56:18 +00:00
Adam Harrison
bcc70b36fd
Merge pull request #1679 from weaveworks/1539-no-detect-tls-flag
...
[proxy] add --no-detect-tls flag, and proxy always tries to detect TLS.
2015-11-17 13:55:43 +00:00
Matthias Radestock
9ee3b1bfbd
add some timestamps to multiweave
2015-11-17 10:28:28 +00:00
Paul Bellamy
e80a83b30b
adding work around to the proxy /var/run warning
2015-11-17 09:40:34 +00:00
Paul Bellamy
d80e72dfcd
[proxy] dynamically mount -H dirs into the proxy when launching
...
This lets you use -H unix://*.sock outside /var/run/weave. Using a
socket directly in /var/run (i.e. /var/run/foo.sock), will reintroduce
the bug with namespaces not being GCed, so that is a warning.
2015-11-17 09:40:34 +00:00
Matthias Radestock
d01c26e618
cosmetic: remove outdated comment
...
The deadlock described for SendProtocolMsg (if it was going via the
actor) cannot occur since all sending of broadcasts and gossip by
LocalPeer is mediated by GossipSenders, the interaction with which is
non-blocking.
2015-11-17 09:27:49 +00:00
Matthias Radestock
cab2e11ca9
refactor: simplify per-connection GossipSender gc and creation
...
by putting it in one place and inlining some helper functions
2015-11-16 23:21:33 +00:00
Matthias Radestock
b48994b1b3
cosmetic: move some functions
2015-11-16 23:01:20 +00:00
Matthias Radestock
fb48acddb2
cosmetic: update comment
2015-11-16 19:27:31 +00:00
Paul Bellamy
7d627f7af4
Merge pull request #1673 from weaveworks/1440-cleanup
...
Move some netlink code to upstream library
2015-11-16 14:24:10 +00:00
Paul Bellamy
f458491d88
[proxy] add --no-detect-tls flag, and proxy always tries to detect TLS.
2015-11-13 15:27:27 +00:00
Bryan Boreham
de802f9d76
Work round docker-py assuming busybox is present ( https://github.com/docker/docker-py/issues/852 )
2015-11-13 11:44:08 +00:00
Bryan Boreham
804e6ba586
Cope with changes in docker-py structure.
...
Tests are now in a different directory,
and get sharded by module rather than individually.
2015-11-13 11:08:57 +00:00
Adam Harrison
af3fc82b77
Add release v1.3.0
2015-11-12 16:49:33 +00:00
Adam Harrison
3bb7036cfd
Runner depends on tools
2015-11-12 16:48:56 +00:00
Bryan Boreham
d802eb485b
Merge pull request #1664 from weaveworks/weave-launch-plugin
...
Add plugin support to weave script. LGTM.
2015-11-12 16:04:41 +00:00
Adam Harrison
b4dd9c2490
Add plugin to features doc
2015-11-12 16:01:01 +00:00
Adam Harrison
04ab198e95
Set restart policy to 'always'
...
Docker attempts to recreate networks on startup which means the plugin
container has to be started. If it isn't started automatically by Docker
with a restart policy, it's not possible to start it manually because
Docker is blocked.
2015-11-12 14:58:54 +00:00
Adam Harrison
c345700963
Add plugin to weave status
2015-11-12 14:58:54 +00:00
Adam Harrison
b21afcb78f
Implement weave launch-plugin and weave stop-plugin
2015-11-12 14:56:13 +00:00
Adam Harrison
7f65530b26
weave setup fetches plugin
2015-11-12 14:56:13 +00:00
Bryan Boreham
e230eeb486
Use upstream netlink code
2015-11-12 13:08:56 +00:00
Bryan Boreham
b1b03f3a97
Revert "Remove code coverage as temporary work-around to Docker 1.9 issue"
...
This reverts commit 65fe753a58 .
2015-11-12 11:27:48 +00:00
Bryan Boreham
36ef6d8da2
Merge remote-tracking branch 'origin/1.2'
2015-11-12 11:27:01 +00:00
Bryan Boreham
28bb0dd3b0
Merge pull request #1671 from weaveworks/1666-remove-cont-dir
...
Remove containers directory bind-mount from proxy; fixes #1647 and #1666
2015-11-12 11:25:34 +00:00
Bryan Boreham
79f8a8f909
Merge remote-tracking branch 'origin/1.2'
2015-11-12 10:43:01 +00:00
Bryan Boreham
bfe2513540
Merge pull request #1669 from dpw/fdp-fix-npd
...
Handle the case where Forward returns nil. Fixes #1661 .
2015-11-12 10:38:29 +00:00
Bryan Boreham
2536aef737
Proxy doesn't need to mount the containers dir
2015-11-12 10:28:58 +00:00
Adam Harrison
0661ccdea9
Revert "Revert "Disable restart of docker""
...
This reverts commit 76db732f1b .
2015-11-11 10:10:17 +00:00
Adam Harrison
29f7015e58
Merge pull request #1665 from weaveworks/move-odp-helpers
...
Move ODP helper functions out to their own package
2015-11-11 09:56:24 +00:00
David Wragg
7dc1b50d3b
Handle the case where Forward returns nil
...
Forward can return nil if the remote peer has HasShortID false. That
can happen if we learn about a 1.2 peer from a 1.1 peer and attempt to
connect to it.
This change just fixes the panic. HasShortID will never be set, so we'll
fall back to sleeve. But if that occurs, if can be fixed by a restart of
the affected routers.
2015-11-10 23:17:01 +00:00
Bryan Boreham
682133a56a
Move ODP helper functions out to their own package
2015-11-10 17:09:17 +00:00
Adam Harrison
76db732f1b
Revert "Disable restart of docker"
...
This reverts commit a400a3dd09 .
2015-11-10 10:24:58 +00:00
Matthias Radestock
64aa2b5cc3
refactor: remove weave overlay-isms from mesh
2015-11-09 20:56:04 +00:00
Matthias Radestock
1eed5fd271
cosmetic: don't mention UDP in mesh
2015-11-09 19:47:27 +00:00
Matthias Radestock
dd7ffa4501
code docs: warn against nonce re-use by overlay connection
2015-11-09 19:46:53 +00:00
Adam Harrison
5e79da0c9c
Merge pull request #1658 from weaveworks/tweak-circle
...
Upgrade CI to Docker 1.9 and work round issues
2015-11-09 17:55:27 +00:00
Bryan Boreham
65fe753a58
Remove code coverage as temporary work-around to Docker 1.9 issue
2015-11-09 17:18:59 +00:00
Bryan Boreham
17c835e672
Compress weave.tar to save upload time
2015-11-09 17:18:58 +00:00
Bryan Boreham
fa5bcd0457
Lump some commands together to reduce CircleCI waiting overhead
2015-11-09 17:18:58 +00:00
Bryan Boreham
499d6312b7
Don't need --add-host except in non-FDP case because we put the
...
mappings in the outer /etc/hosts
2015-11-09 17:18:58 +00:00
Bryan Boreham
20d5903696
Update test template name to pull in new Docker version
2015-11-09 17:18:57 +00:00
Adam Harrison
f039221ec9
Merge remote-tracking branch 'origin/create-mesh'
...
Closes #1659 .
2015-11-09 17:16:35 +00:00
Matthias Radestock
dc9f8762ca
move generic communication substrate into its own 'mesh' package
...
This is mostly a matter of moving some files, changing package names,
changing some imports, and changing some type references.
We duplicate the odd constant & global var, and the intmac/macint
functions, since neither 'router' or 'mesh' nor, really,' common' are
a natural home for them.
2015-11-09 16:37:39 +00:00
Adam Harrison
e5c69801a7
Merge remote-tracking branch 'origin/separate-overlay'
...
Closes #1648 .
2015-11-09 16:17:41 +00:00
Matthias Radestock
ab458368de
refactor: move NetworkRouterStatus into its own file
2015-11-09 15:51:11 +00:00
Matthias Radestock
8eb680fcc9
refactor: separate out NetworkRouter-specific status
2015-11-09 15:51:11 +00:00
Matthias Radestock
71b05972f4
refactor: move NetworkRouter into its own file
2015-11-09 15:50:55 +00:00
Matthias Radestock
7deeb8dba5
refactor: separate NetworkRouter from Router
2015-11-09 15:47:08 +00:00
Matthias Radestock
daad190188
refactor: split overlay.go to extract network overlay stuff
2015-11-09 15:47:08 +00:00
Matthias Radestock
7cc0052451
refactor: separate NullNetworkOverlay from NullOverlay
2015-11-09 15:47:07 +00:00
Matthias Radestock
18f8e29af8
refactor: separate NetworkOverlay from Overlay
...
...since connections only need to know about the latter.
2015-11-09 15:47:07 +00:00
Matthias Radestock
d78f6614cc
refactor: separate forwarder from overlay connection
...
...since the main connections only need to know about the former.
We make LocalConnection.Overlay (formerly '.forwarder') public since
the router needs access to it, and it shouldn't be doing that via a
private field.
2015-11-09 15:45:06 +00:00
Bryan Boreham
53ac43202a
Merge pull request #1641 from weaveworks/1554-converge-on-peer-uid-change
...
better convergence when peers restart; fixes #1554 .
2015-11-09 15:09:59 +00:00
Matthias Radestock
bfb050c9cc
better convergence when peers restart
...
Previously when a peer restarted, information about the new
incarnation (i.e. with a different UID) was not accepted by other
peers (and connections would be dropped) unless all knowledge of the
previous incarnation had been purged. This could result in a lot of
connection churn and hence connectivity disruption, and, in some
pathological cases, very slow convergence and hence acceptance of the
new incarnation into the network.
We now no longer drop connections when encountering different
incarnations of a peer. There are two situations when that can happen:
1) on connection establishment
we simply proceed
2) on receipt of gossip
to ensure convergence we
a) treat the UID as an additional discriminator when deciding whether
we should update our information about a peer with that which was
gossiped. Specifically, we update the information we hold when a) the
gossiped version is greater, or b) is the same and the UID is
greater.
b) include the UID in the information we update
c) move our own version number beyond any we receive for ourselves, if
the received UID differs from ours.
With (a) we establishes a total order of peer information across
several incarnations of the same peer. i.e. we consider information to
be fresher if it has a higher version, or the same version and higher
UID. This may seem somewhat counter intutive, since it will generally
treat information about new incarnations as older than old
incarnations, since incarnations always start life with version 1. But
to do better we'd need to establish a total order of incarnations that
matches their temporal occurrence. Which requires some sort of durable
state.
So instead we have (c). Through that we learn the highest version
number of any old incarnation of ourselves that other peers still
hold, and then make sure that our version is greater than
that. Essentially we continue where the old incarnations left
off. It's as if instead of restarting we had simply changed UIDs. And
due to (a) and (b) the information about the new incarnation of
ourselves, now with a higher version, will supersede that of the old
incarnations.
Fixes #1554 .
2015-11-09 14:58:33 +00:00
Matthias Radestock
97622b961c
remove cruft
2015-11-08 13:06:29 +00:00
Matthias Radestock
b7e7c11a57
refactor: make Overlay setting more explicit
2015-11-08 12:29:36 +00:00
Matthias Radestock
59e11e4e8a
refactor: more flexible Routes API
2015-11-08 11:15:31 +00:00
Matthias Radestock
39b0357517
Merge branch '1.2'
2015-11-08 11:04:48 +00:00
Matthias Radestock
878a12002c
set http listen address solely through the weave script
...
Previously it was set by the script only in fastdp mode; and in the
router's main.go otherwise. Yet every interaction of the script with
weave assumes the port is the script's HTTP_PORT=6784. By always
starting the router with options to listen on that port we ensure that
the router is in fact listening where the script expects it to.
In doing this get rid of router.HTTPPort. We do need to hard-code the
port in the proxy instead, but relying on router.HTTPPort was flawed
anyway, for the above reasons.
2015-11-07 18:01:12 +00:00
Matthias Radestock
d3d2863d52
refactor: get rid of const.go
2015-11-07 16:32:23 +00:00
Matthias Radestock
f3f23b43b5
refactor: crypto doesn't need to be a generic overlay feature
2015-11-07 16:14:31 +00:00
Matthias Radestock
006262ed8f
refactor: Connections don't need to know about overlay crypto
2015-11-07 16:10:00 +00:00
Matthias Radestock
519aef86fa
refactor: split crypto code
2015-11-07 15:59:15 +00:00
Matthias Radestock
8bd77c0d47
refactor: get rid of router/utils.go
...
most functions end up in other files in the router package, but a few
land in common.
2015-11-07 15:45:29 +00:00
Matthias Radestock
7a5c910cd5
tiny refactor: inline a tiny single-use fun and move another
2015-11-07 12:44:13 +00:00
Matthias Radestock
4e34f2001c
cosmetic
2015-11-07 11:14:11 +00:00
Matthias Radestock
54b7e2c874
tiny refactor: use checkWarn in a few more places
2015-11-07 11:08:44 +00:00
Matthias Radestock
19f89f7122
remove duplicate test
...
this is already covered in dns_fallback_test
2015-11-07 07:30:53 +00:00
Matthias Radestock
9f25d72a4a
cosmetic
2015-11-07 05:43:20 +00:00
Adam Harrison
3e99b71e0f
Merge pull request #1643 from weaveworks/refactor-forwarder-remote-address
...
Refactor: remove knowledge of overlay connectivity details from Local{Peer,Connection}
2015-11-06 16:02:10 +00:00
Matthias Radestock
fb3b690c5f
refactor: reduce coupling between LocalConnection and Forwarder
2015-11-05 21:27:14 +00:00
Matthias Radestock
18fe553d23
LocalConnection shouldn't have to know about remote UDP address
...
...and generally know less about how overlays establish connectivity.
2015-11-05 20:43:52 +00:00
Matthias Radestock
e7ff6a2191
LocalPeer shouldn't have to know about remote UDP address
...
...and LocalConnection shouldn't have to remember it
2015-11-05 19:32:49 +00:00
Matthias Radestock
ad15e5a234
cosmetic
2015-11-05 19:01:34 +00:00
Matthias Radestock
094c7aa438
cosmetic
2015-11-05 17:24:38 +00:00
Adam Harrison
472ed5a7d3
Merge pull request #1640 from weaveworks/1588-disable-docker-restart
...
Disable restart of docker in test 640
2015-11-05 15:40:01 +00:00
Adam Harrison
f284300870
Merge pull request #1636 from weaveworks/1635-notation
...
Drop use of interval notation when printing ranges
2015-11-05 15:38:40 +00:00
Adam Harrison
ab5f4410b6
Add release v1.2.1
2015-11-05 14:34:13 +00:00
Bryan Boreham
a400a3dd09
Disable restart of docker
2015-11-05 14:20:38 +00:00
Bryan Boreham
c4855e8123
Merge branch '1.2'
2015-11-05 12:41:39 +00:00
Adam Harrison
3abb657777
Document port security
2015-11-05 12:23:17 +00:00
Adam Harrison
4dd63d8f72
Bind the HTTP listener to localhost when fastdp enabled
...
Prevent containers from accessing the weave router control port when
fast datapath is in use.
2015-11-05 12:23:17 +00:00
Bryan Boreham
6c0bdec2c9
Merge pull request #1637 from weaveworks/issues/1632-http-localhost-bind
...
Bind router HTTP listener to localhost when fastdp enabled
LGTM. Fixes #1632
2015-11-05 12:20:20 +00:00
Adam Harrison
d6dd1f269a
Document port security
2015-11-05 12:16:57 +00:00
Bryan Boreham
2bd23f3709
Merge branch '1.2' to pull in latest_release_doc_updates
2015-11-05 12:05:25 +00:00
Bryan Boreham
79dc464b83
Merge branch 'latest_release_doc_updates' into 1.2
2015-11-05 12:04:54 +00:00
Bryan Boreham
3dbd5b11d8
Segregate discussion of range and subnet, and explain subnet a bit
2015-11-05 11:32:06 +00:00
Bryan Boreham
549fd5fe29
Merge branch '1.2'
2015-11-05 11:30:53 +00:00
Bryan Boreham
0ab5c65185
Merge pull request #1630 from weaveworks/issues/1588-improve-proxy-restart-reattach-test
...
Improve proxy restart reattach test reliability
2015-11-05 11:25:31 +00:00
Bryan Boreham
5f4753f881
Segregate discussion of range and subnet, and explain subnet a bit
2015-11-05 10:13:06 +00:00
Bryan Boreham
e03a45f8c5
Update docs to match loss of interval notation
2015-11-05 10:11:43 +00:00
Adam Harrison
67c2d53e59
Bind the HTTP listener to localhost when fastdp enabled
...
Prevent containers from accessing the weave router control port when
fast datapath is in use.
2015-11-04 17:42:24 +00:00
Bryan Boreham
7b01dd9794
Drop use of interval notation
2015-11-04 16:45:16 +00:00
Bryan Boreham
04e50ff02c
Merge branch '1.2'
2015-11-04 16:40:30 +00:00
Bryan Boreham
e57ccdc858
Merge branch 'latest_release_doc_updates' into 1.2
2015-11-04 16:39:43 +00:00
Bryan Boreham
a73a65b48a
Removed obsolete text referring to mixed auto-manual allocation, and clarify Range printout
2015-11-04 16:36:44 +00:00
Adam Harrison
781c805e10
Merge branch '1.2'
2015-11-04 15:32:17 +00:00
Adam Harrison
7c4af88911
Merge pull request #1606 from weaveworks/issues/1578_ufw_ubuntu
...
Add an iptables rule for letting weaveDNS requests in
2015-11-04 15:30:34 +00:00
Alvaro Saurin
0aca173e96
Add an iptables rule for letting weaveDNS requests in
2015-11-04 14:00:26 +01:00
Matthias Radestock
60db57a41c
refactor: remove duplicate isKnownPeer function
2015-11-03 18:11:53 +00:00
Matthias Radestock
df68f7dcb9
Merge branch '1.2'
2015-11-03 17:56:36 +00:00
Matthias Radestock
e95e3cc29d
Merge pull request #1624 from weaveworks/1593-more-peers
...
Better choice of peers for IPAM to transfer ownership to on `weave reset`
Fixes #1593 .
2015-11-03 17:55:40 +00:00
Bryan Boreham
67e9310cc1
Review feedback
2015-11-03 17:01:27 +00:00
Adam Harrison
94984df047
Merge branch '1.2'
2015-11-03 16:57:15 +00:00
Adam Harrison
861bf953bf
Merge pull request #1629 from weaveworks/1626-expose-names
...
Always add 'weave expose -h' argument to DNS
2015-11-03 16:32:13 +00:00
Adam Harrison
06eaac8690
Don't assert ethwe carrier via the proxy
...
The test script runs commands inside containers via docker exec to
ensure the ethwe carrier is up. We must not run these commands via the
proxy because it will interpose weavewait, which will block forever if
attachment has failed (e.g. due to #1556 ).
2015-11-03 15:42:37 +00:00
Adam Harrison
6b9e8816d1
Wait for proxy to become available after docker is restarted
2015-11-03 15:33:37 +00:00
Bryan Boreham
cf9f715a28
Merge branch '1.2'
2015-11-03 15:31:51 +00:00
Bryan Boreham
08e043fea7
Always add 'weave expose -h' argument to DNS, and add smoke-test for this also
2015-11-03 15:23:28 +00:00
Bryan Boreham
54ba1009d3
Merge pull request #1608 from weaveworks/1600-start-networkmode
...
LGTM. Fixes #1600
2015-11-03 15:14:15 +00:00
Adam Harrison
4a6a46fd7b
Merge pull request #1627 from tomwilkie/mv-scheduler
...
Move scheduler to build-tools.
2015-11-03 14:44:52 +00:00
Adam Harrison
0eb7414f72
Merge pull request #1583 from weaveworks/move-runner-to-tools
...
Remove test runner; it now lives in build-tools.git
2015-11-03 14:44:46 +00:00
Tom Wilkie
c02691a70c
Move scheduler to build-tools.
2015-11-03 14:38:42 +00:00
Bryan Boreham
8742957f75
Tweak naming to be closer to code changes in nameserver
2015-11-03 14:15:49 +00:00
Bryan Boreham
ace372cfc6
More extensive choice of transferee
2015-11-03 12:03:28 +00:00
Bryan Boreham
27c5f5f49f
Fix title of test
2015-11-03 12:03:00 +00:00
Paul Bellamy
ec5a1a3977
When container is started in host (or container) networkMode, we mount a noop weavewait, so it can continue
...
review feedback
2015-11-03 10:18:05 +00:00
Adam Harrison
abc653c87d
Fix merge breakage
2015-11-03 10:13:43 +00:00
Matthias Radestock
30a128c00b
Merge branch '1.2'
2015-11-02 20:58:15 +00:00
Matthias Radestock
77c7963bde
Merge pull request #1615 from weaveworks/1603-resort-in-encode
...
Hold DNS entries sorted case-insensitively until just before sending
Fixes #1603 and #1610 .
2015-11-02 20:57:40 +00:00
Bryan Boreham
b80c1343c3
Take steps to avoid the test timing out
2015-11-02 20:40:17 +00:00
Bryan Boreham
e5c5fbcea3
Hold on to the lower-case version of a hostname, rather than re-computing it every time
2015-11-02 20:40:05 +00:00
Bryan Boreham
fc7d04ce73
Condense Entries unit tests with helper function
2015-11-02 20:03:10 +00:00
Bryan Boreham
35f57b3ed2
Move decoding code next to encoding code
2015-11-02 20:01:40 +00:00
Bryan Boreham
ed9ade05ea
Improve merge asserts
2015-11-02 20:01:40 +00:00
Bryan Boreham
f485b729bc
Hold all entries sorted case-insensitively until just before sending, when we re-sort case-sensitively in Encode()
2015-11-02 20:01:40 +00:00
Bryan Boreham
64f7953423
Add unit test to check outbound mixed-case merging
2015-11-02 20:01:40 +00:00
Bryan Boreham
fc1d837501
Extend unit test to cover mixed-case hostnames and daisy-chained gossip;
...
reduce mock gossip timer to 2 seconds to trigger more often during tests.
2015-11-02 20:01:40 +00:00
Matthias Radestock
6a238818da
Merge branch '1.2'
2015-11-02 19:58:37 +00:00
Matthias Radestock
9800c43bfa
refactor(ish): don't use reference in method that doesn't modify
2015-11-02 19:57:17 +00:00
Bryan Boreham
b3cda39b0b
Let IPAM pick any peer we know about to transfer ownership to, when shutting down
2015-11-02 18:34:58 +00:00
Adam Harrison
7e1b7a2fcd
Merge branch '1.2'
2015-11-02 17:28:31 +00:00
Adam Harrison
ccae8d42fd
Merge remote-tracking branch 'dpw/fdp-probe-vxlan' into 1.2
...
Fixes #1599
2015-11-02 17:24:52 +00:00
David Wragg
38f78286c7
Probe whether the kernel has ODP vxlan support
...
It's possible to build that kernel with openvswitch, and vxlan, but
without the vport_vxlan module that glues them together. And at
least one distro has actually done this.
2015-11-02 15:53:16 +00:00
Adam Harrison
c3a53a6ec5
Merge remote-tracking branch 'upstream/1.2'
2015-11-02 15:21:06 +00:00
Bryan Boreham
2bbe6a2ad8
Merge pull request #1622 from weaveworks/fix-miekg-dns-truncation-test
...
LGTM
2015-11-02 15:09:57 +00:00
Adam Harrison
f64f63f675
Handle truncated responses from upstream servers
2015-11-02 15:00:02 +00:00
Adam Harrison
f0fb44f6d4
Update unit test for miekg DNS API change
2015-11-02 13:24:04 +00:00
Paul Bellamy
fa972615e6
Merge pull request #1616 from weaveworks/1549-inspect-wait
...
Make inspect-rewrite wait for start
2015-11-02 11:00:23 +00:00
Bryan Boreham
f7cb2ef25d
have waitForStartByIdent() return an error
2015-10-30 13:46:30 +00:00
Bryan Boreham
949f8bb2e7
Move updateContainerNetworkSettings() into proxy
2015-10-30 13:34:16 +00:00
Bryan Boreham
5eaff802d4
Make inspect-rewrite wait if the start operation is still in progress
2015-10-30 13:34:16 +00:00
Matthias Radestock
b37d428726
Merge branch '1.2'
2015-10-30 01:31:16 +00:00
Matthias Radestock
a6336149f8
guard against chef not running
...
Provisioning on ubuntu/wily64 was tripping over this.
2015-10-30 01:29:21 +00:00
Matthias Radestock
12f5ec40b5
refactor: reduce coupling of nameserver to router
...
The nameserver no longer knows anything about router.Peers and
router.Peer. That only leaves PeerName, Gossip and GossipData.
2015-10-29 23:21:07 +00:00
Matthias Radestock
6a672cf8bc
tiny refactor: more idiomatic referal to process' /proc
2015-10-28 18:23:15 +00:00
Matthias Radestock
036b7d9f66
Merge branch '1.2'
2015-10-28 09:40:50 +00:00
Matthias Radestock
ca6bce3820
Merge branch 'latest_release_doc_updates' into 1.2
2015-10-28 09:20:46 +00:00
Matthias Radestock
9b4f2297b0
drop quotes in eval "$(weave env)"
...
They are unnecessary and unwieldy.
Fixes #1596
2015-10-28 09:19:10 +00:00
Matthias Radestock
355c4bc58e
Merge branch '1.2'
2015-10-28 08:52:01 +00:00
Matthias Radestock
a31b2876d0
Merge pull request #1598 from weaveworks/issues/1584-improved-proxy-router-restart
...
Improved detection of router container restart
Fixes #1584
2015-10-28 08:51:06 +00:00
Matthias Radestock
b697b6e57b
Merge pull request #1597 from weaveworks/issues/1516-weavedns-ignore-foreign-domains
...
Check weaveDNS subdomain on REST PUT
Fixes #1516
2015-10-28 08:50:25 +00:00
Adam Harrison
4792fe6391
Improved detection of router container restart
...
Use the container name in addition to the entrypoint to avoid triggering
reattachment unnecessarily.
2015-10-27 14:41:26 +00:00
Adam Harrison
7408f72de2
Check weaveDNS subdomain on REST PUT
2015-10-27 14:37:57 +00:00
Tom Wilkie
203a3cfdd1
Remove test runner; it now live in build-tools.git
2015-10-23 13:02:00 +00:00
Ilya Dmitrichenko
3a029686e3
Add Pardot script
2015-10-22 15:07:52 -07:00
Matthias Radestock
9fa7b3956d
Merge remote-tracking branch 'upstream/master'
2015-10-22 16:17:55 +01:00
Matthias Radestock
b888ace508
remove superfluous code in ApplyUpdate
...
If the local peer's short ID was updated, we broadcastPeerUpdate at
the end (in unlockAndNotify), so there is no need to include the local
peer in the current update.
Also, reading peers.ourself.Version is bad here - we don't take a lock
and it's written by other goroutines. Doesn't actually break anything
though since it's a uint64 and hence atomic.
2015-10-22 16:12:37 +01:00
Bryan Boreham
2e54efe34d
Stop the proxy last, so we can stop the router
...
before being unable to communicate with docker
when $DOCKER_HOST is pointing at the proxy
2015-10-22 15:45:54 +01:00
Bryan Boreham
94d7f33a03
Merge pull request #1541 from weaveworks/weave-1.2-readme-updates
...
Update README for 1.2 release
2015-10-22 13:22:54 +01:00
Bryan Boreham
11598295cf
Add release v1.2.0
2015-10-22 12:53:57 +01:00
Bryan Boreham
383c3769aa
Try en even bigger sleep
2015-10-22 12:19:57 +01:00
Adam Harrison
caccba18e9
Mention fast datapath port
2015-10-22 11:58:14 +01:00
Paul Bellamy
95ce00e551
moving boot2docker instructions into the readme
2015-10-22 11:58:14 +01:00
David Wragg
85dad58cfe
Pass --privileged for the temporary container in rewrite_etc_hosts
...
Otherwise we run into selinux issues on fedora23 (and probably other
selinux distros).
2015-10-22 11:44:17 +01:00
Bryan Boreham
acdc70f72a
Merge pull request #1560 from weaveworks/1542-proxy-bug-weave-not-running
...
LGTM. Fixes #1542
2015-10-22 10:19:32 +01:00
Paul Bellamy
bc9db72212
[proxy] Add notifyWaiters to fix anticipated race condition.
...
* User makes /start request, and blocks on the waiter
* ContainerStarted fires with ID
* Container goes away
* We try to inspect the container to get the entrypoint, which fails
* Previously, this wouldn't call notifyWaiters and the /start would hang (I expect)
2015-10-22 09:50:12 +01:00
Adam Harrison
7905f81d7e
Merge pull request #1570 from dpw/mac-invalidate-routes
...
Do InvalidateRoutes when a forwarded packet updates a MAC cache entry
2015-10-21 23:54:56 +01:00
Matthias Radestock
2ef9cc6a1c
start temporary containers without networking when possible
...
This is more efficient and TRTTD
Closes #1572 .
2015-10-21 16:52:19 +01:00
Matthias Radestock
2357b69a5f
nicer interface name
...
and more likely to be ignored by NetworkManager
Closes #1567 .
2015-10-21 16:22:16 +01:00
Matthias Radestock
98b47f866b
Merge pull request #1569 from weaveworks/issues/1565-docker-1.9.0-workaround
...
Reorder inspect template to work around docker/docker#17026
Fixes #1565 .
2015-10-21 15:29:59 +01:00
David Wragg
d2dfb0d15d
Do InvalidateRoutes when a forwarded packet updates a MAC cache entry
...
When we get a forwarded packet, we put its source MAC into the MAC cache,
overriding any existing entry. But we could have a flow which says
to forward packets destined to that MAC based on the old entry. Such
a flow could be prolonged indefinitely by attempts to send to the MAC.
This is obviously bad, so do InvalidateRoutes in such cases.
2015-10-21 13:46:18 +01:00
Paul Bellamy
63339c026d
[proxy] return errors when attaching new containers
...
I had implemented this with a promise, but was informed that as
waitForStart is only called once, we are safe to just put the error into
the channel.
2015-10-21 13:05:05 +01:00
Adam Harrison
40922b88f7
Reorder inspect template to work around docker/docker#17026
2015-10-21 12:39:55 +01:00
Bryan Boreham
674c617c16
Merge branch '1.1'
2015-10-21 11:52:49 +01:00
Bryan Boreham
2884b6deca
Add release v1.1.2
2015-10-20 17:06:14 +01:00
Adam Harrison
720862dafb
Merge pull request #1562 from dpw/fdp-create-bridge
...
'weave --local create-bridge' is not compatible with fastdp
2015-10-20 16:37:20 +01:00
David Wragg
5120b4b468
'weave --local create-bridge' is not compatible with fastdp
2015-10-20 16:34:50 +01:00
Adam Harrison
c5f5d4543e
Merge pull request #1518 from weaveworks/401-reattach-weave2
...
Get proxy to re-attach weave router if it restarts
2015-10-20 15:31:13 +01:00
Paul Bellamy
baf92da9f2
Merge pull request #1534 from weaveworks/1531-check-hostconfig
...
Take more care over HostConfig on start request in proxy
2015-10-20 12:18:49 +01:00
Paul Bellamy
526c9c3d73
Add test for {"HostConfig":{}} overriding previous settings, but still connecting to weave
2015-10-20 11:26:29 +01:00
Bryan Boreham
119d87b795
Extract repeated test into function
2015-10-20 11:26:29 +01:00
Bryan Boreham
17b030cca1
Cope with client sending a HostConfig named HostConfig
2015-10-20 11:26:29 +01:00
Bryan Boreham
81c9b3f327
Check that HostConfig parameters supplied on /start are passed to Docker,
...
also what happens when you supply a HostConfig named HostConfig
2015-10-20 11:26:29 +01:00
Bryan Boreham
50198a2159
Don't create a HostConfig accidentally if none was passed in
2015-10-20 11:26:29 +01:00
Bryan Boreham
20c8b1eaf6
Reverse the sense of a test, to simplify the next change
...
and remove unused struct
2015-10-20 11:26:21 +01:00
Bryan Boreham
faf94b033d
Extend test to check we don't overwrite HostConfig
2015-10-20 11:25:06 +01:00
Adam Harrison
342b3d3d08
Merge pull request #1557 from weaveworks/issues/1497
...
Add container FQDN to /etc/hosts
2015-10-20 11:22:22 +01:00
Bryan Boreham
26d43f193e
Move docker restart test above the place where we stop part of weave
2015-10-20 07:07:04 +00:00
Alvaro Saurin
f04ae91c82
Add container FQDN to /etc/hosts
2015-10-19 21:51:38 +02:00
Bryan Boreham
bb5515113f
Make attach-router work in fastdp+encryption case
2015-10-19 15:49:07 +00:00
Bryan Boreham
c09d84efc6
Move setup_router_iface call so we don't kill an already-running router on attach-router
2015-10-19 15:49:07 +00:00
Bryan Boreham
2a99a2a597
Don't fail if the arg we're looking for isn't there
2015-10-19 15:47:44 +00:00
Bryan Boreham
08f6dcf08d
Missing format
2015-10-19 15:47:44 +00:00
Bryan Boreham
284d78c6b2
Update fetch_router_args in line with changes elsewhere
2015-10-19 15:47:44 +00:00
Bryan Boreham
b8b5fb9eae
Review feedback
2015-10-19 15:47:43 +00:00
Bryan Boreham
697ee62d9a
Use entrypoint to detect weave router
2015-10-19 15:47:43 +00:00
Bryan Boreham
20ac0edda8
Try a bigger sleep to get Docker restarted
2015-10-19 15:46:48 +00:00
Bryan Boreham
a1bbb06e2f
Don't need depreciation warnings on internal-only command
2015-10-19 15:46:47 +00:00
Bryan Boreham
a87cc5c3b1
Get the proxy to re-attach the weave router if it sees it restart
2015-10-19 15:46:47 +00:00
Matthias Radestock
5ff740cddc
cosmetic
2015-10-19 15:43:49 +01:00
Matthias Radestock
db9229f485
Merge pull request #1551 from weaveworks/1547-proxy-restart-no-kill-containers
...
Proxy restart shouldn't kill containers
Fixes #1547 .
2015-10-19 13:55:48 +01:00
Paul Bellamy
ace6c01b00
Review feedback
2015-10-19 13:53:20 +01:00
Bryan Boreham
2f4d460c04
Merge pull request #1517 from weaveworks/1385-non-container-dns-add
...
LGTM. Fixes #1385
2015-10-19 12:52:09 +01:00
Matthias Radestock
d5401ae3cb
Merge pull request #1550 from dpw/weave2-eexist
...
Don't fail in launch-router if weave2 already exists
Fixes #1548 .
2015-10-16 21:36:45 +01:00
David Wragg
3482a7f1f1
Don't fail in launch-router if weave2 already exists
...
And delete weave2 on stop-router.
2015-10-16 20:59:06 +01:00
David Wragg
23762e0639
Move repeated 'stop' code into functions
2015-10-16 20:55:44 +01:00
Bryan Boreham
50cc15af3b
Merge pull request #1477 from weaveworks/weave-1374
...
LGTM. Fixes #1374
2015-10-16 18:02:16 +01:00
Paul Bellamy
a0f0367e60
[proxy] don't kill containers when starting the proxy
2015-10-16 15:33:43 +01:00
Adam Harrison
3f08ddefe9
Correct DisplayName implementation
2015-10-16 12:24:38 +01:00
Adam Harrison
debe656f9f
Merge pull request #1522 from dpw/fdp-compat
...
Fast datapath compatibility with 1.1
2015-10-16 11:26:20 +01:00
Alvaro Saurin
4350b6402f
Updated docs
2015-10-16 11:47:07 +02:00
Alvaro Saurin
5d2892f6fc
Test we respect --add-host when rewriting /etc/hosts
...
Simplify some tests
2015-10-16 11:47:07 +02:00
Alvaro Saurin
91f27ddd66
Removed weavehosts
2015-10-16 11:47:07 +02:00
Alvaro Saurin
6a674d0d67
Add hosts when attaching
2015-10-16 11:47:07 +02:00
Alvaro Saurin
0d165487b8
Rewrite /etc/hosts in the containers
2015-10-16 11:47:07 +02:00
Matthias Radestock
bacc5836ea
log listeners
2015-10-16 09:34:20 +01:00
Matthias Radestock
230931a2c9
prevent accidental var shadowing
...
Fixes #1544
2015-10-16 01:05:04 +01:00
Matthias Radestock
61d289f414
Merge branch '1.1'
2015-10-15 18:14:20 +01:00
Matthias Radestock
44255862a9
prevent spurious errors from showing up
...
silly mistake
2015-10-15 18:12:56 +01:00
Matthias Radestock
ed9577150b
suppress spurious errors
2015-10-15 18:01:06 +01:00
Matthias Radestock
80319e7087
Merge branch '1.1'
2015-10-15 17:41:49 +01:00
Matthias Radestock
379048d8fc
make test/setup.sh work under go 1.5
...
Fixes #1543 .
2015-10-15 17:40:51 +01:00
Matthias Radestock
9ac655d774
Merge pull request #1526 from weaveworks/fdp-docs
...
Document fast data path feature
Fixes #1526 .
2015-10-15 17:29:29 +01:00
Adam Harrison
9b17470129
Document fast data path feature
2015-10-15 17:19:13 +01:00
Matthias Radestock
5c114fc6fe
Merge pull request #1536 from weaveworks/1515-print-json
...
Print request and response json when debugging weaveproxy
Fixes #1515
2015-10-15 15:59:35 +01:00
Bryan Boreham
efb12f41b2
Also print intercepted responses
2015-10-15 15:07:02 +01:00
Adam Harrison
813edcfe0a
Merge branch '1.1'
2015-10-15 14:59:29 +01:00
Adam Harrison
dea1405d71
Remove hardcoded docker bridge IP from proxy test
2015-10-15 14:39:56 +01:00
Ilya Dmitrichenko
e7f91b7529
Update screencast preview image
2015-10-15 14:26:39 +01:00
Matthias Radestock
5e8a64508e
Merge remote-tracking branch 'upstream/master'
2015-10-15 14:19:50 +01:00
Matthias Radestock
21ebb7a585
Merge branch '1.1'
...
Conflicts:
Makefile
2015-10-15 14:19:14 +01:00
David Wragg
6edd430538
Use consistent options for all "go get"/"go build" invocations
...
Without this, building with go-1.5 fails with
go get ./prog/weavewait
go install net: open /usr/local/go/pkg/linux_amd64/net.a: permission denied
This makes the options passed too "go get"/"go build" consistent for
all executables. So it should be safe with go-1.4.
Conflicts:
Makefile
2015-10-15 14:16:33 +01:00
Ilya Dmitrichenko
34606e0f9f
Link to the new screencast ( close #1402 )
2015-10-15 14:07:54 +01:00
Matthias Radestock
5f62f9edc7
Merge branch '1.1'
2015-10-15 13:05:35 +01:00
Matthias Radestock
0d2ff55c07
Merge pull request #1535 from weaveworks/1523-rewrite-inspect-failure
...
[proxy] only attempt to rewrite successful inspects
Fixes #1523 .
2015-10-15 13:04:34 +01:00
Matthias Radestock
207ee8667b
Merge pull request #1538 from dpw/detect-no-fastdp-mismatch
...
signal mismatches between WEAVE_NO_FASTDP and the bridge type
Fixes #1533 .
2015-10-14 17:17:35 +01:00
David Wragg
5984ed921e
signal mismatches between WEAVE_NO_FASTDP and the bridge type
2015-10-14 16:33:23 +01:00
Matthias Radestock
aac5fb8c24
Merge pull request #1537 from weaveworks/1502-flakey-test
...
Wait until container exits in test to remove race condition
Fixes #1502
2015-10-14 16:19:20 +01:00
Matthias Radestock
8cfc8b3132
Merge pull request #1528 from weaveworks/weave-env-bug
...
[proxy] Fix bug in weave env/config when passing multiple -H flags
Fixes #1527
2015-10-14 15:50:42 +01:00
Paul Bellamy
0b5ebd7b1d
Wait until container exits in test to remove race condition
2015-10-14 14:53:23 +01:00
David Wragg
35141a4aef
Forward a packet with sleeve if the source or dest peer lacks a short ID
2015-10-14 13:53:59 +01:00
David Wragg
e702234fdc
Don't use a nil FlowOp to mean "discard the packet"
2015-10-14 13:53:34 +01:00
Bryan Boreham
05dbe23563
Print request and response json when debugging
2015-10-14 13:45:51 +01:00
Paul Bellamy
fd07f59d16
[proxy] Fix bug in weave env/config when passing multiple -H flags
...
The echo in proxy_addr was not preserving newlines, so the multiple
addrs were all getting returned
2015-10-14 11:58:10 +01:00
Paul Bellamy
36de840c91
[proxy] only attempt to rewrite successful inspects
2015-10-14 11:28:43 +01:00
David Wragg
b36ffe1c9d
Support peers that don't have short IDs
2015-10-14 11:11:34 +01:00
David Wragg
1f1451e666
Fall back to sleeve when "Overlays" not present in features
2015-10-14 11:11:34 +01:00
David Wragg
1000839309
Merge issues/1505-fast-datapath-weave-status' (PR #1525 )
...
Fast datapath weave status
2015-10-14 11:08:09 +01:00
Adam Harrison
ed4ed5fdcd
Include short peer ID in report JSON
2015-10-13 17:04:56 +01:00
Adam Harrison
eaf1f7cc13
Include overlay diagnostics in report JSON
2015-10-13 17:04:56 +01:00
Adam Harrison
ddfc8c2fa4
Handle JSON report marshalling error
2015-10-13 17:04:56 +01:00
Adam Harrison
91afa7f7f4
Include selected overlay type in connection status
2015-10-13 17:04:56 +01:00
Paul Bellamy
da49e71eb8
Merge pull request #1529 from weaveworks/expose-proxy-tls
...
Expose some tls functions from the proxy for use elsewhere.
2015-10-13 16:09:27 +01:00
Tom Wilkie
5b8ce8ebae
Expose some tls functions from the proxy for use elsewhere.
2015-10-13 14:56:11 +00:00
Adam Harrison
827bcd898e
Merge pull request #1438 from weaveworks/fdp
...
Fast datapath
2015-10-13 10:34:49 +01:00
Matthias Radestock
54a4add40f
cosmetic
2015-10-13 09:02:03 +01:00
David Wragg
0093eb1220
A smoke test for WEAVE_NO_FASTDP
...
Partly for the side effect of restoring coverage of
router/ethernet_decoder.go
2015-10-12 21:27:11 +01:00
David Wragg
b56ff7678c
Make code coverage work through the proxy
...
Previously, the proxy would run the weave script in ways that did
not run the weaver executable. Now they can. This is a problem because
of the contortions involved in using golang's code coverage support
in the integration tests, which require the weaver command line args to
be slightly mangled.
2015-10-12 21:27:11 +01:00
David Wragg
431197042d
Weave script changes to enable fast datapath
...
This means:
* The 'weave' netdev is an OVS datapath
* The weave router container runs with --net=host in order to access
the datapath.
* The MTU is set to a smaller value, to allow vxlan encapsulation.
Setting the WEAVE_NO_FASTDP environment variable disables these
things, effectively running the router without fast datapath. It is
an environment variable rather than an option to 'weave launch'
because it takes effect in create_bridge, which is called from many
subcommands, and it doesn't seem practical to add option processing to
all of them.
2015-10-12 21:27:11 +01:00
David Wragg
295876e1d1
Fast datapath
2015-10-12 21:27:11 +01:00
David Wragg
e8f975e44f
Introduce checkFatal in prog/weaver/main.go
2015-10-12 21:27:11 +01:00
David Wragg
bc026ab49a
Show the overlay name in sleeve log messsages
2015-10-12 21:27:11 +01:00
David Wragg
f56457271d
OverlaySwitch
2015-10-12 21:27:11 +01:00
David Wragg
bc5250c899
Replace OverlayForwarderListener with channels
...
It's more robust to signal the conditions asynchronously via channels
rather than callbacks.
2015-10-12 21:27:11 +01:00
David Wragg
971511e1c5
Introduce PeerShortIDs
...
These are needed to support vxlan encapsulation. In a vxlan packet,
the only place we can straightforwardly hold the source and
destination peer identifiers used by the weave router is in the
24-bit VNI (vxlan network identifier) field. This gives us 12 bits to
indicate a peer. The resulting limit of 4096 peers on a weave network
does not seem like a problem in the near future. But it does mean
that decentralized allocation makes collisions fairly likely even in
weave networks of sizes that are common today. Fortunately, the
problem is much more tractable than IPAM because we can detect when
collisions occur and take action to resolve them.
2015-10-12 21:27:11 +01:00
David Wragg
51317dca70
Introduce PeersPendingNotifications
2015-10-12 21:27:11 +01:00
David Wragg
91dda08165
Rename Peers "table" field to "byName"
2015-10-12 21:27:11 +01:00
David Wragg
67bfa5bc90
applyUpdate can return a PeerNameSet
2015-10-12 21:27:11 +01:00
David Wragg
0841f4a27d
Tidy broadcastPeerUpdate
2015-10-12 21:27:11 +01:00
David Wragg
c6edf8421f
Handle the not-found case implicitly in Broadcast and BroadcastAll
2015-10-12 21:27:11 +01:00
David Wragg
97fb90c37a
Always include local peer in Peers
2015-10-12 21:27:11 +01:00
Matthias Radestock
1d00bdd2a4
a better way to restrict coverage
...
this better fixes #1524 .
2015-10-12 18:04:07 +01:00
Matthias Radestock
0ff01871f3
Merge remote-tracking branch 'upstream/master'
2015-10-12 17:43:41 +01:00
Matthias Radestock
e00a675e6e
update tools to latest version
2015-10-12 17:43:06 +01:00
Paul Bellamy
d5e63b875b
Merge pull request #1395 from weaveworks/1371-proxy-no-dockerclient
...
[proxy] all request modification is done through map[string]interface{}
2015-10-12 16:42:44 +01:00
Matthias Radestock
a31ccef99b
only produce coverage for packages under github.com/weaveworks/weave
...
Fixes #1524 .
2015-10-12 16:06:26 +01:00
Paul Bellamy
375fd9140b
review feedback
...
* Opted to remove json path traversal, as it added more code than it saved.
2015-10-12 15:53:07 +01:00
Paul Bellamy
fbb2c213a9
[proxy] all request modification is done through map[string]interface{}
...
That way we are less likely fall victim to go-dockerclient, or the API changing.
2015-10-12 15:53:07 +01:00
Bryan Boreham
d323de3c21
Merge pull request #1520 from weaveworks/1519-rebind-status-sock
...
LGTM. Fixes #1519
2015-10-09 17:58:33 +01:00
Paul Bellamy
18872cc8ae
[proxy] remove status.sock before binding status.sock
2015-10-09 17:44:16 +01:00
Tom Wilkie
33085e3798
Merge pull request #1499 from weaveworks/1463-ipam-seed-mismatch
...
detect when IPAM has been seeded by different peers
2015-10-09 14:46:55 +01:00
Matthias Radestock
e42c811797
docs
2015-10-08 22:43:47 +01:00
Matthias Radestock
6b321e4d02
associate non-container dns entries with 'weave:extern'
...
...instead of the weave container. This is cleaner.
'weave:extern' because typically these entries will refer to external
(non-weave) IP addresses. And because it's the same length as
'weave:expose', which is desirable for 'weave status dns' output.
2015-10-08 22:21:38 +01:00
Matthias Radestock
e6b17c701d
dns-{add,remove} can add/remove non-container DNS records
...
...by omitting the container name/id
Fixes #1385 .
2015-10-08 17:37:35 +01:00
Bryan Boreham
60bda7ca25
Merge pull request #1512 from weaveworks/1459-ipam-early-container-death
...
LGTM. Fixes #1459
2015-10-07 16:01:45 +01:00
Adam Harrison
b37d2ec6d1
Merge pull request #1494 from weaveworks/1468-template-on-demand
...
Build GCE template on demand
2015-10-07 15:42:39 +01:00
Matthias Radestock
751ccd02f6
don't stall in ipam on early container death
...
When a container died before we got into the allocation code (inside
the allocator run loop) we would not cancel the allocation since the
container death event will have been processed by the allocator before
it had any knowledge of the container.
The fix is to move the container-aliveness check inside the allocation
code. That way we still detect the death even if the event has already
flown past.
We only need to perform the check once, since any subsequent death
will result in an event that is processed by the allocator when it has
recorded the container in its state.
Fixes #1459 .
2015-10-07 15:20:22 +01:00
Matthias Radestock
431d04bd40
refactor: move all dataplane code out of LocalPeer
2015-10-06 19:50:41 +01:00
Matthias Radestock
e756f07cad
Merge branch '1.1'
2015-10-06 16:25:45 +01:00
Matthias Radestock
0ef548b9c9
prevent dropping of large multicast packets
...
Fixes #1507 .
2015-10-06 16:25:02 +01:00
Ilya Dmitrichenko
b9e025b50e
Merge branch '1.1'
2015-10-06 15:28:54 +01:00
Ilya Dmitrichenko
7743f0e05f
Merge branch 'latest_release_doc_updates' into 1.1
2015-10-06 15:26:50 +01:00
Ilya Dmitrichenko
a1581ed5b5
Remove stale/invalid flag
2015-10-06 15:26:14 +01:00
Ilya Dmitrichenko
7a83a71a02
Merge branch '1.1'
2015-10-06 15:24:25 +01:00
Ilya Dmitrichenko
a6c30088ab
Merge branch 'latest_release_doc_updates' into 1.1
2015-10-06 15:24:08 +01:00
Ilya Dmitrichenko
fdbe950483
Fix #1509
2015-10-06 15:21:24 +01:00
Matthias Radestock
2f86326405
Merge tag 'v1.1.1' into latest_release_doc_updates
...
Release v1.1.1
2015-10-06 15:13:50 +01:00
Matthias Radestock
8aaf4cfaf0
include nicknames in error message, if we have them
2015-10-06 14:41:41 +01:00
Ilya Dmitrichenko
8a62d13cee
Merge pull request #1500 from weaveworks/1443-dont-assume-docker
...
allow router exe to be run w/o access to Docker
2015-10-06 14:28:26 +01:00
Matthias Radestock
5a45471c68
more readable errors on ring.Merge
...
There are three significant changes here:
- rewrite ring.ErrDifferentSeeds errors
- remove the pre-checking of ranges and instead rewrite
ring.ErrDifferentRange errors
- don't pruneNicknames() and signal ringUpdated() when there was an
error
We don't rewrite other errors since our current belief is that only
ErrDifferentSeeds and ErrDifferentRange can arise from user error.
2015-10-06 14:20:42 +01:00
Matthias Radestock
6dc21bf433
Merge pull request #1503 from weaveworks/860-detach-hide-no-ipalloc
...
don't allocate IPs on 'detach' and 'hide'
Fixes #860 .
2015-10-06 12:53:51 +01:00
Matthias Radestock
1da24c68ca
don't allocate IPs on 'detach' and 'hide'
...
Instead of POSTing to IPAM in order to obtain IPs, we GET existing
IPs. We ignore 404s, so detaching/hiding remains idempotent.
Fixes #860
2015-10-06 12:35:55 +01:00
Matthias Radestock
3d3b7a5672
Merge branch '1.1'
...
Conflicts:
router/ethernet_decoder.go
router/local_peer.go
2015-10-05 20:02:32 +01:00
Matthias Radestock
6c4ea7a957
unswap src and dst ip in "too big DF broadcast" warning
...
and some whitespace cosmetics.
Fixes #1508 .
2015-10-05 19:56:59 +01:00
Matthias Radestock
f221a6d953
Merge branch '1.1'
2015-10-05 12:08:54 +01:00
Matthias Radestock
de95859e0d
add release v1.1.1
2015-10-05 11:26:24 +01:00
David Wragg
bcf71c0fee
Merge branch '1.1'
2015-10-04 20:25:31 +01:00
David Wragg
8fe0228d4d
Merge 1364-ip-link-kernel-4.2 (PR #1504 )
...
strip off @... from interface names returned by `ip link show`
2015-10-04 20:23:43 +01:00
Matthias Radestock
37ea8a28ad
strip off @... from interface names returned by ip link show
...
Apparently kernel 4.2 adds these, which breaks `weave reset` when we
pass the names to `ip link del'.
Fixes #1364 .
2015-10-04 15:43:55 +01:00
Matthias Radestock
a689317696
make 'no Docker API access' the default in the exe
...
...and instead enable it in the script, via the (better named) option.
2015-10-03 17:52:57 +01:00
Matthias Radestock
14a5c12404
allow router to be run w/o access to Docker
...
Fixes #1443 .
2015-10-03 17:52:57 +01:00
Matthias Radestock
35b2968b60
Merge branch '1.1'
2015-10-03 17:20:21 +01:00
Matthias Radestock
dac932f553
fix multi-ip attach
...
This got broken in f7dfe9d
2015-10-03 17:09:25 +01:00
Matthias Radestock
7e0ae6112c
detect when IPAM has been seeded by different peers
...
This is an early detector for a multitude of other symptoms, some of
which cause panics.
When creating the ring we record the paxos-supplied normalised list of
peers used for seeding. This subsequently gets gossipped around as
part of the Ring data structure, and checked in ring.Merge that it is
the same for the recipient.
There are some subtleties due to the desire to maintain backward
compatibility and deal with empty rings
- The gossip gob decoder will ignore the Ring.Seeds field when an old
weave receives a Ring from a new weave. So everything on the old
weave will just continue to work as before.
- The gossip gob decoder will set the Ring.Seeds field to nil when a
new weave receives a Ring from an old weave. We therefore omit the
seed equivalence check when the received Seeds slice is empty.
- Our ring may not have any seeds - either because it is empty or was
created from a ring received from an old weave. We therefore a) omit
the seed equivalence check in that situation, and b) set our seeds
to those received. Note that this allows us to learn about the seeds
well after ring creation - a situation which may arise when
receiving gossip from a mixture of old and new weaves.
Fixes #1463 .
2015-10-02 16:33:28 +01:00
Bryan Boreham
9ad1ccf19f
Don't listen to SIGUSR1, since we stopped handling it a few months back
2015-10-02 13:52:23 +01:00
Bryan Boreham
5b7599e1b0
Merge pull request #1496 from weaveworks/953-backoff-late-connection-failures
...
LGTM. The timing choices are all very arbitrary, so we should wait for more experience in the wild before trying to tune them further.
Fixes #953
2015-10-02 12:44:52 +01:00
Matthias Radestock
19c44b83d2
refactor: better 'try' method names
2015-10-02 11:31:11 +01:00
Matthias Radestock
41691957d2
refactor: simplify target status reporting
2015-10-01 20:05:12 +01:00
Matthias Radestock
e3182624fd
refactor: more obviously handle all target states in reporting
2015-10-01 20:05:12 +01:00
Matthias Radestock
b8b3e6f9cd
refactor: better representation of 3-valued target state
2015-10-01 20:05:12 +01:00
Matthias Radestock
520c7286c4
backoff retries for late-failing connections
...
If a connection gets through all the handshake and subsequent checks -
i.e. it ends up getting added to the LocalPeer's connection list - but
gets terminated within one minute (of the start of the successful
connection attempt), then we apply the existing backoff logic to
schedule a retry, instead of retrying immediately.
In order to do this we retain the 'Target' data structure for such
connections, marking it as 'connected' instead of deleting it (as we
did previously).
Fixes #953 .
2015-10-01 20:05:12 +01:00
Matthias Radestock
d547829c5f
Merge pull request #1495 from weaveworks/1492-proxy-remove-var-run-mount
...
Remove /var/run mount from exec_remote. Proxy uses /var/run/weave/weave.sock
Fixes #1492 .
2015-10-01 16:58:37 +01:00
Matthias Radestock
49459cfc9b
Merge pull request #1462 from weaveworks/1461-dns-case-sensitive
...
DNS lookups should not be case sensitive.
Fixes #1461 .
2015-10-01 16:52:00 +01:00
Paul Bellamy
827ba446ab
Remove /var/run mount from exec_remote. Proxy uses /var/run/weave/weave.sock
...
It was left in for backwards compatibility, in 1.1.
2015-10-01 15:52:29 +01:00
Tom Wilkie
e5316221bb
Review feedback
2015-10-01 14:14:15 +00:00
Tom Wilkie
357174e351
DNS lookups should not be case sensitive.
...
- On-the-wire gossip messages are sorted case sensitive, but in memory they are sorted case-insensitive.
- Add test for case insensitive match on multiple names.
2015-10-01 12:19:49 +00:00
Tom Wilkie
5fc2f3236e
Build GCE template on demand
2015-10-01 11:49:31 +00:00
Matthias Radestock
a3484cce43
Merge pull request #1488 from weaveworks/1481-proxy-null-hostconfig
...
[proxy] Handle null HostConfigs gracefully in start
Fixes #1481 .
2015-10-01 12:06:51 +01:00
Matthias Radestock
cdd107b06b
Merge branch '1.1'
...
Conflicts:
weave
2015-10-01 12:04:44 +01:00
Bryan Boreham
6619b584bc
Merge pull request #1483 from weaveworks/1478-cm-termination-race
...
LGTM. Fixes #1478
2015-10-01 12:01:55 +01:00
Matthias Radestock
d798b0cabb
Merge pull request #1476 from weaveworks/1455-mount-var-run
...
unmount /var/run after boot, so the kernel can GC veth pairs
Fixes #1455 .
2015-10-01 11:55:24 +01:00
Paul Bellamy
29bfd77855
[proxy] don't mount /var/run into the proxy, so the kernel can GC veth pairs
2015-10-01 11:43:13 +01:00
Alfonso Acosta
c24dc6609d
[proxy] Handle null HostConfigs gracefully in start
2015-10-01 11:40:50 +01:00
Adam Harrison
b5e7e9fc5c
Merge pull request #1451 from dpw/sleeve-compat
...
Restore sleeve compatibility with 1.1
2015-10-01 11:24:31 +01:00
Tom Wilkie
58dec7334b
Merge branch '1.1'
2015-10-01 08:23:15 +00:00
Tom Wilkie
0b7af28c86
Typo in Makefile.
2015-10-01 08:21:55 +00:00
Matthias Radestock
725f99ea4c
Merge branch '1.1'
2015-10-01 08:23:52 +01:00
Matthias Radestock
526259ef8e
Merge pull request #1487 from weaveworks/1480-dns-test-race
...
Fix races in TestRecursiveCompress
Fixes #1480 .
2015-10-01 08:11:48 +01:00
Matthias Radestock
4b43cac093
Merge branch '1.1'
2015-09-30 23:34:57 +01:00
Matthias Radestock
3795c14931
better
2015-09-30 22:57:10 +01:00
Matthias Radestock
3e5cdd8bf2
refactor: remove pointless NXDOMAIN tests
2015-09-30 22:42:27 +01:00
Matthias Radestock
35058a1dde
refactor: put negative DNS queries in one test suite
2015-09-30 22:38:48 +01:00
Matthias Radestock
0159e26631
store connections as a set instead of map-of-remote-addresses
...
...since it is theoretically possible that the lifecycle events from
two consecutive inbound connections from the same remote address
overlap.
2015-09-30 17:29:13 +01:00
Tom Wilkie
11d93b1883
Fix races in TestRecursiveCompress
2015-09-30 15:51:07 +00:00
Tom Wilkie
f86f392641
Merge pull request #1486 from weaveworks/1482-disable-160
...
Disable 160_claim test.
2015-09-30 16:20:34 +01:00
Tom Wilkie
19cb1ae8e1
Merge branch '1.1'
2015-09-30 15:06:26 +00:00
Matthias Radestock
cd8befe43e
Merge pull request #1485 from weaveworks/1450-check-slice
...
Sanity-check gossip messages
2015-09-30 15:41:21 +01:00
Tom Wilkie
db46204ff9
Disable 160_claim test.
2015-09-30 14:22:24 +00:00
Bryan Boreham
d2290cc82c
Sanity-check gossip messages
2015-09-30 14:39:27 +01:00
David Wragg
f8e06f9dbc
Merge 1286-tool (PR #1470 ): Use test script from build-tools.git
2015-09-30 14:15:20 +01:00
Matthias Radestock
e68ca761a9
we no longer need to Refresh() in CM status
...
since CM now gets an event - ConnectionCreated - for new connections.
2015-09-30 14:00:32 +01:00
Matthias Radestock
fc6f3993bd
refactor(ish): obtain local connection status from CM alone
2015-09-30 14:00:32 +01:00
Matthias Radestock
f8b074f696
a better way to clean up after established connections
...
...than 3db4e86
2015-09-30 14:00:32 +01:00
Matthias Radestock
66f14099ed
prevent ConnectionMaker.ConnectionTerminated race
...
Get the ConnectionMaker to maintain its own knowledge of the local
connections, based on events emitted in the connection lifecycle.
Fixes #1478 .
2015-09-30 14:00:32 +01:00
Tom Wilkie
f3dc681f61
Only clean weave packages.
2015-09-30 10:15:50 +00:00
Tom Wilkie
62f62e1fd5
tools.git is now called build-tools.git
2015-09-30 08:21:19 +00:00
Tom Wilkie
f3360e61e1
Remove cover tool, this lives in tools.git now.
2015-09-30 08:21:12 +00:00
Tom Wilkie
5208dcd67e
Review feedback
...
- Use git submodule for tools.
- Update Makefile to use submodules.
- Put submodule at tools/
- Tidy up some obsolete references to tools in .gitignore.
2015-09-30 08:21:08 +00:00
Tom Wilkie
6f7d4a7a01
Use lint from tools.git
...
- Do lint first, on circle.
2015-09-30 08:20:56 +00:00
Tom Wilkie
958a3bbd99
Use test script from tools.git
2015-09-30 07:42:43 +00:00
Matthias Radestock
d5c85a3d53
cosmetic: fix typo
2015-09-29 19:40:54 +01:00
Tom Wilkie
5e7b527af2
Make publish from the right place.
2015-09-29 11:02:46 +00:00
Paul Bellamy
ddbd33a8e3
Merge pull request #1471 from weaveworks/1295-publish
...
Publish latest images from CI on successful builds.
2015-09-29 11:37:44 +01:00
Matthias Radestock
a7dc368191
Merge pull request #1469 from weaveworks/1204-test-container
...
Run tests in a separate container.
Fixes #1204 .
2015-09-29 11:37:25 +01:00
Matthias Radestock
5b1d0c55a0
Merge pull request #1474 from weaveworks/1472-weave-env-debug
...
use a container-local unix socket to get the address, instead of logs
Fixes #1453 . Fixes #1472 .
2015-09-29 11:04:41 +01:00
Matthias Radestock
58515ca36e
make weave(proxy) startup death message more generic
...
...in order to account for `docker logs` not working due to custom
logging drivers.
Partially undoes #958 . Partially fixes #1453 .
2015-09-29 11:02:05 +01:00
Matthias Radestock
2d753ebf1a
cosmetic: reduce confusion w.r.t. meaning of 'connection'
2015-09-29 09:21:39 +01:00
Tom Wilkie
50cd716220
Review feedback.
2015-09-29 07:46:00 +00:00
Matthias Radestock
47c97e8191
refactor: remove some code duplication
2015-09-28 16:10:43 +01:00
Paul Bellamy
d704ba175f
[proxy] use a container-local unix socket to get the address, instead of logs
2015-09-28 16:08:25 +01:00
Matthias Radestock
c1036c5e4f
Merge remote-tracking branch 'upstream/master'
2015-09-28 14:53:12 +01:00
Matthias Radestock
356d06915b
refactor weave script http calls
...
- inline http_call into call_weave
- rename http_call_ip to http_call
- make http_call take the IP & port as one single "address" argument
instead of separate args
2015-09-28 12:43:09 +01:00
Tom Wilkie
2b4fd738da
Review feedback
2015-09-28 09:05:10 +00:00
Tom Wilkie
f9de6df426
Publish latest images from CI on successful builds.
...
This time rebuild without insturmentation first.
2015-09-28 08:27:21 +00:00
Tom Wilkie
8ee409d9bd
Run tests in a separate container.
2015-09-25 06:19:00 +00:00
Matthias Radestock
0cf3de4541
Merge pull request #1446 from weaveworks/smoke-subdomains
...
Add smoke-test for subdomains
2015-09-24 15:55:57 +01:00
Bryan Boreham
3a79be7426
Add smoke-test for subdomains
2015-09-24 14:48:39 +01:00
David Wragg
30589bb580
Mention the mailing list
2015-09-24 14:40:20 +01:00
Matthias Radestock
e07b18bb18
Merge branch '1.1'
2015-09-24 12:08:13 +01:00
Matthias Radestock
63e3f441d8
cosmetic: link to relevant RFC section for ARP announcements
2015-09-24 12:07:12 +01:00
Tom Wilkie
b31eb3db82
Merge remote-tracking branch 'upstream/1.1'
2015-09-24 03:54:09 +00:00
Tom Wilkie
99ae38c9a6
Merge pull request #1467 from weaveworks/docker-machine
...
Update for docker/machine PR #1729
2015-09-24 11:53:21 +08:00
Tom Wilkie
011f96c6a7
New test image using docker 1.8
2015-09-24 03:42:44 +00:00
Tom Wilkie
c7b4136d31
Update for docker/machine PR #1729
2015-09-24 03:25:30 +00:00
Bryan Boreham
da2f98fa8f
Remove workaround for upstream, no longer required
2015-09-23 10:15:06 +01:00
Tom Wilkie
7ac532a1d0
Merge pull request #1454 from weaveworks/1433-docker-1.8
...
New test image using docker 1.8
2015-09-23 10:16:06 +08:00
Matthias Radestock
b98ab70517
Merge branch '1.1'
2015-09-22 21:18:32 +01:00
Matthias Radestock
b1d453a0c2
Merge pull request #1460 from weaveworks/simplify-ipam-cidrs
...
Simplify ipam_cidrs function in weave script
2015-09-22 21:17:42 +01:00
Bryan Boreham
a51f63267a
Merge 0-args case in ipam_cidrs() and simplify loop
2015-09-22 21:06:12 +01:00
Matthias Radestock
0bdc84d42a
Merge branch '1.1'
2015-09-22 16:28:05 +01:00
Matthias Radestock
7f74ae7912
Merge pull request #1426 from weaveworks/1418-clean-cancel
...
Handle cancelled allocation in 'weave attach'
Fixes #1418 .
2015-09-22 16:27:27 +01:00
Bryan Boreham
abf13c7026
Simplify detection of issues
2015-09-22 16:14:14 +01:00
Matthias Radestock
7d7c5ce63e
Merge pull request #1449 from weaveworks/1368-start-hostconfig
...
Override sneaky /start HostConfig params
Fixes #1368 .
2015-09-22 15:11:36 +01:00
Paul Bellamy
547c9e7f5a
Removing confusing variable from getDNSDomain, just return "" when disabled
2015-09-22 15:09:32 +01:00
Paul Bellamy
3e4d8a3ffe
review feedback
2015-09-22 15:09:32 +01:00
Paul Bellamy
74c3b0d079
[proxy] Override sneaky /start HostConfig params
2015-09-22 15:09:32 +01:00
Paul Bellamy
846aa98a9c
renaming test so it runs
2015-09-22 14:52:28 +01:00
Matthias Radestock
17b7789531
Merge pull request #1456 from weaveworks/fix-race-condition
...
[proxy] fix race condition when waiting for containers to start
2015-09-22 14:51:43 +01:00
Paul Bellamy
b86d9bf1ab
[proxy] fix race condition when waiting for containers to start
...
If ContainerStarted fired before the response handler, then the "waiter"
chan would be nil, and the response handler would hang.
2015-09-22 12:50:36 +01:00
Tom Wilkie
6e06ce2af1
New test image using docker 1.8
2015-09-22 05:31:26 +00:00
David Wragg
dc275d7009
Restore sleeve compatibility with 1.1
...
Addresses #1396
2015-09-21 08:33:11 +01:00
David Wragg
a67b9f566a
Use consistent options for all "go get"/"go build" invocations
...
Without this, building with go-1.5 fails with
go get ./prog/weavewait
go install net: open /usr/local/go/pkg/linux_amd64/net.a: permission denied
This makes the options passed too "go get"/"go build" consistent for
all executables. So it should be safe with go-1.4.
2015-09-20 19:58:04 +01:00
Michael Bridgen
9344289262
Merge pull request #1445 from weaveworks/docs-ecs-amis
...
Document ECS integration
2015-09-17 14:43:38 +01:00
Alfonso Acosta
6713282a43
Link to ECS AMIs from README
2015-09-17 13:27:32 +00:00
Matthias Radestock
f834626f00
Merge pull request #1414 from weaveworks/1285-autoconfig-boot2docker-tls
...
Proxy TLS autoconfiguration
Closes #1285 .
2015-09-16 15:49:20 +01:00
Bryan Boreham
98b80c59d9
Detect cancelled allocation more cleanly
...
to avoid the weave script trying to parse an error message as a CIDR
2015-09-16 14:14:40 +01:00
Bryan Boreham
1beaf79e47
Refactor: extract duplicated code into helper functions
2015-09-16 14:14:30 +01:00
Paul Bellamy
0a475bd4cc
docker_tls_args should look for '-d' or 'daemon' to handle docker 1.8 change
2015-09-16 13:25:29 +01:00
Paul Bellamy
0820c484d6
[proxy] Documenting TLS autoconfig
2015-09-16 10:44:18 +01:00
Paul Bellamy
dbf39403d3
[proxy] Autoconfigure TLS based on daemon settings
...
With this on OSX you can:
```sh
$ boot2docker init
$ boot2docker up
$ eval $(boot2docker shellinit)
$ weave launch
$ eval $(weave env)
```
2015-09-16 10:44:17 +01:00
Matthias Radestock
14dde9ec32
Merge branch '1.1'
2015-09-15 16:47:05 +01:00
Matthias Radestock
8e656c1fd7
Merge pull request #1429 from weaveworks/1424-fix-cancel
...
Use explicit index into operations slice in cancelOpsFor()
Fixes #1424
2015-09-15 16:45:11 +01:00
Bryan Boreham
d55c68c248
Review feedback
2015-09-15 16:18:37 +01:00
Matthias Radestock
3c266dce8c
Merge branch '1.1'
2015-09-15 15:51:36 +01:00
Matthias Radestock
8ec3ab5e28
Merge pull request #1435 from weaveworks/update-vagrantfile-docker-repos
...
Update docker repo, keys and package name
2015-09-15 15:49:33 +01:00
Matthias Radestock
f7be34f5bb
Merge branch '1.1'
2015-09-15 15:44:53 +01:00
Matthias Radestock
58a30f7282
Merge branch 'latest_release_doc_updates' into 1.1
2015-09-15 15:44:15 +01:00
Matthias Radestock
2b5c2874ab
remove 'lxc-docker' reference from build-on-ubuntu instructions
...
...since the Docker docs have been updated to install docker-engine.
2015-09-15 15:34:44 +01:00
Matthias Radestock
64b47ca3c7
Merge branch '1.1'
2015-09-15 13:17:06 +01:00
Matthias Radestock
bed11f4214
Merge pull request #1431 from weaveworks/issues/1397-strip-version-prefix
...
Automatically strip 'v' prefix for mainline and branch releases
Fixes #1397 .
2015-09-15 13:15:49 +01:00
Adam Harrison
bbf7646751
Update docker repo, keys and package name
2015-09-15 11:33:53 +01:00
Adam Harrison
6dfefb95e8
Advise installation of weaveworks github-release fork
2015-09-15 10:47:43 +01:00
Adam Harrison
44c2861aba
Update release process doc
2015-09-15 10:41:41 +01:00
Adam Harrison
3039046a6d
Strip v prefix for mainline and branch releases
2015-09-15 10:41:24 +01:00
Paul Bellamy
e39974eb07
Merge pull request #1210 from weaveworks/401-proxy-start-events
...
make proxy attach network on docker start event
2015-09-15 10:18:48 +01:00
Bryan Boreham
76895c76a1
Use Mutex instead of RWMutex, for simplicity
2015-09-14 17:11:56 +01:00
Bryan Boreham
a7e0f03647
Use explicit index into operations slice in cancelOpsFor()
...
to avoid mis-indexing when more than one op is removed
2015-09-14 17:02:35 +01:00
Bryan Boreham
98e8ef4e11
Merge remote-tracking branch 'upstream/1.1'
2015-09-14 16:33:12 +01:00
Bryan Boreham
5635ba1fd0
Update out-dated error message
2015-09-14 16:31:37 +01:00
Adam Harrison
2ffe9b53f7
Merge branch '1.1'
2015-09-14 14:21:36 +01:00
Adam Harrison
dd0eee6418
Merge pull request #1411 from weaveworks/1405-arping-dynamic-attach-1
...
always arp_update new addresses in 'attach'
2015-09-14 14:20:21 +01:00
Paul Bellamy
405c2889f0
Merge pull request #1415 from weaveworks/1341_report_snapshot_versions
...
correctly report snapshot versions
2015-09-14 10:45:29 +01:00
Matthias Radestock
40cf392504
cosmetic: vertical alignment in version output
2015-09-11 15:56:17 +01:00
Matthias Radestock
42baa03985
report the proxy version instead of weaveexec version
...
That way we no longer rely on the weavexec image version tag, which
may not always be present. Since the proxy is embedded in the
weaveexec image, this effectively versions the image.
Also report the *local* script version instead of the embedded script
version. There is no point in reporting the latter since it will
always match the weaveexec version.
Closes #1341 .
2015-09-11 15:52:50 +01:00
Matthias Radestock
016f20b2d4
Merge branch '1.1'
2015-09-11 14:07:59 +01:00
Matthias Radestock
83ef93f3fb
detect running proxy regardless of version
...
Fixes #1413 .
2015-09-11 14:06:44 +01:00
Matthias Radestock
d5faf31d43
Merge remote-tracking branch 'upstream/master'
2015-09-11 13:36:59 +01:00
David Wragg
12324e3550
Revert "Make weave build under go1.5; use our build flags for go get, and force stuff to be static."
...
This reverts commit 5860492a38 .
Although the build works under 1.4, this change had an unfortunate
impact (see #1412 ).
2015-09-11 13:31:15 +01:00
Matthias Radestock
ff67499562
cosmetic
2015-09-11 13:30:22 +01:00
Matthias Radestock
2ba5abc2bb
rename 'VERSION' to 'WEAVE_VERSION'
...
to avoid potential accidental clashes with user's environment.
Closes #1389 .
2015-09-11 11:02:51 +01:00
Matthias Radestock
f7dfe9dd23
always arp_update new addresses in 'attach'
...
Previously we'd only do that when the container had no ethwe at the
start. Therefore adding a recycled IP address to an already attached
container would not send out an arp update for that IP, which would
break connectivity to that IP for containers which had previously
accessed that IP.
Fixes #1405 .
2015-09-10 18:43:49 +01:00
Adam Harrison
3d4a8aaad1
Merge branch '1.1'
2015-09-10 17:24:26 +01:00
Adam Harrison
ac145052d6
Correct weave stop advice
...
Fixes #1408 .
2015-09-10 17:23:33 +01:00
Matthias Radestock
4ded1f6193
Merge branch '1.1'
2015-09-09 20:06:34 +01:00
Matthias Radestock
7a41337d17
Merge branch 'latest_release_doc_updates' into 1.1
2015-09-09 20:06:14 +01:00
Matthias Radestock
2d006dffaf
add link to latest release to docs homepage
...
Closes #1400 .
2015-09-09 20:04:37 +01:00
Matthias Radestock
940a0a67a5
Merge branch '1.1'
2015-09-09 19:54:46 +01:00
Matthias Radestock
69c935a6e8
Make latest_release description link to real release
...
Closes #1399 .
2015-09-09 19:52:08 +01:00
Adam Harrison
be304365a0
Merge branch '1.1'
2015-09-09 14:26:34 +01:00
Adam Harrison
676127893f
Escape double curly braces eaten by Jekyll/Liquid
2015-09-09 14:21:31 +01:00
Adam Harrison
df62d512cd
Correct weave report example in troubleshooting guide
2015-09-09 14:00:53 +01:00
Adam Harrison
fc00767cf8
Remove reference to 1.0 from README
2015-09-09 13:56:25 +01:00
David Wragg
2163b39268
Merge weaveworks/go-1.5 (PR #1386 )
...
Make Weave build & work with Go 1.5
2015-09-09 12:23:57 +01:00
Matthias Radestock
aa61cbd574
Merge pull request #1388 from weaveworks/alpine
...
gliderlabs/alpine is now just alpine
2015-09-08 14:01:40 +01:00
Adam Harrison
2a89d53d7d
Merge pull request #991 from dpw/fdp-prep
...
Fast datapath preparations
2015-09-08 13:19:03 +01:00
David Wragg
f7ce6a1fdb
Injected packets shouldn't happen in handleCapturedPacket
...
Check for them just in case, but don't take an extra lock to do it.
2015-09-08 10:46:04 +01:00
David Wragg
20b35f3139
Add NewPeerFromSummary
...
To reduce the number of places that are explicit about which values
go into a new Peer.
2015-09-08 10:46:02 +01:00
David Wragg
46d454730f
Notify the Overlay when routes change
2015-09-08 10:44:57 +01:00
David Wragg
c2ad4c5633
Flows
...
For fast datapath, the router core will only be invoked upon datapath
misses. And it needs to yield routing decisions in a form that can be
used to configure the in-kernel datapath. So here we make the router
core yield FlowOps, which represent operations which actually do
something with a packet. The router core obtains these in turn from
the Bridge or the Overlay, depending on what it wants to do with
a packet.
For fast datapath, it's critical that the router makes decisions based
only on the required packet header information (as the same header
information will be used when configuring the ODP flow rules). So we
pass only that information into the router core, in the form of
PacketKeys.
The overall effect is to curry the router core: Rather than taking a
packet and doing something with it, it takes packet header information
and returns a function that does something with a packet.
2015-09-08 10:44:52 +01:00
David Wragg
6e0795253e
Move ICMP frag-needed handling into sleeveForwarder
2015-09-08 10:44:52 +01:00
David Wragg
9956d422f2
Introduce Overlay / sleeve
...
This introduces interfaces to represent the packet forwarding
mechanism, and brings all the scattered UDP-related code together into
a single implementation.
This is not a pure refactoring, although much of the code in sleeve.go
has been copied from pre-existing code, and the UDP protocol remains
the same in spirit. The biggest change is the organization of the
forwarder goroutines (there is now one instead of two, and that
goroutine does a lot of auxiliary work as well as forwarding).
Performance testing between VMs on my laptop suggests that packet
throughput has not gone down, and may even have improved slightly.
2015-09-08 10:44:44 +01:00
David Wragg
57e78e2bec
Introduce Bridge
2015-09-08 10:44:37 +01:00
David Wragg
5aa58e6043
go 1.5 broke PMTU detection
2015-09-07 17:31:18 +01:00
Tom Wilkie
5860492a38
Make weave build under go1.5; use our build flags for go get, and force stuff to be static.
2015-09-07 14:45:17 +00:00
Paul Bellamy
e74b6cbcaf
gliderlabs/alpine is now just alpine
2015-09-04 14:33:18 +01:00
Bryan Boreham
1e2344341d
Wait for container to be attached before returning from {re}start request
2015-09-01 17:48:22 +01:00
Bryan Boreham
b712ba1e04
Extend test to cover containers restarting automatically
2015-09-01 17:48:22 +01:00
Bryan Boreham
9ae6435317
Attach existing weave containers at startup
2015-09-01 17:48:22 +01:00
Bryan Boreham
81e8ba223f
Do network attach on docker event rather than intercepting start and restart commands.
...
This means it also works when the docker daemon restarts a container.
2015-09-01 17:48:12 +01:00