Bryan Boreham
098be788ae
Merge pull request #2166 from weaveworks/optional-restart-policy
...
Optional restart policy
2016-04-15 17:45:54 +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
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
6639353568
Lock round TestRouter map accesses, and copy the set where we may block.
2016-04-13 07:49:53 +01:00
Bryan Boreham
15bdf6cd2d
Rework CNI test so it uses the scriptlet
2016-04-11 16:00:49 +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
Bryan Boreham
c10d26cf02
Fix up TestBootstrap after consensus changes
2016-04-11 13:20:54 +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
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
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
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
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
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
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
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
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
Bryan Boreham
9f13d28508
Merge pull request #2116 from weaveworks/plugin-coverage
...
add coverage to plugin
2016-04-01 12:01:25 +02: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
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
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
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
Bryan Boreham
001322751f
Don't hold Nameserver lock over call out via isKnownPeer
2016-03-21 11:52:13 +00:00
Bryan Boreham
4a2affabb5
Clean up so test will run again on same host
2016-03-19 16:35:45 +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
Bryan Boreham
b1ec2b788a
Bump template name so it will fetch latest Docker
2016-03-19 14:12:17 +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
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
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
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
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
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
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
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
Bryan Boreham
3ad9d8e785
Don't fail start if image is missing
2016-03-09 17:10:20 +00: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
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
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
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
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