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
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
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
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
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