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
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
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
Bryan Boreham
adda1c459c
Fix plugin filter - truncate Docker ID to 12 chars
2016-06-16 18:03:45 +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
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
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
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
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
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
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
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
Bryan Boreham
0fc59a831c
Initial awsvpc docs
2016-06-06 16:47:23 +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
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
Bryan Boreham
39ba706a9b
Run just one container to build all exes
2016-06-06 11:43:08 +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
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
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
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
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
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
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
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
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
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
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
Bryan Boreham
ff81ecfd41
Move kill-on-failure responsibility to caller of weave script
2016-05-16 13:38:22 +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
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
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
Bryan Boreham
e49bbe176d
Make clear that we want the same universe throughout the test
2016-05-10 13:32:56 +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